bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] testsuite: make test logs more verbose


From: Stefano Lattarini
Subject: [PATCH] testsuite: make test logs more verbose
Date: Sat, 29 Dec 2012 19:52:07 +0100

The Automake-provided parallel testsuite harness take care of
redirection the stdout and stderr of the run test cases to a
corresponding log file, so we no longer have to worry about
avoiding to pollute the "make test" output.

* testsuite/runtest: Adjust and simplify.

Copyright-paperwork-exempt: yes
Signed-off-by: Stefano Lattarini <address@hidden>
---
 ChangeLog         |    5 +++++
 testsuite/runtest |   17 ++++-------------
 2 files changed, 9 insertions(+), 13 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a368c87..2db5575 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2012-12-29  Stefano Lattarini  <address@hidden>  (tiny change)
 
+       testsuite: make test logs more verbose
+       * testsuite/runtest: Adjust and simplify.
+
+2012-12-29  Stefano Lattarini  <address@hidden>  (tiny change)
+
        bootstrap: avoid yet another spurious failure
        * bootstrap: The 'missing' script has been dropped from the
        Gnulib repository; don't check for it to be present then.
diff --git a/testsuite/runtest b/testsuite/runtest
index 80ce903..4983312 100755
--- a/testsuite/runtest
+++ b/testsuite/runtest
@@ -7,17 +7,8 @@
 makefile="$srcdir/Makefile.tests"
 test=`echo "$@"| sed 's,.*/,,'`
 
-# As a convenience, suppress the output of make if the test passes
-if $MAKE SED="$SED" srcdir="$srcdir" -f "$makefile" $test > $test.test 2>&1; 
then
-  exitcode=0
-  rm -f $test.test
-else
-  exitcode=$?
-fi
-if test -f $test.skip; then
-  exitcode=77
-else
-  test -f $test.test && cat $test.test
-fi
-rm -f $test.test $test.skip
+exitcode=0
+$MAKE SED="$SED" srcdir="$srcdir" -f "$makefile" $test || exitcode=$?
+test -f $test.skip && exitcode=77
+rm -f $test.skip
 exit $exitcode
-- 
1.7.10.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]