Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
f347f268
Commit
f347f268
authored
Aug 05, 2013
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pgtest: allow passing parameters, e.g. -s/--silent
Previously only -n was recognized.
parent
3ced8837
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/tools/pgtest
src/tools/pgtest
+6
-3
No files found.
src/tools/pgtest
View file @
f347f268
#!/bin/sh
#!/bin/sh
# src/tools/pgtest
# src/tools/pgtest
[-n] [...]
# This runs a build/initdb/regression test suite
# This runs a build/initdb/regression test suite
#
#
...
@@ -18,11 +18,14 @@ trap "rm -rf /tmp/$$" 0 1 2 3 15
...
@@ -18,11 +18,14 @@ trap "rm -rf /tmp/$$" 0 1 2 3 15
mkdir
/tmp/
$$
mkdir
/tmp/
$$
TMP
=
"/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.
# Run "make check" and store return code in $TMP/ret.
# Display output but also capture it in $TMP/0.
# 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 success, display warnings
if
[
$(
cat
$TMP
/ret
)
-eq
0
]
if
[
$(
cat
$TMP
/ret
)
-eq
0
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment