diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-02-01 16:35:20 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-02-01 16:35:20 +0100 |
| commit | 130765de719a3ddc475284e13749d09ff371a8e1 (patch) | |
| tree | c45ea8d47e53481022d641336ec2abd5cb588111 /src/benchmark.py | |
| parent | 8221b8fb0e9ee491590932cd228f17b48155c0f7 (diff) | |
| download | allocbench-130765de719a3ddc475284e13749d09ff371a8e1.tar.gz allocbench-130765de719a3ddc475284e13749d09ff371a8e1.zip | |
rework build system #1
each benchmark has its own Makefile which must put it's binaries into
OBJDIR which is added to the PATH during execution.
Diffstat (limited to 'src/benchmark.py')
| -rw-r--r-- | src/benchmark.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/benchmark.py b/src/benchmark.py index 4de05e3..e4dbef2 100644 --- a/src/benchmark.py +++ b/src/benchmark.py @@ -81,6 +81,7 @@ class Benchmark (object): self.results[target] = d def prepare(self, verbose=False): + os.environ["PATH"] += ":build/" + self.name def is_exe(fpath): return os.path.isfile(fpath) and os.access(fpath, os.X_OK) @@ -256,6 +257,7 @@ class Benchmark (object): if self.posttarget_hook((tname, t), run, verbose): return False print() + os.environ["PATH"] = os.environ["PATH"].replace(":build/"+self.name, "") return True def plot_single_arg(self, yval, ylabel="'y-label'", xlabel="'x-label'", autoticks=True, |
