diff options
author | Alon Zakai <azakai@mozilla.com> | 2010-09-20 09:02:11 -0700 |
---|---|---|
committer | Alon Zakai <azakai@mozilla.com> | 2010-09-20 09:02:11 -0700 |
commit | ac2b1c6606bcae0e226074cec36a290e0658e681 (patch) | |
tree | 5fc2b45b51f62e34810ba053677afab63882c3aa /tests/runner.py | |
parent | 9b369c6e57ad1f7a5f47c0198573c89aa9255d22 (diff) |
fixes for clang, including support for phi; all tests pass, but optimizer and relooper broken (on clang)
Diffstat (limited to 'tests/runner.py')
-rw-r--r-- | tests/runner.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/runner.py b/tests/runner.py index 78e500ef..b138e61f 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -56,7 +56,7 @@ class T(unittest.TestCase): pass os.chdir(dirname) cwd = os.getcwd() - output = Popen([LLVM_GCC, '-DEMSCRIPTEN', '-emit-llvm', '-c', filename, '-o', filename + '.o'], stdout=PIPE, stderr=STDOUT).communicate()[0] + output = Popen([COMPILER, '-DEMSCRIPTEN', '-emit-llvm'] + COMPILER_OPTS + ['-c', filename, '-o', filename + '.o'], stdout=PIPE, stderr=STDOUT).communicate()[0] os.chdir(cwd) if not os.path.exists(filename + '.o'): print "Failed to compile C/C++ source:\n\n", output @@ -740,12 +740,9 @@ class T(unittest.TestCase): self.do_test(path_from_root(['tests', 'sauer']), '*\nTemp is 33\n9\n5\nhello, everyone\n*', main_file='command.cpp', emscripten_settings='{"RELOOP": 0}') if __name__ == '__main__': - if DEBUG: print "LLVM_GCC:", LLVM_GCC - if DEBUG: print "LLC:", LLC - if DEBUG: print "PARSER:", PARSER - if DEBUG: print "JS_ENGINE:", JS_ENGINE - for cmd in [LLVM_GCC, JS_ENGINE]: - if DEBUG: print "Checking for existence of", cmd + for cmd in [COMPILER, LLVM_DIS, PARSER_ENGINE, JS_ENGINE]: + print "Checking for existence of", cmd assert(os.path.exists(cmd)) + print "Running Emscripten tests..." unittest.main() |