Add color PASS/FAIL statements. Use python for portability.
authorRyan <ry@tinyclouds.org>
Tue, 19 May 2009 18:31:40 +0000 (20:31 +0200)
committerRyan <ry@tinyclouds.org>
Tue, 19 May 2009 18:31:40 +0000 (20:31 +0200)
configure

index 191e069..56d26ad 100755 (executable)
--- 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: