aboutsummaryrefslogtreecommitdiff
path: root/tests/test_other.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-05-02 10:43:12 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-05-02 10:43:12 -0700
commit0c96ee7315fda2dba5f2fde084cd31fa227dfb72 (patch)
tree2be6a180c129073d63f2785f00b9ba2e1ce0286c /tests/test_other.py
parent4cd5d1d622a6a2b32a5f91df5285060faa93a023 (diff)
switch other.test_embind to fastcomp and only ASM_JS
Diffstat (limited to 'tests/test_other.py')
-rw-r--r--tests/test_other.py32
1 files changed, 14 insertions, 18 deletions
diff --git a/tests/test_other.py b/tests/test_other.py
index 4560ac6e..779335bb 100644
--- a/tests/test_other.py
+++ b/tests/test_other.py
@@ -1879,24 +1879,20 @@ This pointer might make sense in another type signature: i: 0
assert 'If you see this - the world is all right!' in output
def test_embind(self):
- def nonfc():
- for args, fail in [
- ([], True), # without --bind, we fail
- (['--bind'], False),
- (['--bind', '-O1'], False),
- (['--bind', '-O2'], False),
- (['--bind', '-O1', '-s', 'ASM_JS=0'], False),
- (['--bind', '-O2', '-s', 'ASM_JS=0'], False)
- ]:
- print args, fail
- self.clear()
- try_delete(self.in_dir('a.out.js'))
- Popen([PYTHON, EMCC, path_from_root('tests', 'embind', 'embind_test.cpp'), '--post-js', path_from_root('tests', 'embind', 'underscore-1.4.2.js'), '--post-js', path_from_root('tests', 'embind', 'imvu_test_adapter.js'), '--post-js', path_from_root('tests', 'embind', 'embind.test.js')] + args, stderr=PIPE if fail else None).communicate()
- assert os.path.exists(self.in_dir('a.out.js')) == (not fail)
- if not fail:
- output = run_js(self.in_dir('a.out.js'), stdout=PIPE, stderr=PIPE, full_output=True)
- assert "FAIL" not in output, output
- nonfastcomp(nonfc)
+ for args, fail in [
+ ([], True), # without --bind, we fail
+ (['--bind'], False),
+ (['--bind', '-O1'], False),
+ (['--bind', '-O2'], False),
+ ]:
+ print args, fail
+ self.clear()
+ try_delete(self.in_dir('a.out.js'))
+ Popen([PYTHON, EMCC, path_from_root('tests', 'embind', 'embind_test.cpp'), '--post-js', path_from_root('tests', 'embind', 'underscore-1.4.2.js'), '--post-js', path_from_root('tests', 'embind', 'imvu_test_adapter.js'), '--post-js', path_from_root('tests', 'embind', 'embind.test.js')] + args, stderr=PIPE if fail else None).communicate()
+ assert os.path.exists(self.in_dir('a.out.js')) == (not fail)
+ if not fail:
+ output = run_js(self.in_dir('a.out.js'), stdout=PIPE, stderr=PIPE, full_output=True)
+ assert "FAIL" not in output, output
def test_llvm_nativizer(self):
try: