Skip to content

Commit

Permalink
* project.clj: allow testing SpiderMonkey and JSC. Teset w/ advanced …
Browse files Browse the repository at this point in the history
…optimizations
  • Loading branch information
David Nolen authored and David Nolen committed Apr 3, 2012
1 parent 8cc3384 commit c4c03a2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
:cljsbuild {:builds [{:source-path "src/main/cljs"
:compiler {:output-to "main.js"}}
{:source-path "src/test/cljs"
:compiler {:output-to "tests.js"}}]})
:compiler {:optimizations :advanced
:output-to "tests.js"}}]})
14 changes: 14 additions & 0 deletions script/test
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,18 @@ if [ "$V8_HOME" == "" ]; then
else
echo "Testing with V8"
${V8_HOME}/d8 tests.js
fi

if [ "$SPIDERMONKEY_HOME" == "" ]; then
echo "SPIDERMONKEY_HOME not set, skipping SpiderMonkey tests"
else
echo "Testing with SpiderMonkey"
${SPIDERMONKEY_HOME}/js tests.js
fi

if [ "$JSC_HOME" == "" ]; then
echo "JSC_HOME not set, skipping JavaScriptCore tests"
else
echo "Testing with JavaScriptCore"
${JSC_HOME}/jsc tests.js
fi

0 comments on commit c4c03a2

Please sign in to comment.