From b9fedf05009c43173b6f3ab2fdc08ff8e55ecff3 Mon Sep 17 00:00:00 2001 From: Ryan Date: Tue, 19 May 2009 20:31:40 +0200 Subject: [PATCH] Add color PASS/FAIL statements. Use python for portability. --- configure | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 191e069..56d26ad 100755 --- a/configure +++ b/configure @@ -91,11 +91,14 @@ uninstall: else \\ $WAF uninstall ; \\ fi; + +FAIL=python -c 'print("\033[1;31mFAIL\033[m")' +PASS=python -c 'print("\033[1;32mPASS\033[m")' test: all @for i in test/test*.js; do \\ echo "\$\$i: "; \\ - build/debug/node \$\$i && echo PASS || echo FAIL; \\ + build/debug/node \$\$i && \$(PASS) || \$(FAIL); \\ done clean: -- 2.7.4