xfstests: convert tests to use new results directory

Essentially the change is simply this. Converting:

... >> $seq.????

to:

.... >> $RESULT_DIR/$seq.????

so that output files are directed to the defined output directory.

sed to the rescue:

$ sed -i -e '/^seq=.*$/a seqres=$RESULT_DIR/$seq' -e 's/seq.full/seqres.full/' tests/*/*

will do most of the work automatically.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Phil White <pwhite@sgi.com>
[rjohnston@sgi.com reworked for TOT changes]
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
This commit is contained in:
Dave Chinner
2013-03-15 12:28:02 +00:00
committed by Rich Johnston
parent 1686f9abfc
commit 1d5d46db80
308 changed files with 1641 additions and 717 deletions
+7 -4
View File
@@ -25,6 +25,9 @@
#
seq=`basename $0`
seqres=$RESULT_DIR/$seq
seqres=$RESULT_DIR/$seq
seqres=$RESULT_DIR/$seq
echo "QA output created by $seq"
here=`pwd`
@@ -53,20 +56,20 @@ delay=40
testfile=$TEST_DIR/testfile
rm -f $testfile
rm -f $seq.full
rm -f $seqres.full
echo test >$testfile
time1=`_access_time $testfile | tee -a $seq.full`
time1=`_access_time $testfile | tee -a $seqres.full`
echo "sleep for $delay"
sleep $delay # sleep to allow time to move on for access
cat $testfile
time2=`_access_time $testfile | tee -a $seq.full`
time2=`_access_time $testfile | tee -a $seqres.full`
cd /
umount $TEST_DIR
_test_mount
time3=`_access_time $testfile | tee -a $here/$seq.full`
time3=`_access_time $testfile | tee -a $here/$seqres.full`
delta1=`expr $time2 - $time1`
delta2=`expr $time3 - $time1`