]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: display the output of failed make check runs
authorLoic Dachary <ldachary@redhat.com>
Wed, 10 Jun 2015 21:16:01 +0000 (23:16 +0200)
committerLoic Dachary <ldachary@redhat.com>
Fri, 10 Jul 2015 15:55:54 +0000 (17:55 +0200)
After a make check fails, it shows a summary but not the output of the
failed tests although they contain information to diagnose the problem.

Set the VERBOSE=true automake variable which is documented to collect
and display the failed script output at the end of a run (the content of
the test-suite.log file (valid from automake-1.11 up).

http://www.gnu.org/software/automake/manual/automake.html#index-VERBOSE

Also remove the run-make-check.sh that did the same in a way that is not
compatible with automake-1.11.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
(cherry picked from commit 3a55cb029bb7db9542d2b14f2deda90feb0ae0f6)

run-make-check.sh
src/Makefile-env.am

index 4ff0783194e3779ffea1460c71c24c39f27ed9bd..e609816782d31ac57685892409b01c5abe67a27d 100755 (executable)
@@ -61,11 +61,6 @@ function main() {
         echo "make check: successful run on $(git rev-parse HEAD)"
         return 0
     else
-        find . -name '*.trs' | xargs grep -l FAIL | while read file ; do
-            log=$(dirname $file)/$(basename $file .trs).log
-            echo FAIL: $log
-            cat $log
-        done
         return 1
     fi
 }
index 93d5a9a0b55d457e4bd62c04a753d6efa117f346..e5fda78d5ff780941f5f71df0505c6e62e6c3f01 100644 (file)
@@ -35,6 +35,9 @@ check_PROGRAMS =
 # tests scripts will be appended to this
 check_SCRIPTS =
 
+# display the output of failed check_SCRIPTS after a failed make check
+export VERBOSE = true
+
 # python unit tests need to know where the scripts are located
 export PYTHONPATH=$(top_srcdir)/src/pybind