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
e2c0df78
Commit
e2c0df78
authored
Jul 28, 2018
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pgtest: run clean, build, and check stages separately
This allows for cleaner error reporting. Backpatch-through: 9.5
parent
244142d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
src/tools/pgtest
src/tools/pgtest
+13
-3
No files found.
src/tools/pgtest
View file @
e2c0df78
...
...
@@ -19,15 +19,25 @@ mkdir /tmp/$$
TMP
=
"/tmp/
$$
"
if
[
"X
$1
"
!=
"X-n"
]
then
PGCLEAN
=
clean
else
shift
then
CLEAN
=
"Y"
else
CLEAN
=
""
shift
fi
rm
-f
tmp_install/log/install.log
# 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
(
if
[
"
$CLEAN
"
]
then
$MAKE
"
$@
"
clean 2>&1
echo
"
$?
"
>
$TMP
/ret
fi
if
[
$(
cat
$TMP
/ret
)
-eq
0
]
then
$MAKE
"
$@
"
2>&1
&&
$MAKE
"
$@
"
check 2>&1
echo
"
$?
"
>
$TMP
/ret
fi
)
|
tee
$TMP
/0
# Grab possible warnings from install.log
[
-e
tmp_install/log/install.log
]
&&
cat
tmp_install/log/install.log
>>
$TMP
/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