[Intel-gfx] [PATCH 15/23] piglit: Support R= as RESUME= for the lazies

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


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

diff --git a/Makefile.am b/Makefile.am
index bd86a29..5086406 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -58,13 +58,14 @@ TEST_TARGETS := #
 
 TEST_TARGETS += run-test
 run-tests:
-	@if [ -n "$(RESUME)" ]; then \
-		[ ! -f $(RESUME)/main ] && { \
-			echo "$(RESUME) is not a valid piglit project"; \
+	@[ -z "$(RESUME)" -a -n "$(R)" ] && RESUME=$(R); \
+	if [ -n "$$RESUME" ]; then \
+		[ ! -f $$RESUME/main ] && { \
+			echo "$$RESUME is not a valid piglit project"; \
 			exit 1; \
 		}; \
-		output=$(RESUME); \
-		echo "Resuming $(RESUME)..."; \
+		output=$$RESUME; \
+		echo "Resuming $$RESUME..."; \
 		PIGLIT_FLAGS="--resume $$PIGLIT_FLAGS"; \
 	else \
 		source $(srcdir)/scripts/build-piglit.sh && \
-- 
1.8.3.1




More information about the Intel-gfx mailing list