fixed more binutils issues (newer gcc/libc)
[zpugcc/jano.git] / toolchain / gcc / contrib / reghunt / reg_test_template
blob8b9356667211bc6b1b08c7c98519fc381029cafb
1 #! /bin/sh
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.
9 DATE="${1}"
11 # Specify the PR number and the directory where the test should be run.
12 PR=xxxx
13 DIR=xxxx
15 LOG_DATE="`echo ${DATE} | sed 's/[-: ]/_/g'`"
16 LOG="${PR}.${LOG_DATE}.out"
18 echo "`date` running test for PR ${PR}"
19 cd ${DIR}
21 # Compile the test case with whatever options are needed to trigger the
22 # error.
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.
31 xxxxx
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
40 exit 0