Will run the tests for the analyzer, compiler, and closure components.
Set the V8_HOME environment variable to the path where d8 was built, for example:
echo quit | $V8_HOME/d8
be added to your
PATH environment variable so that it will be found, for example:
jsc brings up a prompt.
$NASHORN_HOME environment variable so that
so you can write:
echo 'quit()' | $NASHORN_HOME/jjs -fv
Get GraalVM from http://www.graalvm.org.
Set your GRAALVM_HOME environment variable so that
$GRAALVM_HOME/js executes Graal.js.
Get ChakraCore from https://github.com/Microsoft/ChakraCore/releases.
Set your CHAKRACORE_HOME environment variable so that
$CHAKRACORE_HOME/ch executes ChakraCore.
If you have Node.js installed, you can run the bootstrapped
ClojureScript test suite (located at
You can also build and run the ClojureScript compiler test suite in bootstrapped mode within Node.js by running
You can run tests exercising the ClojureScript CLI by running
./script/test-cli repl-env [repl-env-opts-edn]
repl-env is any of the built-in REPL environments (
browser, etc.). This will be passed to
Note that testing with
graaljs REPL environment requires GRAALVM_HOME to be found early in your PATH. You can test via:
(export PATH="$GRAALVM_HOME:$PATH"; ./script/test-cli graaljs)
You can also specify a non-built-in REPL environment, but you would have to revise
script/test-cli to include the downstream REPL environment on the classpath. You can also pass optional
repl-env-opts-edn, which will be passed to