mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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:
committed by
Rich Johnston
parent
1686f9abfc
commit
1d5d46db80
+13
-10
@@ -23,6 +23,9 @@
|
||||
#
|
||||
|
||||
seq=`basename $0`
|
||||
seqres=$RESULT_DIR/$seq
|
||||
seqres=$RESULT_DIR/$seq
|
||||
seqres=$RESULT_DIR/$seq
|
||||
echo "QA output created by $seq"
|
||||
|
||||
here=`pwd`
|
||||
@@ -73,15 +76,15 @@ _do_test()
|
||||
echo "fsstress.$_n : $_param"
|
||||
echo "-----------------------------------------------"
|
||||
# -m limits number of users/groups so check doesn't fail (malloc) later
|
||||
dbgoutfile=$seq.full
|
||||
dbgoutfile=$seqres.full
|
||||
if ! $FSSTRESS_PROG $_param $FSSTRESS_AVOID -v -m 8 -n $_count -d $out >>$dbgoutfile 2>&1
|
||||
then
|
||||
echo " fsstress (count=$_count) returned $? - see $seq.full"
|
||||
echo "--------------------------------------" >>$here/$seq.full
|
||||
echo "$_n - output from fsstress:" >>$here/$seq.full
|
||||
echo "--------------------------------------" >>$here/$seq.full
|
||||
echo "<NOT LOGGED>" >>$here/$seq.full
|
||||
#cat $tmp.out >>$here/$seq.full
|
||||
echo " fsstress (count=$_count) returned $? - see $seqres.full"
|
||||
echo "--------------------------------------" >>$here/$seqres.full
|
||||
echo "$_n - output from fsstress:" >>$here/$seqres.full
|
||||
echo "--------------------------------------" >>$here/$seqres.full
|
||||
echo "<NOT LOGGED>" >>$here/$seqres.full
|
||||
#cat $tmp.out >>$here/$seqres.full
|
||||
status=1
|
||||
fi
|
||||
|
||||
@@ -95,7 +98,7 @@ _supported_os IRIX Linux
|
||||
|
||||
_setup_testdir
|
||||
|
||||
rm -f $here/$seq.full
|
||||
rm -f $here/$seqres.full
|
||||
echo "brevity is wit..."
|
||||
|
||||
count=1000
|
||||
@@ -115,8 +118,8 @@ _do_test 2 "-p $procs -r" $count
|
||||
|
||||
_do_test 3 "-p 4 -z -f rmdir=10 -f link=10 -f creat=10 -f mkdir=10 -f rename=30 -f stat=30 -f unlink=30 -f truncate=20" $count
|
||||
|
||||
# if all ok by here then probably don't need $seq.full
|
||||
rm -f $seq.full
|
||||
# if all ok by here then probably don't need $seqres.full
|
||||
rm -f $seqres.full
|
||||
|
||||
exit
|
||||
|
||||
|
||||
Reference in New Issue
Block a user