testsuite: Add a make command to run tests forever
authorEdward Hervey <edward.hervey@collabora.co.uk>
Wed, 12 Jan 2011 14:01:39 +0000 (15:01 +0100)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Wed, 12 Jan 2011 14:01:39 +0000 (15:01 +0100)
And will stop once they fail. Useful to debug racy tests.

testsuite/Makefile.am

index de055c8..0ab6377 100644 (file)
@@ -114,6 +114,13 @@ TESTS_ENVIRONMENT = PYTHONPATH=$(top_builddir):$(top_builddir)/gst/.libs:`pwd`:$
        @PYTHONPATH=$(top_builddir):$(top_builddir)/gst/.libs:`pwd`:$(top_srcdir):$(PYTHONPATH) $(PYTHON) $(srcdir)/runtests.py $*
        @rm -fr *.pyc
 
+%.forever: %
+       @PYTHONPATH=$(top_builddir):$(top_builddir)/gst/.libs:`pwd`:$(top_srcdir):$(PYTHONPATH) $(PYTHON) $(srcdir)/cleanup.py
+       @while true; do \
+       PYTHONPATH=$(top_builddir):$(top_builddir)/gst/.libs:`pwd`:$(top_srcdir):$(PYTHONPATH) \
+       $(PYTHON) $(srcdir)/runtests.py $* || break; done
+       @rm -fr *.pyc
+
 # valgrind all tests
 valgrind: $(tests)
        @echo "Valgrinding tests ..."