blob: 1b0445e3a029140c2a5f216de2a0d8360ab99118 [file] [log] [blame]
#!/bin/bash
# Observations:
#
# - If TEST_DEV is a symlink, xfstests fails with strange errors.
# - There appears to be some confusion about RESULT_BASE and RESULTS_BASE.
# Neither one is documented.
mkdir /tmp/testmnt
export TEST_DEV="`realpath /dev/disk/by-id/scsi-0virtme_disk_test`"
export TEST_DIR=/tmp/testmnt
mkfs.xfs -f $TEST_DEV
mkdir /tmp/scratchmnt
export SCRATCH_DEV="`realpath /dev/disk/by-id/scsi-0virtme_disk_scratch`"
export SCRATCH_MNT=/tmp/scratchmnt
mkfs.xfs -f $SCRATCH_DEV
mount -t xfs "$SCRATCH_DEV" "$SCRATCH_MNT"
echo "Scratch dev is $SCRATCH_DEV"
export RESULT_BASE=/tmp/results
export RESULTS_BASE="$RESULT_BASE"
mkdir $RESULT_BASE
cd "$1"
echo "Starting xfstests"
./check