Commit d63102bf authored by Andreas Zwinkau's avatar Andreas Zwinkau
Browse files

Adding --build-only parameter

parent e7619528
......@@ -35,6 +35,8 @@ SPEC_SUITE = identify_suite()
parser = optparse.OptionParser(version=SCRIPT_VERSION)
parser.add_option("--config-only", action="store_true", default=False,
help="Just generate config file, but do not build or run")
parser.add_option("--build-only", action="store_true", default=False,
help="Just generate config file and build benchmark programs, but do not run")
parser.add_option("-i", "--iterations", metavar="ITR", default=3,
help="Evaluate ITR iterations per program, default=3")
......@@ -219,6 +221,10 @@ def generate_spec_config(options):
contents = [_CONFIG_HEAD]
cpuinfo = get_cpu_info()
meminfo = get_mem_info()
if options.build_only:
contents.append("action = build")
else:
contents.append("action = validate") # includes run
contents.append("iterations = %d" % options.iterations)
contents.append("test_date = %s" % datetime.now())
contents.append("")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment