xfs
[Top] [All Lists]

[PATCH] xfstests 225: Run with different random seeds

To: xfs-oss <xfs@xxxxxxxxxxx>
Subject: [PATCH] xfstests 225: Run with different random seeds
From: Eric Sandeen <sandeen@xxxxxxxxxx>
Date: Tue, 08 Mar 2011 09:39:48 -0600
Cc: Chris Mason <chris.mason@xxxxxxxxxx>
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.14) Gecko/20110221 Thunderbird/3.1.8
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 <sandeen@xxxxxxxxxx>
---

diff --git a/225 b/225
index 2dea3c2..76be888 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"

<Prev in Thread] Current Thread [Next in Thread>