From ee8708cc8ebfcbb55800e6ca8782394b5f3db2f7 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 31 Mar 2014 11:44:39 +0200 Subject: [PATCH] tests: more listing tests --- test/shell/listings.sh | 49 +++++++++++++++++++++++++++++++----------- 1 file changed, 37 insertions(+), 12 deletions(-) diff --git a/test/shell/listings.sh b/test/shell/listings.sh index 414b1462c..d46ee7f84 100644 --- a/test/shell/listings.sh +++ b/test/shell/listings.sh @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright (C) 2008 Red Hat, Inc. All rights reserved. +# Copyright (C) 2008-2014 Red Hat, Inc. All rights reserved. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions @@ -17,6 +17,10 @@ aux prepare_devs 5 +# Check there is no PV +pvscan | tee out +grep "No matching" out + pvcreate --uuid BADBEE-BAAD-BAAD-BAAD-BAAD-BAAD-BADBEE --norestorefile "$dev1" pvcreate --metadatacopies 0 "$dev2" pvcreate --metadatacopies 0 "$dev3" @@ -65,6 +69,7 @@ dmsetup ls|grep "$PREFIX"|grep -v "LVMTEST.*pv." #COMM vgs with options from pvs still treats arguments as VGs (bz193543) vgs -o pv_name,vg_name $vg # would complain if not +vgs -o all $vg #COMM pvdisplay --maps feature (bz149814) pvdisplay $(cat DEVICES) >out @@ -75,39 +80,52 @@ aux disable_dev "$dev1" pvs -o +pv_uuid | grep BADBEE-BAAD-BAAD-BAAD-BAAD-BAAD-BADBEE aux enable_dev "$dev1" +pvscan --uuid +pvscan -e +pvscan -s +pvscan --novolumegroup +vgscan --mknodes +lvscan +lvmdiskscan + +invalid pvscan "$dev1" +invalid pvscan -aay +invalid pvscan --major 254 +invalid pvscan --minor 0 +invalid pvscan --novolumegroup -e +invalid vgscan $vg +invalid lvscan $vg + if aux have_readline; then -# test *scan and *display tools cat <