提交 f347f268 编写于 作者: B Bruce Momjian

pgtest: allow passing parameters, e.g. -s/--silent

Previously only -n was recognized.
上级 3ced8837
#!/bin/sh
# src/tools/pgtest
# src/tools/pgtest [-n] [...]
# This runs a build/initdb/regression test suite
#
......@@ -18,11 +18,14 @@ trap "rm -rf /tmp/$$" 0 1 2 3 15
mkdir /tmp/$$
TMP="/tmp/$$"
[ "X$1" != "X-n" ] && PGCLEAN=clean
if [ "X$1" != "X-n" ]
then PGCLEAN=clean
else shift
fi
# Run "make check" and store return code in $TMP/ret.
# Display output but also capture it in $TMP/0.
($MAKE $PGCLEAN check 2>&1; echo "$?" > $TMP/ret) | tee $TMP/0
($MAKE "$@" $PGCLEAN check 2>&1; echo "$?" > $TMP/ret) | tee $TMP/0
# If success, display warnings
if [ $(cat $TMP/ret) -eq 0 ]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册