local savePWD=$PWD
cd $cnt_DIR
- # -f a quick functionality test
- # -a run basic, general, special, and lock tests
+ #
+ # cthon options (must be in this order)
+ #
# -N numpasses - will be passed to the runtests script. This argument
# is optional. It specifies the number of times to run
# through the tests.
+ #
+ # One of these test types
+ # -b basic
+ # -g general
+ # -s special
+ # -l lock
+ # -a all of the above
+ #
+ # -f a quick functionality test
+ #
- local cmd="./runtests -N $cnt_NRUN -a -f $testdir"
-
- log "$cmd"
-
- local rc=0
- eval $cmd
- rc=$?
+ tests="-b -g -s"
+ # Include lock tests unless we're running on nfsv4
+ local fstype=$(df -TP $testdir | awk 'NR==2 {print $2}')
+ echo "$testdir: $fstype"
+ if [[ $fstype != "nfs4" ]]; then
+ tests="$tests -l"
+ fi
+ echo "tests: $tests"
+ for test in $tests; do
+ local cmd="./runtests -N $cnt_NRUN $test -f $testdir"
+ local rc=0
+
+ log "$cmd"
+ eval $cmd
+ rc=$?
+ [ $rc = 0 ] || error "connectathon failed: $rc"
+ done
cd $savePWD
- [ $rc = 0 ] || error "connectathon failed: $rc"
rm -rf $testdir
}
run_test connectathon "connectathon"
}
test_statahead () {
+ if [[ -n $NFSCLIENT ]]; then
+ skip "Statahead testing is not supported on NFS clients."
+ return 0
+ fi
+
[ x$MDSRATE = x ] &&
{ skip_env "mdsrate not found" && return; }
run_test statahead "statahead test, multiple clients"
-equals_msg `basename $0`: test complete, cleaning up
+complete $(basename $0) $SECONDS
check_and_cleanup_lustre
-[ -f "$TESTSUITELOG" ] && cat $TESTSUITELOG && grep -q FAIL $TESTSUITELOG && exit 1 || true
+exit_status