Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 39 lines (31 sloc) 0.907 kb
5c8e1d4 Charles Duffy General cleanups for shell wrappers
charles-dyfis-net authored
1 #!/bin/sh
2
bf370e0 Brenton Ashworth Remove output directory before running tests so that all files will be r...
brentonashworth authored
3 rm -rf out
4d1bfbf Stuart Halloway wip: move tests into their own directory, run them with script/test
stuarthalloway authored
4 mkdir -p out
5
b64cd90 Fogus Working through the read paths
fogus authored
6 possible=3
7 ran=0
8
5c8e1d4 Charles Duffy General cleanups for shell wrappers
charles-dyfis-net authored
9 #bin/cljsc test >out/core-test.js
10 bin/cljsc test "{:optimizations :advanced}" >out/core-advanced-test.js
4d1bfbf Stuart Halloway wip: move tests into their own directory, run them with script/test
stuarthalloway authored
11
5c8e1d4 Charles Duffy General cleanups for shell wrappers
charles-dyfis-net authored
12 if [ "$V8_HOME" = "" ]; then
4d1bfbf Stuart Halloway wip: move tests into their own directory, run them with script/test
stuarthalloway authored
13 echo "V8_HOME not set, skipping V8 tests"
14 else
481b10e David Nolen * script/test: tweak test script so that SpiderMonkey and JavaScriptCore...
swannodette authored
15 echo "Testing with V8"
5c8e1d4 Charles Duffy General cleanups for shell wrappers
charles-dyfis-net authored
16 "${V8_HOME}/d8" out/core-advanced-test.js
4d1bfbf Stuart Halloway wip: move tests into their own directory, run them with script/test
stuarthalloway authored
17 # TODO: figure out path problem when not in advanced mode
5c8e1d4 Charles Duffy General cleanups for shell wrappers
charles-dyfis-net authored
18 # "${V8_HOME}/d8" out/core-test.js
b64cd90 Fogus Working through the read paths
fogus authored
19 ran=$[ran+1]
4d1bfbf Stuart Halloway wip: move tests into their own directory, run them with script/test
stuarthalloway authored
20 fi
21
5c8e1d4 Charles Duffy General cleanups for shell wrappers
charles-dyfis-net authored
22 if [ "$SPIDERMONKEY_HOME" = "" ]; then
481b10e David Nolen * script/test: tweak test script so that SpiderMonkey and JavaScriptCore...
swannodette authored
23 echo "SPIDERMONKEY_HOME not set, skipping SpiderMonkey tests"
24 else
25 echo "Testing with SpiderMonkey"
dae2851 * script/test: make SpiderMonkey tests fast
David Nolen authored
26 ${SPIDERMONKEY_HOME}/js -m -n -a -f out/core-advanced-test.js
b64cd90 Fogus Working through the read paths
fogus authored
27 ran=$[ran+1]
481b10e David Nolen * script/test: tweak test script so that SpiderMonkey and JavaScriptCore...
swannodette authored
28 fi
29
5c8e1d4 Charles Duffy General cleanups for shell wrappers
charles-dyfis-net authored
30 if [ "$JSC_HOME" = "" ]; then
481b10e David Nolen * script/test: tweak test script so that SpiderMonkey and JavaScriptCore...
swannodette authored
31 echo "JSC_HOME not set, skipping JavaScriptCore tests"
32 else
33 echo "Testing with JavaScriptCore"
5c8e1d4 Charles Duffy General cleanups for shell wrappers
charles-dyfis-net authored
34 "${JSC_HOME}/jsc" -f out/core-advanced-test.js
b64cd90 Fogus Working through the read paths
fogus authored
35 ran=$[ran+1]
481b10e David Nolen * script/test: tweak test script so that SpiderMonkey and JavaScriptCore...
swannodette authored
36 fi
37
b64cd90 Fogus Working through the read paths
fogus authored
38 echo "Tested with $ran out of $possible possible js targets"
Something went wrong with that request. Please try again.