aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-06-06 07:40:27 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-06-06 07:40:27 -0700
commitaa1b54bbb54aaf9bbb690ed232c01a20751d3355 (patch)
treef149ba344323a559024de681a2c23a53aa2e63a7 /tests/runner.py
parente068f02137c1de07480886c0f6181150d77816dd (diff)
fixes for USE_TYPED_ARRAYS == 2
Diffstat (limited to 'tests/runner.py')
-rw-r--r--tests/runner.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 738f639e..c94906f2 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -1715,6 +1715,9 @@ if 'benchmark' not in sys.argv:
self.do_test(src, 'Pfannkuchen(%d) = %d.' % (i,j), [str(i)], no_build=i>1)
def test_raytrace(self):
+ global USE_TYPED_ARRAYS
+ if USE_TYPED_ARRAYS == 2: return self.skip() # relies on double values
+
src = open(path_from_root('tests', 'raytrace.cpp'), 'r').read()
output = open(path_from_root('tests', 'raytrace.ppm'), 'r').read()
self.do_test(src, output, ['3', '16'])
@@ -2492,6 +2495,7 @@ class %s(T):
USE_TYPED_ARRAYS = %d
INVOKE_RUN = 1
RELOOP = OPTIMIZE = embetter
+ if USE_TYPED_ARRAYS == 2: RELOOP = 0 # XXX
QUANTUM_SIZE = quantum_size
ASSERTIONS = 1-embetter
SAFE_HEAP = 1-(embetter and llvm_opts)
@@ -2517,8 +2521,8 @@ TT = %s
for name, compiler, quantum, embetter, typed_arrays in [
('clang', CLANG, 1, 0, 0), ('clang', CLANG, 4, 0, 0), ('llvm_gcc', LLVM_GCC, 4, 0, 0),
('clang', CLANG, 1, 1, 1), ('clang', CLANG, 4, 1, 1), ('llvm_gcc', LLVM_GCC, 4, 1, 1),
-# ('clang', CLANG, 4, 1, 2),
-# ('llvm_gcc', LLVM_GCC, 4, 0, 2)
+ #('clang', CLANG, 4, 1, 2),
+ #('llvm_gcc', LLVM_GCC, 4, 1, 2),
]:
fullname = '%s_%d_%d%s%s' % (
name, llvm_opts, embetter, '' if quantum == 4 else '_q' + str(quantum), '' if typed_arrays in [0, 1] else '_t' + str(typed_arrays)