mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 10:15:07 +08:00
Add color PASS/FAIL statements. Use python for portability.
This commit is contained in:
1 parent
6a172d7119
commit
b9fedf0500
1 file changed
+4
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user