aboutsummaryrefslogtreecommitdiff
path: root/bench.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-02-02 14:45:21 +0100
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-02-02 14:45:21 +0100
commit8c12b0494aa241bb6ddf3779a99d2f5d6ededf73 (patch)
treeb7bcaf69bfc9c8d7933bcaaedc66a907a04c9ca6 /bench.py
parent130765de719a3ddc475284e13749d09ff371a8e1 (diff)
downloadallocbench-8c12b0494aa241bb6ddf3779a99d2f5d6ededf73.tar.gz
allocbench-8c12b0494aa241bb6ddf3779a99d2f5d6ededf73.zip
rework build system #2: call make before executing any benchmark
Make scans the project directory for Makefiles and executes them. The targets should be build by the new targets/Makefile. All included Makefiles are now "quiet" by default.
Diffstat (limited to 'bench.py')
-rwxr-xr-xbench.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/bench.py b/bench.py
index 2adb0cc..a4283d9 100755
--- a/bench.py
+++ b/bench.py
@@ -4,6 +4,7 @@ import argparse
import datetime
import importlib
import os
+import subprocess
import src.facter
import src.targets
@@ -26,10 +27,18 @@ parser.add_argument("--license", help="print license info and exit", action='sto
def main():
args = parser.parse_args()
if args.license:
- print("Copyright (C) 2018-1029 Florian Fischer")
+ print("Copyright (C) 2018-2019 Florian Fischer")
print("License GPLv3: GNU GPL version 3 <http://gnu.org/licenses/gpl.html>")
return
+ # Prepare allocbench
+ print("Building allocbench")
+ make_cmd = ["make"]
+ if not args.verbose:
+ make_cmd.append("-s")
+
+ subprocess.run(make_cmd)
+
if args.verbose:
print(args)