]> granicus.if.org Git - postgresql/blob - src/tools/pgtest
Add mention that the grep's have to be adjusted in pgtest.
[postgresql] / src / tools / pgtest
1 :
2
3 # This runs a build/initdb/regression test suite
4
5 [ ! "$PGDATA" ] && echo "You must define PGDATA" 1>&2 && exit 1
6
7 [ ! -d src ] && echo "This must be run from the top of the PostgreSQL source tree" 1>&2 && exit 1
8
9 trap "rm -rf /tmp/$$" 0 1 2 3 15
10 mkdir /tmp/$$
11 TMP="/tmp/$$"
12
13 pg_ctl stop
14 rm -rf "$PGDATA"
15
16 cd src
17
18 # return command error value
19 (gmake clean; gmake install 2>&1; echo "$?" > $TMP/ret) | 
20         (tee  $TMP/0; exit `cat $TMP/ret`) &&
21 initdb &&
22 pg_ctl start &&
23 createdb test &&
24 cd src/test/regress &&
25 gmake clean &&
26 gmake installcheck
27
28 # The following grep's have to be adjusted for your setup because 
29 # certain warnings are acceptable.
30
31 cat $TMP/0 | 
32         grep -v warning |
33         grep -v setproctitle | 
34         grep -v find_rule | 
35         grep -v yy_flex_realloc |
36         grep -v '\[javac\] [0-9]* warning'