aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-04-10 15:53:50 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-04-10 15:53:50 -0700
commitf84537c333524d0841923eaec66604584bf77326 (patch)
tree6a43fab885a397a80de2cd8117b6ebafdb00cdf5 /tests/runner.py
parenta4a20535e79f10c553b685b188fcfd6af12fac07 (diff)
more work towards box2d benchmark
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-xtests/runner.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 03299dd0..74e78f61 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -12376,6 +12376,17 @@ ok.
''',
force_c=True, emcc_args=emcc_args, native_args=native_args)
+ def zzztest_yyy_box2d(self): # Called thus so it runs late in the alphabetical cycle... it is long
+ src = open(path_from_root('tests', 'box2d', 'Benchmark.cpp'), 'r').read()
+
+ js_lib = self.get_library('box2d', [os.path.join('box2d.o')], configure=None)
+ js_lib = self.get_library('box2d_native', [os.path.join('box2d.o')], configure=None, native=True)
+
+ emcc_args = js_lib + ['-I' + path_from_root('tests', 'box2d')]
+ native_args = native_lib + ['-I' + path_from_root('tests', 'box2d')]
+
+ self.do_benchmark('box2d', src, [], '\nok.\n', emcc_args=emcc_args, native_args=native_args)
+
def test_zzz_bullet(self): # Called thus so it runs late in the alphabetical cycle... it is long
src = open(path_from_root('tests', 'bullet', 'Demos', 'Benchmarks', 'BenchmarkDemo.cpp'), 'r').read() + \
open(path_from_root('tests', 'bullet', 'Demos', 'Benchmarks', 'main.cpp'), 'r').read()