Commit | Line | Data |
---|---|---|
6d4be29e NC |
1 | #!/bin/sh |
2 | echo >&2 You need to edit this to run your test case | |
3 | exit 1 | |
4 | ||
5 | git clean -dxf | |
6 | ||
7 | # If you get './makedepend: 1: Syntax error: Unterminated quoted | |
8 | # string' when bisecting versions of perl older than 5.9.5 this hack | |
9 | # will work around the bug in makedepend.SH which was fixed in | |
10 | # version 96a8704c. Make sure to uncomment 'git checkout makedepend.SH' | |
11 | # below too. | |
12 | #git show blead:makedepend.SH > makedepend.SH | |
13 | ||
14 | # If you can use ccache, add -Dcc=ccache\ gcc -Dld=gcc to the Configure line | |
15 | # if Encode is not needed for the test, you can speed up the bisect by | |
16 | # excluding it from the runs with -Dnoextensions=Encode | |
17 | # ie | |
18 | #./Configure -Dusedevel -Doptimize=-g -Dcc=ccache\ gcc -Dld=gcc -Dnoextensions=Encode -des | |
19 | ./Configure -Dusedevel -Doptimize=-g -des | |
20 | test -f config.sh || exit 125 | |
21 | # Correct makefile for newer GNU gcc | |
22 | perl -ni -we 'print unless /<(?:built-in|command)/' makefile x2p/makefile | |
23 | # if you just need miniperl, replace test_prep with miniperl | |
24 | make test_prep | |
25 | [ -x ./perl ] || exit 125 | |
26 | # This runs the actual testcase. You could use -e instead: | |
27 | ./perl -Ilib ~/testcase.pl | |
28 | ret=$? | |
29 | [ $ret -gt 127 ] && ret=127 | |
30 | git checkout makedepend.SH | |
31 | git clean -dxf | |
32 | exit $ret | |
33 | ||
34 | #if you need to invert the exit code, replace the above exit with this: | |
35 | #[ $ret -eq 0 ] && exit 1 | |
36 | #exit 0 |