diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-03-10 15:58:22 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-03-10 15:58:22 -0700 |
commit | 4d4fe2e9f093b07a4797e1e86eab4da9ecb50211 (patch) | |
tree | 1f4b107599fad5867d8ef14ff1f7343d5c5ee639 | |
parent | 1ec3afe6d8dfac35e9e66714eb87840f60aa1f31 (diff) |
add test for odin validation
-rw-r--r-- | tests/test_other.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_other.py b/tests/test_other.py index 5af2b22c..3d5cef96 100644 --- a/tests/test_other.py +++ b/tests/test_other.py @@ -2561,3 +2561,8 @@ int main() p.communicate() assert p.returncode == 0, 'LLVM tests must pass with exit code 0' + def test_odin_validation(self): + Popen([PYTHON, EMCC, path_from_root('tests', 'hello_world.c'), '-O1'], stdout=PIPE, stderr=PIPE).communicate() + output = run_js('a.out.js', stderr=PIPE, full_output=True, engine=SPIDERMONKEY_ENGINE) + assert 'asm.js' in output, 'spidermonkey should mention asm.js compilation: ' + output + |