xref: /netbsd-src/external/gpl3/gcc.old/dist/contrib/reghunt/examples/README (revision 36ac495d2b3ea2b9d96377b2143ebfedac224b92)
1*36ac495dSmrgThis directory contains files from examples of regression hunts, cut
2*36ac495dSmrgdown to smaller ranges to save space and time.  Try these out before
3*36ac495dSmrgusing the tools on your own tests.  First, update gcc-svn-env and
4*36ac495dSmrgcommon.config for your own environment.
5*36ac495dSmrg
6*36ac495dSmrgEach of the examples has multiple files:
7*36ac495dSmrg
8*36ac495dSmrg  *.list files were created using gcc-svn-patchlist
9*36ac495dSmrg
10*36ac495dSmrg  *.config files were written by hand based on earlier config files;
11*36ac495dSmrg  the commented-out pieces are left as templates in case they're needed
12*36ac495dSmrg
13*36ac495dSmrg  *.c, *.c++ are source files for the test, usually taken directly from
14*36ac495dSmrg  the PR
15*36ac495dSmrg
16*36ac495dSmrg  *.test files are tests specific to a bug when an existing gcc-test-*
17*36ac495dSmrg  script can't be used
18*36ac495dSmrg
19*36ac495dSmrg  *.log files are output from various scripts
20*36ac495dSmrg
21*36ac495dSmrgExamples, where the identifier is the PR number:
22*36ac495dSmrg
23*36ac495dSmrg  28970   wrong-code
24*36ac495dSmrg  29106   special test, 4.1 branch
25*36ac495dSmrg  29578   bogus-warning
26*36ac495dSmrg  29906a  ice-on-valid-code, break
27*36ac495dSmrg  29906b  ice-on-valid-code, fix
28*36ac495dSmrg  30643   special test, cross compiler
29*36ac495dSmrg
30*36ac495dSmrgCut down the range even further by setting LOW_PATCH and HIGH_PATCH
31*36ac495dSmrgwithin the config file to ids where the log file shows the test
32*36ac495dSmrgpassed or failed.
33*36ac495dSmrg
34*36ac495dSmrgTo run one, do
35*36ac495dSmrg
36*36ac495dSmrg  reg-hunt 28970.config > 28970.log 2>&1
37*36ac495dSmrg
38*36ac495dSmrgCheck on its progress using
39*36ac495dSmrg
40*36ac495dSmrg  ./reg-watch 28970.log
41*36ac495dSmrg
42*36ac495dSmrgTo run them all, do
43*36ac495dSmrg
44*36ac495dSmrg  echo "hunt 28970" > queue
45*36ac495dSmrg  echo "hunt 29106" >> queue
46*36ac495dSmrg  echo "hunt 29578" >> queue
47*36ac495dSmrg  echo "hunt 29906a" >> queue
48*36ac495dSmrg  echo "hunt 29906b" >> queue
49*36ac495dSmrg  echo "hunt 30643" >> queue
50*36ac495dSmrg  ./testall queue
51*36ac495dSmrg
52*36ac495dSmrgThis allows you to add more to the queue if you're setting up lots of
53*36ac495dSmrghunts.
54