3 # Template for the test script specified for REG_TEST.
5 # Run the test case for a regression search. The argument is the date
6 # of the CVS sources. The return value is 1 if the binary search should
7 # continue with later dates, 0 if it should continue with earlier dates.
11 # Specify the PR number and the directory where the test should be run.
15 LOG_DATE
="`echo ${DATE} | sed 's/[-: ]/_/g'`"
16 LOG
="${PR}.${LOG_DATE}.out"
18 echo "`date` running test for PR ${PR}"
21 # Compile the test case with whatever options are needed to trigger the
24 <compiler_to_run
> <options
> ${PR}.
<x
> > ${LOG} 2>&1
26 # Some tests will require additional commands to determine whether the
27 # test passed or failed, such as grepping compiler output for a
28 # particular message, or running the test and possibly comparing its
29 # output with the expected output.
33 # The return value depends on whether the last command is expected to be
34 # zero or nonzero for a passing test, and whether we're looking for a
35 # regression or for the patch that fixed the bug.
37 # Return 1 to continue the search with later dates, 0 for earlier dates.
39 test $?
-eq 0 && exit 1