Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c1ae39a

Browse files
committed
Add pgtest script.
1 parent dd81eee commit c1ae39a

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

src/tools/pgtest

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
cat $TMP/0 |
29+
grep -v warning |
30+
grep -v setproctitle |
31+
grep -v find_rule |
32+
grep -v yy_flex_realloc |
33+
grep -v '\[javac\] [0-9]* warning'

0 commit comments

Comments
 (0)