OSDN Git Service

* tree-if-conv.c (tree_if_conversion): Make it static.
[pf3gnuchains/gcc-fork.git] / contrib / reghunt / reg_test_template
1 #! /bin/sh
2
3 # Template for the test script specified for REG_TEST.
4
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.
8
9 DATE="${1}"
10
11 # Specify the PR number and the directory where the test should be run.
12 PR=xxxx
13 DIR=xxxx
14
15 LOG_DATE="`echo ${DATE} | sed 's/[-: ]/_/g'`"
16 LOG="${PR}.${LOG_DATE}.out"
17
18 echo "`date`  running test for PR ${PR}"
19 cd ${DIR}
20
21 # Compile the test case with whatever options are needed to trigger the
22 # error.
23
24 <compiler_to_run> <options> ${PR}.<x> > ${LOG} 2>&1
25
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.
30
31 xxxxx
32
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.
36
37 # Return 1 to continue the search with later dates, 0 for earlier dates.
38
39 test $? -eq 0 && exit 1
40 exit 0