Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 46 lines (37 sloc) 1.15 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 src/test/cljs "{:optimizations :advanced :output-wrapper true :verbose true :compiler-stats true :parallel-build 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 ! hash jsc 2>/dev/null; then
echo "jsc not on path, skipping JavaScriptCore tests"
else
echo "Testing with JavaScriptCore"
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"