aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-09-04 12:06:59 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-09-04 12:06:59 -0700
commit07ae29c2cdedac32b8015ddc8103ad6dbf9d1195 (patch)
tree6eabb0293b3d8dccea8ad7cf768fd2418677b754
parent391fb94d3f3ceb218bb2a7920ad40ac6e7f70529 (diff)
some updates for q1
-rw-r--r--tests/cases/gepoverflow_q1.txt1
-rw-r--r--tests/cases/storestruct_q1.txt3
-rw-r--r--tests/runner.py15
3 files changed, 18 insertions, 1 deletions
diff --git a/tests/cases/gepoverflow_q1.txt b/tests/cases/gepoverflow_q1.txt
new file mode 100644
index 00000000..e32e76dd
--- /dev/null
+++ b/tests/cases/gepoverflow_q1.txt
@@ -0,0 +1 @@
+skip
diff --git a/tests/cases/storestruct_q1.txt b/tests/cases/storestruct_q1.txt
new file mode 100644
index 00000000..5e18f72c
--- /dev/null
+++ b/tests/cases/storestruct_q1.txt
@@ -0,0 +1,3 @@
+*5,22*
+*7,96*
+*53,3*
diff --git a/tests/runner.py b/tests/runner.py
index 381bea07..4a33b579 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -2971,6 +2971,9 @@ if 'benchmark' not in str(sys.argv):
# print opt, "FAIL"
def test_lua(self):
+ global QUANTUM_SIZE
+ if QUANTUM_SIZE == 1: return self.skip('TODO: make this work')
+
# Overflows in luaS_newlstr hash loop
global SAFE_HEAP; SAFE_HEAP = 0 # Has various warnings, with copied HEAP_HISTORY values (fixed if we copy 'null' as the type)
global CORRECT_OVERFLOWS; CORRECT_OVERFLOWS = 1
@@ -3270,6 +3273,9 @@ if 'benchmark' not in str(sys.argv):
output_nicerizer=image_compare)# build_ll_hook=self.do_autodebug)
def test_python(self):
+ global QUANTUM_SIZE
+ if QUANTUM_SIZE == 1: return self.skip('TODO: make this work')
+
# Overflows in string_hash
global CORRECT_OVERFLOWS; CORRECT_OVERFLOWS = 1
global CHECK_OVERFLOWS; CHECK_OVERFLOWS = 0
@@ -3287,17 +3293,24 @@ if 'benchmark' not in str(sys.argv):
# They are only valid enough for us to read for test purposes, not for llvm-as
# to process.
def test_cases(self):
+ global QUANTUM_SIZE
global CHECK_OVERFLOWS; CHECK_OVERFLOWS = 0
if LLVM_OPTS: return self.skip("Our code is not exactly 'normal' llvm assembly")
+
for name in glob.glob(path_from_root('tests', 'cases', '*.ll')):
shortname = name.replace('.ll', '')
print "Testing case '%s'..." % shortname
output_file = path_from_root('tests', 'cases', shortname + '.txt')
+ if QUANTUM_SIZE == 1:
+ q1_output_file = path_from_root('tests', 'cases', shortname + '_q1.txt')
+ if os.path.exists(q1_output_file):
+ output_file = q1_output_file
if os.path.exists(output_file):
output = open(output_file, 'r').read()
else:
output = 'hello, world!'
- self.do_ll_test(path_from_root('tests', 'cases', name), output)
+ if output.rstrip() != 'skip':
+ self.do_ll_test(path_from_root('tests', 'cases', name), output)
# Autodebug the code
def do_autodebug(self, filename):