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
@@ -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`
|
||||
@@ -47,7 +50,7 @@ _supported_os Linux
|
||||
_require_scratch
|
||||
_require_xfs_io_falloc
|
||||
|
||||
rm -f $seq.full
|
||||
rm -f $seqres.full
|
||||
|
||||
BLOCKSIZE=4096
|
||||
|
||||
@@ -57,7 +60,7 @@ for SUNIT_K in 8 16 32 64 128; do
|
||||
|
||||
echo "=== mkfs with su $SUNIT_BLOCKS blocks x 4 ==="
|
||||
export MKFS_OPTIONS=""
|
||||
_scratch_mkfs_geom $SUNIT_BYTES 4 $BLOCKSIZE >> $seq.full 2>&1
|
||||
_scratch_mkfs_geom $SUNIT_BYTES 4 $BLOCKSIZE >> $seqres.full 2>&1
|
||||
_scratch_mount
|
||||
|
||||
for SIZE_MULT in 1 2 8 64 256; do
|
||||
@@ -67,10 +70,10 @@ for SUNIT_K in 8 16 32 64 128; do
|
||||
for FILE in 1 2 3 4; do
|
||||
xfs_io -F -f -c "falloc 0 $SIZE" \
|
||||
$SCRATCH_MNT/file-$FILE-$SIZE-falloc \
|
||||
>> $seq.full 2>&1
|
||||
>> $seqres.full 2>&1
|
||||
xfs_io -F -f -c "pwrite 0 $SIZE" \
|
||||
$SCRATCH_MNT/file-$FILE-$SIZE-write \
|
||||
>> $seq.full 2>&1
|
||||
>> $seqres.full 2>&1
|
||||
src/t_stripealign $SCRATCH_MNT/file-$FILE-$SIZE-falloc \
|
||||
$SUNIT_BLOCKS | _filter_scratch
|
||||
src/t_stripealign $SCRATCH_MNT/file-$FILE-$SIZE-write \
|
||||
@@ -80,7 +83,7 @@ for SUNIT_K in 8 16 32 64 128; do
|
||||
|
||||
echo "=== Testing size 1g falloc on ${SUNIT_K}k stripe ==="
|
||||
xfs_io -F -f -c "falloc 0 1g" \
|
||||
$SCRATCH_MNT/file-1g-falloc >> $seq.full 2>&1
|
||||
$SCRATCH_MNT/file-1g-falloc >> $seqres.full 2>&1
|
||||
src/t_stripealign $SCRATCH_MNT/file-1g-falloc $SUNIT_BLOCKS \
|
||||
| _filter_scratch
|
||||
|
||||
@@ -88,7 +91,7 @@ for SUNIT_K in 8 16 32 64 128; do
|
||||
|
||||
echo "=== Testing size 1073745920 falloc on ${SUNIT_K}k stripe ==="
|
||||
xfs_io -F -f -c "falloc 0 1073745920" \
|
||||
$SCRATCH_MNT/file-1073745920-falloc >> $seq.full 2>&1
|
||||
$SCRATCH_MNT/file-1073745920-falloc >> $seqres.full 2>&1
|
||||
src/t_stripealign $SCRATCH_MNT/file-1073745920-falloc \
|
||||
$SUNIT_BLOCKS | _filter_scratch
|
||||
|
||||
|
||||
Reference in New Issue
Block a user