File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
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'
You can’t perform that action at this time.
0 commit comments