Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf347f26

Browse files
committed
pgtest: allow passing parameters, e.g. -s/--silent
Previously only -n was recognized.
1 parent3ced883 commitf347f26

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

‎src/tools/pgtest

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
# src/tools/pgtest
3+
# src/tools/pgtest [-n] [...]
44

55
# This runs a build/initdb/regression test suite
66
#
@@ -18,11 +18,14 @@ trap "rm -rf /tmp/$$" 0 1 2 3 15
1818
mkdir /tmp/$$
1919
TMP="/tmp/$$"
2020

21-
["X$1"!="X-n" ]&& PGCLEAN=clean
21+
if ["X$1"!="X-n" ]
22+
thenPGCLEAN=clean
23+
elseshift
24+
fi
2225

2326
# Run "make check" and store return code in $TMP/ret.
2427
# Display output but also capture it in $TMP/0.
25-
($MAKE$PGCLEAN check2>&1;echo"$?">$TMP/ret)| tee$TMP/0
28+
($MAKE"$@"$PGCLEAN check2>&1;echo"$?">$TMP/ret)| tee$TMP/0
2629

2730
# If success, display warnings
2831
if [$(cat$TMP/ret)-eq 0 ]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp