usage() {
cat << EOF
USAGE:
-$0 [hvqxkf] [-s SIZE] [-r RUNFILE]
+$0 [hvqxkf] [-s SIZE] [-r RUNFILE] [-t PATH] [-u USER]
DESCRIPTION:
ZFS Test Suite launch script
-d DIR Use DIR for files and loopback devices
-s SIZE Use vdevs of SIZE (default: 4G)
-r RUNFILE Run tests in RUNFILE (default: linux.run)
- -t PATH Run single test at PATH
+ -t PATH Run single test at PATH relative to test suite
-u USER Run single test as USER (default: root)
EXAMPLES:
SETUPSCRIPT=
CLEANUPSCRIPT=
- if [ -f "$SINGLETESTDIR/setup.ksh" ]; then
+ if [ -f "$STF_SUITE/$SINGLETESTDIR/setup.ksh" ]; then
SETUPSCRIPT="setup"
fi
- if [ -f "$SINGLETESTDIR/cleanup.ksh" ]; then
+ if [ -f "$STF_SUITE/$SINGLETESTDIR/cleanup.ksh" ]; then
CLEANUPSCRIPT="cleanup"
fi
echo
if [ ${#SINGLETEST[@]} -ne 0 ]; then
- rm -f "$RUNFILEDIR/$RUNFILE" &>/dev/null
+ rm -f "$RUNFILE" &>/dev/null
fi
exit ${RESULT}