aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-02-12 18:07:11 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-02-12 18:07:48 -0800
commit77bb866d10849fe0587cee1f62be339fc3ab09d8 (patch)
treeb7750f10495f358890ce4cd742c5b90db8b42288
parenta5718a10da93ea336c52574ccb1e6df1ec490086 (diff)
test python with lto for more coverage
-rw-r--r--tests/test_core.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index 66e7fb3f..cc887f19 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -5095,9 +5095,12 @@ def process(filename):
else:
bitcode = path_from_root('tests', 'python', 'python.small.bc')
- self.do_ll_run(bitcode,
- 'hello python world!\n[0, 2, 4, 6]\n5\n22\n5.470000',
- args=['-S', '-c' '''print "hello python world!"; print [x*2 for x in range(4)]; t=2; print 10-3-t; print (lambda x: x*2)(11); print '%f' % 5.47'''])
+ for lto in [0, 1]:
+ if lto == 1: self.emcc_args += ['--llvm-lto', '1']
+ print self.emcc_args
+ self.do_ll_run(bitcode,
+ 'hello python world!\n[0, 2, 4, 6]\n5\n22\n5.470000',
+ args=['-S', '-c' '''print "hello python world!"; print [x*2 for x in range(4)]; t=2; print 10-3-t; print (lambda x: x*2)(11); print '%f' % 5.47'''])
def test_lifetime(self):
if self.emcc_args is None: return self.skip('test relies on emcc opts')