aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-05-18 15:43:17 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-05-18 15:43:17 -0700
commitc636e58764d2e517178dda90cc2350182d5e8375 (patch)
treee7071aa9149e485e46d4ac2f37f0ba2a31553f15 /tests
parentc79906e7f6f6f2f97acf7466c219e5da8f208925 (diff)
make test runner library building more robust and enable library reloading in benchmark suite
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runner.py4
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):