aboutsummaryrefslogtreecommitdiff
path: root/src/tools/pgtest
blob: 9a50bea446b578c074e7b725f9c8c4104a1667a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh

# $PostgreSQL: pgsql/src/tools/pgtest,v 1.6 2006/03/11 04:38:41 momjian Exp $

# This runs a build/initdb/regression test suite
#
# This will start a temporary postmaster, so you have to
# have enough kernel resources to run two postmasters or
# stop your main postmaster before running this script.
#
# Use -n to prevent 'gmake clean'

[ ! -d src ] && echo "This must be run from the top of the PostgreSQL source tree" 1>&2 && exit 1

trap "rm -rf /tmp/$$" 0 1 2 3 15
mkdir /tmp/$$
TMP="/tmp/$$"

[ "X$1" != "X-n" ] && PGCLEAN=clean

(gmake $PGCLEAN check 2>&1; echo "$?" > $TMP/ret) | 
	(tee  $TMP/0; exit `cat $TMP/ret`) &&
cat $TMP/0 |
# The following grep's have to be adjusted for your setup because 
# certain warnings are acceptable.
grep -i warning | 
grep -v setproctitle | 
grep -v find_rule | 
grep -v yy_flex_realloc