2 which phantomjs
> /dev
/null
4 echo You must
install phantomjs to use command-line testing.
5 echo Visit http
://www.phantomjs.org
/ to get it.
7 echo OR open auto_tests
/misc
/local.html
in a browser.
8 echo OR follow the instructions
in auto_tests
/README
12 # Don't run tests if the documentation doesn't parse.
13 .
/generate-documentation.py
> /dev
/null
15 echo Failed to generate documentation. Fix this before running tests.
19 phantomjs phantom-driver.js $
* |
tee /tmp
/test-results.txt
20 trap "rm -f /tmp/test-results.txt" EXIT
21 if grep -q
'FAIL' /tmp
/test-results.txt
; then
22 echo One or
more tests failed.