diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-25 10:31:11 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-25 10:31:11 -0800 |
commit | 2dbcd8d08d76134a81b232e7c964869dc6942a55 (patch) | |
tree | fc492823ccd93467a4960562dbcf07df26697120 /tests/runner.py | |
parent | 3fe4ff6b62b0e922641b7655db36ca6bd8b73aab (diff) |
fix asm jsfunc chunking
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/runner.py b/tests/runner.py index 2fcd4063..fe7b708c 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -9144,9 +9144,12 @@ f.close() if multiprocessing.cpu_count() < 2: return self.skip('need multiple cores') try: os.environ['EMCC_DEBUG'] = '1' - for linkable, chunks, js_chunks in [(0, 3, 2), (1, 7, 4)]: - print linkable, chunks, js_chunks - output, err = Popen([PYTHON, EMCC, path_from_root('tests', 'hello_libcxx.cpp'), '-O1', '-s', 'LINKABLE=%d' % linkable], stdout=PIPE, stderr=PIPE).communicate() + for asm, linkable, chunks, js_chunks in [ + (0, 0, 3, 2), (0, 1, 7, 4), + (1, 0, 3, 2), (1, 1, 7, 5) + ]: + print asm, linkable, chunks, js_chunks + output, err = Popen([PYTHON, EMCC, path_from_root('tests', 'hello_libcxx.cpp'), '-O1', '-s', 'LINKABLE=%d' % linkable, '-s', 'ASM_JS=%d' % asm], stdout=PIPE, stderr=PIPE).communicate() assert 'phase 2 working on %d chunks' %chunks in err, err assert 'splitting up js optimization into %d chunks' % js_chunks in err, err finally: |