diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-05-18 15:43:17 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-05-18 15:43:17 -0700 |
commit | c636e58764d2e517178dda90cc2350182d5e8375 (patch) | |
tree | e7071aa9149e485e46d4ac2f37f0ba2a31553f15 /tests | |
parent | c79906e7f6f6f2f97acf7466c219e5da8f208925 (diff) |
make test runner library building more robust and enable library reloading in benchmark suite
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runner.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/runner.py b/tests/runner.py index ee014693..ea9de8c7 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -366,7 +366,7 @@ process(sys.argv[1]) print >> sys.stderr, '<load %s from cache> ' % cache_name, generated_libs = [] for basename, contents in self.library_cache[cache_name]: - bc_file = os.path.join(build_dir, basename) + bc_file = os.path.join(build_dir, cache_name + '_' + basename) f = open(bc_file, 'wb') f.write(contents) f.close() @@ -12688,7 +12688,7 @@ elif 'benchmark' in str(sys.argv): if not native_exec: self.build_native(filename, shared_args + native_args) else: - shutil.move(native_exec, filename + '.native') + shutil.copyfile(native_exec, filename + '.native') global total_native_times native_times = [] for i in range(reps): |