From 21a885d462496fa7148abf21f7a24b511bc5f2e0 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Wed, 12 Jan 2011 15:01:39 +0100 Subject: [PATCH] testsuite: Add a make command to run tests forever And will stop once they fail. Useful to debug racy tests. --- testsuite/Makefile.am | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/testsuite/Makefile.am b/testsuite/Makefile.am index de055c8..0ab6377 100644 --- a/testsuite/Makefile.am +++ b/testsuite/Makefile.am @@ -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 ..." -- 2.7.4