Lines Matching refs:test

14 # TET3 test harness from The OpenGroup, originally found here:
16 # and later published in hg.opensolaris.org/hg/test-dev/stcnv-gate
27 # functions to operate in the "test-runner" environment.
57 # cti_cancel test_num [msg ...] [test result]
58 # cti_cancelall [msg ...] [test result]
67 # registers the corresponding result code against the current test,
76 # cti_deleteall() cancels all tests in the current test case.
89 # and is designed to do the complete work of a test purpose.
92 # and is designed to do the complete work of a test purpose.
94 # cti_cancel() cancels the dedicated test purpose in the current test
95 # case from execution with the test result that user gives. It will work
98 # cti_cancelall() cancels all tests in the current test case. It could
99 # be used in startup function to cancel the execution of test cases
100 # with the test result that user gives.
123 if test $cti_lv_argc -ne $cti_lv_expargc
132 if test $cti_lv_argc -lt $cti_lv_expargc
155 # If the current test function is not a startup or cleanup, this routine
156 # registers the specified result code for the current test. The remaining
160 # Modifications for test-runner:
161 # Print the result and test name (in place of tet_result)
162 # On failure, return non-zero to tell test-runner our status.
169 test $# -eq 0 && return
176 test $# -gt 0 && print "$my_host $my_timestamp $@"
178 # Print the result and test name (as tet_result would)
182 # test-runner/stf/include/stf.shlib
265 # Registers a FAIL result for the current test, and writes any arguments to
278 # Registers an UNRESOLVED result for the current test, and writes any arguments
292 # Registers an UNINITIATED result for the current test, and writes any arguments
305 # Registers an UNTESTED result for the current test, and writes any arguments
318 # Registers an UNSUPPORTED result for the current test, and writes any
331 # Registers a NOTINUSE result for the current test, and writes any arguments
362 if test $pathok -eq $1
383 test $# -eq 0 && return
389 if test -n "$cti_lv_tp"
391 echo "Deleted test: $cti_lv_tp" "$@"
438 if test -f "$cti_lv_file"
588 if test -f cti_stdin
598 if test $cti_lv_status -ne 0
616 if test -s cti_stdout
620 if test -s cti_stderr
628 if test \( $cti_lv_rv -ne 0 -o $cti_lv_checkstderr -eq 1 \) \
638 if test \( $cti_lv_rv -ne 0 -o $cti_lv_checkstdout -eq 1 \) \
672 # constitute a test failure. In that case the
675 # endcritical Indicates the end of the test failure section begun by
677 # finish Exit the expect script here - the test has passed.
723 while test $# -gt 1
727 if test "$1" = "CALL"
746 if test $? -ne 0
782 cti_unresolved "Expect script timed-out during test setup"
802 # Common test function for test purposes which use expect. Like cti_runexpect()
804 # complete work of a test purpose.
829 # used to replace test purpose functions which will be canceled.
836 # cti_cancel() - cancel an individual test purpose.
838 # Usage: cti_cancel tp reason [test result]
840 # Cancels an individual test by replace the tp function with
844 test $# -gt 3 && return
851 cti_report "Canceling test $test_num: $cticancel_msg"
853 # translate the ic and point the test purpose ic to
874 # Usage: cti_cancelall reason [test result]
884 test $# -eq 0 && return