8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ced883 commit f347f26Copy full SHA for f347f26
src/tools/pgtest
@@ -1,6 +1,6 @@
1
#!/bin/sh
2
3
-# src/tools/pgtest
+# src/tools/pgtest [-n] [...]
4
5
# This runs a build/initdb/regression test suite
6
#
@@ -18,11 +18,14 @@ trap "rm -rf /tmp/$$" 0 1 2 3 15
18
mkdir /tmp/$$
19
TMP="/tmp/$$"
20
21
-[ "X$1" != "X-n" ] && PGCLEAN=clean
+if [ "X$1" != "X-n" ]
22
+then PGCLEAN=clean
23
+else shift
24
+fi
25
26
# Run "make check" and store return code in $TMP/ret.
27
# Display output but also capture it in $TMP/0.
-($MAKE $PGCLEAN check 2>&1; echo "$?" > $TMP/ret) | tee $TMP/0
28
+($MAKE "$@" $PGCLEAN check 2>&1; echo "$?" > $TMP/ret) | tee $TMP/0
29
30
# If success, display warnings
31
if [ $(cat $TMP/ret) -eq 0 ]
0 commit comments