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

Extract spec suite id

parent be119822
......@@ -20,6 +20,17 @@ for subdir in "benchspec config bin result".split():
for filename in "shrc README LICENSE MANIFEST".split():
assert os.path.isfile(filename), "file missing: "+filename
def identify_suite():
"""Which SPEC suite are we in?"""
for line in file("README"):
possibilities = ["SPEC CPU2000", "SPEC CPU2006"]
for p in possibilities:
if p in line:
return p
print "Unknown SPEC suite (if at all)"
exit(-1)
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")
......
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