From cdfd77af6e6ca5f4352d42573a33d51c09eba5b3 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 29 Apr 2019 17:12:41 +0200 Subject: move list of available benchmarks to src.globalvars.benchmarks fix analyse --- src/globalvars.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/globalvars.py') diff --git a/src/globalvars.py b/src/globalvars.py index c897786..7bf3de7 100644 --- a/src/globalvars.py +++ b/src/globalvars.py @@ -1,3 +1,4 @@ +import inspect import os @@ -13,8 +14,19 @@ allocators = {} """File were the allocators definitions are loaded from""" allocators_file = None +"""Root directory of allocbench""" +allocbenchdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) +allocbenchdir = os.path.dirname(allocbenchdir) + """Path of the build directory""" -builddir = os.path.join(os.getcwd(), "build") +builddir = "build" """Directory were the benchmark results are stored""" resdir = None + +"""Source directory for all benchmarks""" +benchsrcdir = "src/benchmarks" + +"""List of available benchmarks""" +benchmarks = [e[:-3] for e in os.listdir(os.path.join(allocbenchdir, benchsrcdir)) + if e[-3:] == ".py" and e != "__init__.py"] -- cgit v1.2.3