aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/runner.py13
-rw-r--r--tests/settings.py4
2 files changed, 13 insertions, 4 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..."
diff --git a/tests/settings.py b/tests/settings.py
index 717a2b1c..53765fbe 100644
--- a/tests/settings.py
+++ b/tests/settings.py
@@ -3,9 +3,7 @@ TEMP_DIR='/dev/shm'
CLANG=os.path.expanduser('~/Dev/llvm-2.7/cbuild/bin/clang++')
LLVM_GCC=os.path.expanduser('~/Dev/llvm-gcc-2.7/cbuild/install/bin/llvm-g++')
-
-#COMPILER=LLVM_GCC
-COMPILER=CLANG
+COMPILERS = { 'clang': CLANG, 'llvm_gcc': LLVM_GCC }
COMPILER_OPTS = ['-m32'] # Need to build as 32bit arch, for now -
# various errors on 64bit compilation