diff options
author | Neil Brown <neilb@suse.de> | 2005-08-15 08:14:27 +0200 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2005-08-15 08:14:27 +0200 |
commit | dab6685f3d9982b697d938d99737897ea8ac768c (patch) | |
tree | f68788b7c36feabc151e96d622dffd44644fbbac /tests/03r5assem | |
parent | Add a test. (diff) | |
download | mdadm-dab6685f3d9982b697d938d99737897ea8ac768c.tar.xz mdadm-dab6685f3d9982b697d938d99737897ea8ac768c.zip |
Add 'quite' option and tidy up some tests.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Diffstat (limited to 'tests/03r5assem')
-rw-r--r-- | tests/03r5assem | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/tests/03r5assem b/tests/03r5assem index 5ca5ddd7..b2b06986 100644 --- a/tests/03r5assem +++ b/tests/03r5assem @@ -3,19 +3,19 @@ set -e # create a raid5 array and assemble it in various ways, # including with missing devices. -$mdadm -CR $md1 -l5 -n3 $dev0 $dev1 $dev2 -tst="$check raid5 ;sh tests/testdev $md1 2 $mdsize0 64 ; $mdadm -S $md1" -uuid=`$mdadm -Db $md1 | sed 's/.*UUID=//'` -$check wait +mdadm -CR $md1 -l5 -n3 $dev0 $dev1 $dev2 +tst="check raid5 ;testdev $md1 2 $mdsize0 64 ; mdadm -S $md1" +uuid=`mdadm -Db $md1 | sed 's/.*UUID=//'` +check wait eval $tst -$mdadm -A $md1 $dev0 $dev1 $dev2 +mdadm -A $md1 $dev0 $dev1 $dev2 eval $tst -$mdadm -A $md1 -u $uuid $devlist +mdadm -A $md1 -u $uuid $devlist eval $tst -$mdadm -A $md1 -m 1 $devlist +mdadm -A $md1 -m 1 $devlist eval $tst @@ -25,7 +25,7 @@ conf=$targetdir/mdadm.conf echo array $md1 UUID=$uuid } > $conf -$mdadm -As -c $conf $md1 +mdadm -As -c $conf $md1 eval $tst { @@ -33,7 +33,7 @@ eval $tst echo array $md1 super-minor=1 } > $conf -$mdadm -As -c $conf +mdadm -As -c $conf eval $tst { @@ -41,31 +41,31 @@ eval $tst echo array $md1 devices=$dev0,$dev1,$dev2 } > $conf -$mdadm -As -c $conf +mdadm -As -c $conf echo "DEVICE $devlist" > $conf -$mdadm -Db $md1 >> $conf +mdadm -Db $md1 >> $conf eval $tst -$mdadm --assemble --scan --config=$conf $md1 +mdadm --assemble --scan --config=$conf $md1 eval $tst echo " metadata=0.90 devices=$dev0,$dev1,$dev2" >> $conf -$mdadm --assemble --scan --config=$conf $md1 +mdadm --assemble --scan --config=$conf $md1 eval $tst ### Now with a missing device -$mdadm -AR $md1 $dev0 $dev2 # -$check state U_U +mdadm -AR $md1 $dev0 $dev2 # +check state U_U eval $tst -$mdadm -A $md1 -u $uuid $devlist -$check state U_U +mdadm -A $md1 -u $uuid $devlist +check state U_U eval $tst -$mdadm -A $md1 -m 1 $devlist -$check state U_U +mdadm -A $md1 -m 1 $devlist +check state U_U eval $tst @@ -75,8 +75,8 @@ conf=$targetdir/mdadm.conf echo array $md1 UUID=$uuid } > $conf -$mdadm -As -c $conf $md1 -$check state U_U +mdadm -As -c $conf $md1 +check state U_U eval $tst { @@ -84,8 +84,8 @@ eval $tst echo array $md1 super-minor=1 } > $conf -$mdadm -As -c $conf -$check state U_U +mdadm -As -c $conf +check state U_U eval $tst { @@ -93,18 +93,18 @@ eval $tst echo array $md1 devices=$dev0,$dev1,$dev2 } > $conf -$mdadm -As -c $conf +mdadm -As -c $conf echo "DEVICE $devlist" > $conf -$mdadm -Db $md1 >> $conf -$check state U_U +mdadm -Db $md1 >> $conf +check state U_U eval $tst -$mdadm --assemble --scan --config=$conf $md1 -$check state U_U +mdadm --assemble --scan --config=$conf $md1 +check state U_U eval $tst echo " metadata=0.90 devices=$dev0,$dev1,$dev2" >> $conf -$mdadm --assemble --scan --config=$conf $md1 -$check state U_U +mdadm --assemble --scan --config=$conf $md1 +check state U_U eval $tst |