aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-03-05 17:26:51 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-03-05 17:26:51 -0800
commit4f5016a3ab0bf15deb32a17cfc2686dbe7cfdeef (patch)
treeba12b8f457da84c9e64a7ea224ef7bc1b855801c
parent223dd713a5c61d14ce676500a8cfde338bc91de4 (diff)
run llvm-lit on JS codegen tests
-rw-r--r--tests/test_other.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_other.py b/tests/test_other.py
index b7561fea..9e9c9bef 100644
--- a/tests/test_other.py
+++ b/tests/test_other.py
@@ -2554,3 +2554,12 @@ int main()
assert ('''unexpected return type i32 in call to 'doit', should be void''' in stderr) == asserts, stderr
assert ('''unexpected argument type float at index 1 in call to 'doit', should be i32''' in stderr) == asserts, stderr
+ def test_llvm_lit(self):
+ llvm_src = LLVM_ROOT
+ while not os.path.exists(os.path.join(llvm_src, 'emscripten-version.txt')): llvm_src = os.path.dirname(llvm_src)
+ cmd = [os.path.join(LLVM_ROOT, 'llvm-lit'), os.path.join(llvm_src, 'test', 'CodeGen', 'JS')]
+ print cmd
+ p = Popen(cmd)
+ p.communicate()
+ assert p.returncode == 0, 'LLVM tests must pass with exit code 0'
+