aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <azakai@mozilla.com>2010-11-20 18:38:44 -0800
committerAlon Zakai <azakai@mozilla.com>2010-11-20 18:38:44 -0800
commitd61473b75862c62293318ced24a638d322ff2bd9 (patch)
treeffc9a68267a5543a280568f8842bc2f4eb696c67 /tests
parent6c91ad62cdc7026bfe89539770da2c1200359d35 (diff)
misc minor fixes and additions
Diffstat (limited to 'tests')
-rw-r--r--tests/runner.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index c7a82fca..871c76e4 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -122,7 +122,7 @@ if 'benchmark' not in sys.argv:
#shutil.rmtree(dirname) # TODO: leave no trace in memory. But for now nice for debugging
# No building - just process an existing .ll file
- def do_ll_test(self, ll_file, output):
+ def do_ll_test(self, ll_file, output, args=[]):
if COMPILER != LLVM_GCC: return # We use existing .ll, so which compiler is unimportant
if F_OPTS: return # We use existing .ll, so frontend stuff is unimportant
@@ -131,6 +131,7 @@ if 'benchmark' not in sys.argv:
self.do_emscripten(filename)
self.do_test(None,
output,
+ args,
no_build=True,
js_engines=[V8_ENGINE]) # mozilla bug XXX
@@ -1050,6 +1051,9 @@ if 'benchmark' not in sys.argv:
def test_bullet(self):
self.do_ll_test(path_from_root(['tests', 'bullet', 'bulletTest.ll']), open(path_from_root(['tests', 'bullet', 'output.txt']), 'r').read())
+ #def test_lua(self):
+ # self.do_ll_test(path_from_root(['tests', 'lua', 'lua.ll']), 'hello world!', args=['-e', '''"print('hello world!')"'''])
+
### Test cases in separate files
def test_cases(self):