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
+9
-6
@@ -22,6 +22,9 @@
|
||||
#
|
||||
|
||||
seq=`basename $0`
|
||||
seqres=$RESULT_DIR/$seq
|
||||
seqres=$RESULT_DIR/$seq
|
||||
seqres=$RESULT_DIR/$seq
|
||||
echo "QA output created by $seq"
|
||||
|
||||
here=`pwd`
|
||||
@@ -46,9 +49,9 @@ _supported_fs ext2 ext3 ext4
|
||||
_supported_os Linux
|
||||
_require_scratch
|
||||
|
||||
rm -f $seq.full
|
||||
rm -f $seqres.full
|
||||
|
||||
_scratch_mkfs >> $seq.full 2>&1
|
||||
_scratch_mkfs >> $seqres.full 2>&1
|
||||
|
||||
# Get the honest truth about block counts straight from metadata on disk
|
||||
TOTAL_BLOCKS=`dumpe2fs -h $SCRATCH_DEV 2>/dev/null \
|
||||
@@ -94,10 +97,10 @@ _scratch_mount "-o bsddf"
|
||||
BSD_F_BLOCKS=`stat -f $SCRATCH_MNT | awk '/^Blocks/{print $3}'`
|
||||
umount $SCRATCH_MNT
|
||||
|
||||
# Echo data to $seq.full for analysis
|
||||
echo "Overhead is $OVERHEAD blocks out of $TOTAL_BLOCKS ($FREE_BLOCKS free)" >> $seq.full
|
||||
echo "MINIX free blocks $MINIX_F_BLOCKS" >> $seq.full
|
||||
echo "BSD free blocks $BSD_F_BLOCKS" >> $seq.full
|
||||
# Echo data to $seqres.full for analysis
|
||||
echo "Overhead is $OVERHEAD blocks out of $TOTAL_BLOCKS ($FREE_BLOCKS free)" >> $seqres.full
|
||||
echo "MINIX free blocks $MINIX_F_BLOCKS" >> $seqres.full
|
||||
echo "BSD free blocks $BSD_F_BLOCKS" >> $seqres.full
|
||||
|
||||
# minix should be exactly equal (hence tolerance of 0)
|
||||
_within_tolerance "minix f_blocks" $MINIX_F_BLOCKS $TOTAL_BLOCKS 0 -v
|
||||
|
||||
Reference in New Issue
Block a user