Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
executable file 47 lines (38 sloc) 1.191 kb
#!/bin/sh
rm -rf builds/out-adv
rm -rf out
rm -rf target
mkdir -p builds/out-adv
possible=4
ran=0
#bin/cljsc test >out/core-test.js
bin/cljsc test "{:optimizations :advanced :output-wrapper true :verbose true :compiler-stats true :output-dir \"builds/out-adv\"}" > builds/out-adv/core-advanced-test.js
if [ "$V8_HOME" = "" ]; then
echo "V8_HOME not set, skipping V8 tests"
else
echo "Testing with V8"
"${V8_HOME}/d8" builds/out-adv/core-advanced-test.js
ran=$((ran+1))
fi
if [ "$SPIDERMONKEY_HOME" = "" ]; then
echo "SPIDERMONKEY_HOME not set, skipping SpiderMonkey tests"
else
echo "Testing with SpiderMonkey"
${SPIDERMONKEY_HOME}/js -f builds/out-adv/core-advanced-test.js
ran=$((ran+1))
fi
if [ "$JSC_HOME" = "" ]; then
echo "JSC_HOME not set, skipping JavaScriptCore tests"
else
echo "Testing with JavaScriptCore"
"${JSC_HOME}/jsc" -f builds/out-adv/core-advanced-test.js
ran=$((ran+1))
fi
if [ "$NASHORN_HOME" = "" ]; then
echo "NASHORN_HOME not set, skipping Nashorn tests"
else
echo "Testing with Nashorn"
"${NASHORN_HOME}/jjs" builds/out-adv/core-advanced-test.js
ran=$((ran+1))
fi
echo "Tested with $ran out of $possible possible js targets"
Jump to Line
Something went wrong with that request. Please try again.