Lines Matching refs:test
10 # Run a system test.
24 test $# -gt 0 || { echo "usage: $0 [--keep|--noclean] test-directory" >&2; exit 1; }
26 test=$1
29 test -d $test || { echo "$0: $test: no such test" >&2; exit 1; }
31 echoinfo "S:$test:`date`" >&2
32 echoinfo "T:$test:1:A" >&2
33 echoinfo "A:System test $test" >&2
37 echowarn "I:Perl not available. Skipping test." >&2
39 echoinfo "E:$test:`date`" >&2
44 echowarn "I:Network interface aliases not set up. Skipping test." >&2;
46 echoinfo "E:$test:`date`" >&2;
51 # Check for test-specific prerequisites.
52 test ! -f $test/prereq.sh || ( cd $test && $SHELL prereq.sh "$@" )
58 echowarn "I:Prerequisites for $test missing, skipping test." >&2
60 echoinfo "E:$test:`date`" >&2
66 test ! -f $test/usepkcs11 || $SHELL cleanpkcs11.sh
70 echowarn "I:Need PKCS#11 for $test, skipping test." >&2
72 echoinfo "E:$test:`date`" >&2
76 # Set up any dynamically generated test data
77 if test -f $test/setup.sh
79 ( cd $test && $SHELL setup.sh "$@" )
83 $PERL start.pl $test || { echofail "R:FAIL"; echoinfo "E:$test:`date`"; exit 1; }
86 ( cd $test ; $SHELL tests.sh )
98 $PERL stop.pl $test
112 if test -f $test/clean.sh
114 ( cd $test && $SHELL clean.sh "$@" )
116 if test -d ../../../.git
118 git status -su --ignored $test |
126 echoinfo "E:$test:`date`"