aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-02-23 15:50:22 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-02-23 15:50:22 -0800
commitc2692a1acba58bb6d47e148ee26328094f8f2c5c (patch)
tree55ceb2a21401021cccc400127a1db798ba1108cd /tests/runner.py
parent3d4bce8844b3bea7595858eee6221c3ad40fb19b (diff)
fix fuzzbug regarding signed 64-bit extension
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-xtests/runner.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 0822fa27..8410f888 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -7197,6 +7197,16 @@ def process(filename):
finally:
del os.environ['EMCC_LEAVE_INPUTS_RAW']
+ def test_fuzz(self):
+ if Settings.USE_TYPED_ARRAYS != 2: return self.skip('needs ta2')
+
+ Building.COMPILER_TEST_OPTS += ['-I' + path_from_root('tests', 'fuzz')]
+
+ for name in glob.glob(path_from_root('tests', 'fuzz', '*.c')):
+ print name
+ self.do_run(open(path_from_root('tests', 'fuzz', name)).read(),
+ open(path_from_root('tests', 'fuzz', name + '.txt')).read(), force_c=True)
+
# Autodebug the code
def do_autodebug(self, filename):
output = Popen([PYTHON, AUTODEBUGGER, filename+'.o.ll', filename+'.o.ll.ll'], stdout=PIPE, stderr=self.stderr_redirect).communicate()[0]