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
+6
-3
@@ -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`
|
||||
@@ -176,7 +179,7 @@ echo 'int main(int argc, char *argv[]) {' >>$cprog
|
||||
#
|
||||
cat /usr/include/xfs/xfs*.h | indent |\
|
||||
_attribute_filter |\
|
||||
tee $seq.full |\
|
||||
tee $seqres.full |\
|
||||
egrep '} *xfs_.*_t' |\
|
||||
egrep -v -f $tmp.ignore |\
|
||||
awk '{sub(/[;,]/,"",$2); print "printf(\"sizeof(", $2, ") = %d\\n\", sizeof(", $2, "));"}' \
|
||||
@@ -198,8 +201,8 @@ awk '
|
||||
echo 'return 0; }' >>$cprog
|
||||
|
||||
# create and run program
|
||||
cc -o $oprog $cprog >> $seq.full 2>&1 || \
|
||||
_notrun "Could not compile test program (see end of $seq.full)"
|
||||
cc -o $oprog $cprog >> $seqres.full 2>&1 || \
|
||||
_notrun "Could not compile test program (see end of $seqres.full)"
|
||||
$oprog | _type_size_filter | _type_name_filter > $progout
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user