From: David Levine Date: Sat, 26 Jan 2013 15:00:48 +0000 (-0600) Subject: In build_nmh's output from the test suite: retain X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/eb789b05381c7f2a2cca0f9d7cd028309e970345?ds=inline;hp=-c In build_nmh's output from the test suite: retain colorization and list any test failures. --- eb789b05381c7f2a2cca0f9d7cd028309e970345 diff --git a/docs/contrib/build_nmh b/docs/contrib/build_nmh index f0b0c56c..f17b240f 100755 --- a/docs/contrib/build_nmh +++ b/docs/contrib/build_nmh @@ -273,17 +273,19 @@ if [ $status -eq 0 ]; then fi [ $verbose -ge 1 ] && echo testing . . . - checkoutput=`make $check 2>>"$logfile"` + checkoutput=`make $check AM_COLOR_TESTS=always 2>>"$logfile"` status=$? tests_summary=`echo "$checkoutput" | grep tests` #### If multiple tests not run, that line will be caught by the #### "grep tests" above. test_not_run=`echo "$checkoutput" | grep 'test was not run'` + fails=`echo "$checkoutput" | grep FAIL` if [ "$tests_summary" ]; then echo '===================' >>"$logfile" - echo "$tests_summary" >>"$logfile" [ "$test_not_run" ] && echo "$test_not_run" >>"$logfile" + [ "$fails" ] && echo "$fails" >>"$logfile" + echo "$tests_summary" >>"$logfile" echo '===================' >>"$logfile" [ "$check" = distcheck ] && \ echo "$checkoutput" | tail -n 4 >>"$logfile"