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
914b1301
Commit
914b1301
authored
Aug 10, 2012
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust pgtest coding to be less complex.
parent
99ed473a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
src/tools/pgtest
src/tools/pgtest
+14
-13
No files found.
src/tools/pgtest
View file @
914b1301
...
...
@@ -20,19 +20,20 @@ TMP="/tmp/$$"
[
"X
$1
"
!=
"X-n"
]
&&
PGCLEAN
=
clean
# run make check, capture return code in $TMP/ret, then display
# that but capture it in $TMP/0 too, and return original make
# error code. If that succeded, display captured warnings
(
$MAKE
$PGCLEAN
check 2>&1
;
echo
"
$?
"
>
$TMP
/ret
)
|
(
tee
$TMP
/0
;
exit
`
cat
$TMP
/ret
`
)
&&
cat
$TMP
/0 |
# The following grep's have to be adjusted for your setup because
# certain warnings are acceptable.
grep
-i
warning |
grep
-v
setproctitle |
grep
-v
find_rule |
grep
-v
yy_flex_realloc
# 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 success, display warnings
if
[
$(
cat
$TMP
/ret
)
-eq
0
]
then
cat
$TMP
/0 |
# The following grep's have to be adjusted for your setup because
# certain warnings are acceptable.
grep
-i
warning |
grep
-v
setproctitle |
grep
-v
find_rule |
grep
-v
yy_flex_realloc
fi
# return original make error code
exit
`
cat
$TMP
/ret
`
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