Commit 914b1301 authored by Bruce Momjian's avatar Bruce Momjian

Adjust pgtest coding to be less complex.

parent 99ed473a
...@@ -20,19 +20,20 @@ TMP="/tmp/$$" ...@@ -20,19 +20,20 @@ TMP="/tmp/$$"
[ "X$1" != "X-n" ] && PGCLEAN=clean [ "X$1" != "X-n" ] && PGCLEAN=clean
# run make check, capture return code in $TMP/ret, then display # Run "make check" and store return code in $TMP/ret.
# that but capture it in $TMP/0 too, and return original make # Display output but also capture it in $TMP/0.
# error code. If that succeded, display captured warnings ($MAKE $PGCLEAN check 2>&1; echo "$?" > $TMP/ret) | tee $TMP/0
($MAKE $PGCLEAN check 2>&1; echo "$?" > $TMP/ret) | # If success, display warnings
(tee $TMP/0; exit `cat $TMP/ret`) && if [ $(cat $TMP/ret) -eq 0 ]
cat $TMP/0 | then cat $TMP/0 |
# The following grep's have to be adjusted for your setup because # The following grep's have to be adjusted for your setup because
# certain warnings are acceptable. # certain warnings are acceptable.
grep -i warning | grep -i warning |
grep -v setproctitle | grep -v setproctitle |
grep -v find_rule | grep -v find_rule |
grep -v yy_flex_realloc grep -v yy_flex_realloc
fi
# return original make error code # return original make error code
exit `cat $TMP/ret` exit `cat $TMP/ret`
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment