aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <azakai@mozilla.com>2010-11-27 13:12:21 -0800
committerAlon Zakai <azakai@mozilla.com>2010-11-27 13:12:21 -0800
commit7d1dcece2b37f5d7b75695b229f06f204766b647 (patch)
tree8842c70f10531ba22dce8def0b066a206d7bc894 /tests
parent64ad6c85cf525d80187bbcc279674a1ba2475558 (diff)
proper memory initialization with or without typed arrays; additional lua tests
Diffstat (limited to 'tests')
-rw-r--r--tests/runner.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 4749cea6..0620481e 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -120,7 +120,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, args=[], f_opt_ll_file=None, js_engines=[V8_ENGINE]):
+ def do_ll_test(self, ll_file, output, args=[], f_opt_ll_file=None, js_engines=None):
if COMPILER != LLVM_GCC: return # We use existing .ll, so which compiler is unimportant
if F_OPTS:
return # TODO: enable the lines below
@@ -1083,10 +1083,9 @@ if 'benchmark' not in sys.argv:
def test_lua(self):
self.do_ll_test(path_from_root(['tests', 'lua', 'lua.ll']),
- 'hello lua world!\n\n\n17',
- args=['-e', '''print("hello lua world!");print(17)'''],
- f_opt_ll_file=path_from_root(['tests', 'lua', 'lua.Os.ll']),
- js_engines=[SPIDERMONKEY_ENGINE])
+ 'hello lua world!\n\n\n17.00000000000\n\n\n1.00000000000\n\n\n2.00000000000\n\n\n3.00000000000\n\n\n4.00000000000',
+ args=['-e', '''print("hello lua world!");print(17);for x = 1,4 do print(x) end'''],
+ f_opt_ll_file=path_from_root(['tests', 'lua', 'lua.Os.ll']))
### Test cases in separate files