From: Eric Sandeen <sandeen@redhat.com>
To: xfs-oss <xfs@oss.sgi.com>
Cc: Chris Mason <chris.mason@oracle.com>
Subject: [PATCH] xfstests 225: Run with different random seeds
Date: Tue, 08 Mar 2011 09:39:48 -0600 [thread overview]
Message-ID: <4D764DC4.4030506@redhat.com> (raw)
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@redhat.com>
---
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"
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next reply other threads:[~2011-03-08 15:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-08 15:39 Eric Sandeen [this message]
2011-03-08 20:10 ` [PATCH] xfstests 225: Run with different random seeds Alex Elder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D764DC4.4030506@redhat.com \
--to=sandeen@redhat.com \
--cc=chris.mason@oracle.com \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.