~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to src/tools/pgtest

  • Committer: alvherre
  • Date: 2005-12-16 21:24:52 UTC
  • Revision ID: svn-v4:db760fc0-0f08-0410-9d63-cc6633f64896:trunk:1
Initial import of the REL8_0_3 sources from the Pgsql CVS repository.

Show diffs side-by-side

added added

removed removed

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