Fix a few errors in comments. Patch by Fujii Masao, plus the one in
[PostgreSQL.git] / src / tools / pgtest
blob081093c412ba1c5039239c02339e8747e4c1ad37
1 #!/bin/sh
3 # $PostgreSQL$
5 # This runs a build/initdb/regression test suite
7 # This will start a temporary postmaster, so you have to
8 # have enough kernel resources to run two postmasters or
9 # stop your main postmaster before running this script.
11 # Use -n to prevent 'gmake clean'
13 [ ! -d src ] && echo "This must be run from the top of the PostgreSQL source tree" 1>&2 && exit 1
15 trap "rm -rf /tmp/$$" 0 1 2 3 15
16 mkdir /tmp/$$
17 TMP="/tmp/$$"
19 [ "X$1" != "X-n" ] && PGCLEAN=clean
21 (gmake $PGCLEAN check 2>&1; echo "$?" > $TMP/ret) |
22 (tee $TMP/0; exit `cat $TMP/ret`) &&
23 cat $TMP/0 |
24 # The following grep's have to be adjusted for your setup because
25 # certain warnings are acceptable.
26 grep -i warning |
27 grep -v setproctitle |
28 grep -v find_rule |
29 grep -v yy_flex_realloc