diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-02-19 15:57:13 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-02-19 15:57:13 -0800 |
commit | 6dfcace48a061dd93643a4da4647591d73bdcc31 (patch) | |
tree | 0ac6c705009930286426bd30bfefef19790c4be1 /tests | |
parent | d48656fbdf3273805f860307de2e0cdfae0d6d6c (diff) |
hardcode arguments in benchmark js files, for easier debugging on them
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runner.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index 9e25d2f3..a2d75cfe 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -10918,6 +10918,10 @@ elif 'benchmark' in str(sys.argv): '-o', final_filename] + shared_args + emcc_args, stdout=PIPE, stderr=self.stderr_redirect).communicate() assert os.path.exists(final_filename), 'Failed to compile file: ' + output[0] + # Hardcode in the arguments, so js is portable without manual commandlinearguments + js = open(final_filename).read() + open(final_filename, 'w').write(js.replace('var ret = run();', 'var ret = run(%s);' % str(args))) + # Run JS global total_times, tests_done times = [] |