diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-06-24 16:59:39 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-07-03 15:31:03 -0700 |
commit | 754ba991083952041418df4da54d01d85f9d73f1 (patch) | |
tree | 932d50cc313848d21af8897db3e7b4b12907bb9a /tests/runner.py | |
parent | 0af083b4a07ea912f7d6e1b558fde0e38086da06 (diff) |
refactor and calculate new imports
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/runner.py b/tests/runner.py index e2545dee..d9f14ed9 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -10614,17 +10614,17 @@ f.close() return 0; } ''') - open(os.path.join(self.get_dir(), 'lib.cpp'), 'w').write(''' + open(os.path.join(self.get_dir(), 'side.cpp'), 'w').write(''' #include <stdio.h> void printey() { - printf("hello from lib\\n"); + printf("hello from side\\n"); } ''') - Popen([PYTHON, EMCC, os.path.join(self.get_dir(), 'lib.cpp'), '-o', 'lib.js', '-s', 'SIDE_MODULE=1', '-O2']).communicate() + Popen([PYTHON, EMCC, os.path.join(self.get_dir(), 'side.cpp'), '-o', 'side.js', '-s', 'SIDE_MODULE=1', '-O2']).communicate() # TODO: test with and without DISABLE_GL_EMULATION, check that file sizes change Popen([PYTHON, EMCC, os.path.join(self.get_dir(), 'main.cpp'), '-o', 'main.js', '-s', 'MAIN_MODULE=1', '-O2', '-s', 'DISABLE_GL_EMULATION=1']).communicate() - Popen([PYTHON, EMLINK, 'main.js', 'lib.js', 'together.js']) - self.assertContained('hello from lib', run_js('together.js')) + Popen([PYTHON, EMLINK, 'main.js', 'side.js', 'together.js']) + self.assertContained('hello from side', run_js('together.js')) def test_symlink(self): if os.name == 'nt': |