From: Eric Sandeen Date: Wed, 9 Mar 2011 16:30:07 +0000 (-0600) Subject: 225: Run with different random seeds X-Git-Tag: v1.1.0~83 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=df87aa22d98bb38ad1a288bc8f80f2891c0f96f9;p=users%2Fhch%2Fxfstests-dev.git 225: Run with different random seeds Running the fiemap-tester with a unique random seed each time may uncover some things missed by always using the default. Signed-off-by: Eric Sandeen Reviewed-by: Alex Elder --- diff --git a/225 b/225 index 2dea3c262..76be88857 100755 --- a/225 +++ b/225 @@ -60,11 +60,15 @@ _cleanup() } trap "_cleanup; exit \$status" 0 1 2 3 15 +seed=`date +%s` + +echo "using seed $seed" >> $fiemaplog + echo "fiemap run without preallocation, with sync" -$here/src/fiemap-tester -q -S -p 0 -r 200 $fiemapfile 2>&1 | tee $fiemaplog +$here/src/fiemap-tester -q -S -s $seed -p 0 -r 200 $fiemapfile 2>&1 | tee -a $fiemaplog echo "fiemap run without preallocation or sync" -$here/src/fiemap-tester -q -p 0 -r 200 $fiemapfile 2>&1 | tee $fiemaplog +$here/src/fiemap-tester -q -s $seed -p 0 -r 200 $fiemapfile 2>&1 | tee -a $fiemaplog if grep -q "Operation not supported" $fiemaplog; then _notrun "FIEMAP not supported by this filesystem type: $FSTYP"