aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-11-20 21:02:46 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-11-20 21:02:46 -0800
commit386dc0fa02d54a8d91a0993259415f5713d5e781 (patch)
tree4068314930d5947b34c3419150f798fbbd57b147 /tests
parentdfe5f60e7c44d3f7fc7ac92e0ce6e76497319480 (diff)
sketch of emcc
Diffstat (limited to 'tests')
-rw-r--r--tests/runner.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 0c0c78b4..fb1c7b67 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -4454,6 +4454,19 @@ TT = %s
del T # T is just a shape for the specific subclasses, we don't test it itself
class other(RunnerCore):
+ def test_emcc(self):
+ pass
+ # emcc src.cpp ==> should give a .js file
+ # emcc -O0 src.cpp ==> same as without -O0 (i.e., assertions, etc.)
+ # emcc -O1 src.cpp ==> no assertions, basic optimizations, plus eliminator, but no reloop
+ # emcc -O2 src.cpp ==> plus reloop
+ # emcc -O3 src.cpp ==> plus closure compiler
+ # emcc -typed-arrays=x .. ==> should use typed arrays
+ # emcc -llvm-opts=x .. ==> pick level of LLVM optimizations (default is 0, to be safe)
+ # emcc src.cpp -c ==> should give a .bc file
+ # linking - TODO
+ # TODO: when ready, switch tools/shared building to use emcc over emmaken
+
def test_eliminator(self):
input = open(path_from_root('tools', 'eliminator', 'eliminator-test.js')).read()
expected = open(path_from_root('tools', 'eliminator', 'eliminator-test-output.js')).read()