changeset 11372:76c45fb64191

added support to the specjvm2008 command for specifying a benchmark group
author Doug Simon <doug.simon@oracle.com>
date Tue, 20 Aug 2013 13:22:06 +0200
parents 74414b248381
children 6675167d52b6
files mx/commands.py
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mx/commands.py	Tue Aug 20 12:09:45 2013 +0200
+++ b/mx/commands.py	Tue Aug 20 13:22:06 2013 +0200
@@ -1185,7 +1185,16 @@
     def launcher(bm, harnessArgs, extraVmOpts):
         return sanitycheck.getSPECjvm2008(harnessArgs + [bm]).bench(_get_vm(), extraVmOpts=extraVmOpts)
     
-    _run_benchmark(args, sanitycheck.specjvm2008Names, launcher)
+    availableBenchmarks = set(sanitycheck.specjvm2008Names)
+    for name in sanitycheck.specjvm2008Names:
+        parts = name.rsplit('.', 1)
+        if len(parts) > 1:
+            assert len(parts) == 2
+            group = parts[0]
+            print group
+            availableBenchmarks.add(group)
+
+    _run_benchmark(args, sorted(availableBenchmarks), launcher)
     
 def specjbb2013(args):
     """runs the composite SPECjbb2013 benchmark"""