mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
Update pgtest to use 'gmake check'.
This commit is contained in:
parent
ea886339b8
commit
757b718476
@ -1,8 +1,12 @@
|
|||||||
:
|
:
|
||||||
|
|
||||||
# This runs a build/initdb/regression test suite
|
# This runs a build/initdb/regression test suite
|
||||||
|
#
|
||||||
[ ! "$PGDATA" ] && echo "You must define PGDATA" 1>&2 && exit 1
|
# 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
|
[ ! -d src ] && echo "This must be run from the top of the PostgreSQL source tree" 1>&2 && exit 1
|
||||||
|
|
||||||
@ -10,26 +14,14 @@ trap "rm -rf /tmp/$$" 0 1 2 3 15
|
|||||||
mkdir /tmp/$$
|
mkdir /tmp/$$
|
||||||
TMP="/tmp/$$"
|
TMP="/tmp/$$"
|
||||||
|
|
||||||
pg_ctl stop
|
[ "X$1" != "X-n" ] && PGCLEAN=clean
|
||||||
rm -rf "$PGDATA"
|
|
||||||
|
|
||||||
cd src
|
(gmake $PGCLEAN check 2>&1; echo "$?" > $TMP/ret) |
|
||||||
|
|
||||||
# return command error value
|
|
||||||
(gmake clean; gmake install 2>&1; echo "$?" > $TMP/ret) |
|
|
||||||
(tee $TMP/0; exit `cat $TMP/ret`) &&
|
(tee $TMP/0; exit `cat $TMP/ret`) &&
|
||||||
initdb &&
|
cat $TMP/0 |
|
||||||
pg_ctl start &&
|
|
||||||
createdb test &&
|
|
||||||
cd src/test/regress &&
|
|
||||||
gmake clean &&
|
|
||||||
gmake installcheck
|
|
||||||
|
|
||||||
# The following grep's have to be adjusted for your setup because
|
# The following grep's have to be adjusted for your setup because
|
||||||
# certain warnings are acceptable.
|
# certain warnings are acceptable.
|
||||||
|
grep warning |
|
||||||
cat $TMP/0 |
|
|
||||||
grep -v warning |
|
|
||||||
grep -v setproctitle |
|
grep -v setproctitle |
|
||||||
grep -v find_rule |
|
grep -v find_rule |
|
||||||
grep -v yy_flex_realloc |
|
grep -v yy_flex_realloc |
|
||||||
|
Loading…
Reference in New Issue
Block a user