have_test_arg=false
randomize=false
here=`pwd`
-FSTYP=xfs
xfile=""
# start the initialisation work now
exit 1
fi
-# Autodetect fs type based on what's on $TEST_DEV
-if [ "$HOSTOS" == "Linux" ]; then
+# Autodetect fs type based on what's on $TEST_DEV unless it's been set
+# externally
+if [ -z "$FSTYP" -a "$HOSTOS" == "Linux" ]; then
FSTYP=`blkid -c /dev/null -s TYPE -o value $TEST_DEV`
fi
+FSTYP=${FSTYP:=xfs}
export FSTYP
SUPPORTED_TESTS="[0-9][0-9][0-9] [0-9][0-9][0-9][0-9]"
check options
-nfs test NFS
+ -tmpfs test TMPFS
-l line mode diff
-udiff show unified diff (default)
-n show me, do not run tests
-\? | -h | --help) usage ;;
-nfs) FSTYP=nfs ;;
+ -tmpfs) FSTYP=tmpfs ;;
-g) group=$2 ; shift ;
GROUP_LIST="$GROUP_LIST $group"
exit $status
;;
*) test_dir=`dirname $1`
+ test_dir=${test_dir#$SRC_DIR/*}
test_name=`basename $1`
group_file=$SRC_DIR/$test_dir/group
if egrep "^$test_name" $group_file >/dev/null ; then
# in group file ... OK
- echo $SRC_DIR/$1 >>$tmp.arglist
+ echo $SRC_DIR/$test_dir/$test_name >>$tmp.arglist
else
# oops
echo "$1 - unknown test, ignored"
echo " - no qualified output"
err=true
else
+
+ # coreutils 8.16+ changed quote formats in error messages from
+ # `foo' to 'foo'. Filter old versions to match the new version.
+ sed -i "s/\`/\'/g" $tmp.out
if diff $seq.out $tmp.out >/dev/null 2>&1
then
if $err
cat
else
head -n "$DIFF_LENGTH"
+ echo "..."
+ echo "(Run '$diff $seq.out $seqres.out.bad'" \
+ " to see the entire diff)"
fi; } | \
sed -e 's/^\(.\)/ \1/'
- echo " ..."
- echo " (Run '$diff $seq.out $seqres.out.bad' to see the" \
- "entire diff)"
err=true
fi
fi