diff options
author | alon@honor <none@none> | 2010-09-21 21:37:12 -0700 |
---|---|---|
committer | alon@honor <none@none> | 2010-09-21 21:37:12 -0700 |
commit | 6ed3cfef2fdd09865e83d80046169930be5082c7 (patch) | |
tree | 880958abb35647277adf005aa172cf6016ead2b1 /tests/runner.py | |
parent | 427206373413805fef3c56915fa6e1ac9dd93627 (diff) |
test using both clang and llvm-gcc by default
Diffstat (limited to 'tests/runner.py')
-rw-r--r-- | tests/runner.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py index 3f14a4ac..7affaf24 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -739,8 +739,19 @@ class T(unittest.TestCase): # XXX RELOOP = 1 either is very very slow, or nonfinishing self.do_test(path_from_root(['tests', 'sauer']), '*\nTemp is 33\n9\n5\nhello, everyone\n*', main_file='command.cpp', emscripten_settings='{"RELOOP": 0}') +# Test compilation with all the frontend compilers we have +for compiler_name, compiler_path in COMPILERS.iteritems(): + class TT(T): + def setUp(self): + global COMPILER + COMPILER=compiler_path + exec('T_' + compiler_name + ' = TT') + del TT + +del T # T is just a shape for the specific subclasses, we don't test it itself + if __name__ == '__main__': - for cmd in [COMPILER, LLVM_DIS, PARSER_ENGINE, JS_ENGINE]: + for cmd in COMPILERS.values() + [LLVM_DIS, PARSER_ENGINE, JS_ENGINE]: print "Checking for existence of", cmd assert(os.path.exists(cmd)) print "Running Emscripten tests..." |