diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-25 10:22:20 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-25 10:22:20 -0800 |
commit | 3fe4ff6b62b0e922641b7655db36ca6bd8b73aab (patch) | |
tree | 41d82df50201814c42f71395467634eb34ca01c5 /tests | |
parent | bcc6c3fa9e54f2897246bde4cea947fe20432997 (diff) |
improve chunking test
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runner.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/runner.py b/tests/runner.py index 58a79a9c..2fcd4063 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -9144,9 +9144,11 @@ f.close() if multiprocessing.cpu_count() < 2: return self.skip('need multiple cores') try: os.environ['EMCC_DEBUG'] = '1' - output, err = Popen([PYTHON, EMCC, path_from_root('tests', 'hello_libcxx.cpp'), '-O1'], stdout=PIPE, stderr=PIPE).communicate() - assert 'phase 2 working on 3 chunks' in err, err - assert 'splitting up js optimization into 2 chunks' in err, err + 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() + 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: del os.environ['EMCC_DEBUG'] |