check.mak: when a "make test.check" run fails, make it rerun the test with at least...
authorThomas Vander Stichele <thomas@apestaart.org>
Mon, 28 Nov 2005 14:17:11 +0000 (14:17 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Mon, 28 Nov 2005 14:17:11 +0000 (14:17 +0000)
Original commit message from CVS:
* check.mak:
when a "make test.check" run fails, make it rerun the test with
at least debug level 2

ChangeLog
check.mak

index cf1fded..8979910 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-11-28  Thomas Vander Stichele  <thomas at apestaart dot org>
+
+       * check.mak:
+         when a "make test.check" run fails, make it rerun the test with       
+         at least debug level 2
+
 2005-11-14  Thomas Vander Stichele  <thomas at apestaart dot org>
 
        * m4/Makefile.am:
index 3e543f4..74bd5c3 100644 (file)
--- a/check.mak
+++ b/check.mak
@@ -15,9 +15,14 @@ endif
 LOOPS = 10
 
 # run any given test by running make test.check
+# if the test fails, run it again at at least debug level 2
 %.check: %
        @$(TESTS_ENVIRONMENT)                                   \
        CK_DEFAULT_TIMEOUT=20                                   \
+       $* ||                                                   \
+       $(TESTS_ENVIRONMENT)                                    \
+       GST_DEBUG=$$GST_DEBUG,*:2                               \
+       CK_DEFAULT_TIMEOUT=20                                   \
        $*
 
 # run any given test in a loop