[Intel-gfx] [PATCH 07/23] piglit: Support resuming from a previous run

Damien Lespiau damien.lespiau at intel.com
Fri Nov 15 17:33:24 CET 2013


It can happen that the machine hard hangs in one of tests, say,
drv_module_reload. We really want to support resuming the run in that
case (probably excluding the faulty test as well). This commit adds an
easy way to do that:

sudo make run-tests PIGLIT_FLAGS="-x module_reload" RESUME=20131114-piglit-results.1

Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
---
 Makefile.am | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 471dd3d..5742b82 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -58,9 +58,18 @@ TEST_TARGETS := #
 
 TEST_TARGETS += run-test
 run-tests:
-	@source $(srcdir)/scripts/build-piglit.sh && \
-	output=$$(igt_result_directory) && \
-	$(PIGLIT) $(IGT_TESTS) $$output && \
+	@if [ -n "$(RESUME)" ]; then \
+		[ ! -f $(RESUME)/main ] && { \
+			echo "$(RESUME) is not a valid piglit project"; \
+			exit 1; \
+		}; \
+		output=$(RESUME); \
+		echo "Resuming $(RESUME)..."; \
+		PIGLIT_FLAGS="--resume $$PIGLIT_FLAGS"; \
+	else \
+		source $(srcdir)/scripts/build-piglit.sh && \
+		output=$$(igt_result_directory); \
+	fi; \
 	$(PIGLIT) $${PIGLIT_FLAGS} $(IGT_TESTS) $$output && \
 	$(PIGLIT_HTML) $$output/html $$output/main && \
 	$(PIGLIT_SUMMARY) $$output/main
-- 
1.8.3.1




More information about the Intel-gfx mailing list