# HG changeset patch # User Thomas Wuerthinger # Date 1357998524 -3600 # Node ID dd903cdfe7088fd85c04e2ef27a51db0cdc04d54 # Parent 11a9f50f34e467ce667ff2f08c748547e51b096c Add possibility for -ict option to SPECjvm2008 benchmark execution. diff -r 11a9f50f34e4 -r dd903cdfe708 mx/commands.py --- a/mx/commands.py Sat Jan 12 00:55:09 2013 +0100 +++ b/mx/commands.py Sat Jan 12 14:48:44 2013 +0100 @@ -944,11 +944,11 @@ benchmarks += sanitycheck.getBootstraps() #SPECjvm2008 if ('specjvm2008' in args or 'all' in args): - benchmarks += [sanitycheck.getSPECjvm2008([], True, 120, 120)] + benchmarks += [sanitycheck.getSPECjvm2008([], False, True, 120, 120)] else: specjvms = [a[12:] for a in args if a.startswith('specjvm2008:')] for specjvm in specjvms: - benchmarks += [sanitycheck.getSPECjvm2008([specjvm], True, 120, 120)] + benchmarks += [sanitycheck.getSPECjvm2008([specjvm], False, True, 120, 120)] if ('specjbb2005' in args or 'all' in args): benchmarks += [sanitycheck.getSPECjbb2005()] @@ -966,16 +966,20 @@ def specjvm2008(args): """run one or all SPECjvm2008 benchmarks - All options begining with - will be passed to the vm except for -ikv -wt and -it. + All options begining with - will be passed to the vm except for -ikv -ict -wt and -it. Other options are supposed to be benchmark names and will be passed to SPECjvm2008.""" benchArgs = [a for a in args if a[0] != '-'] vmArgs = [a for a in args if a[0] == '-'] wt = None it = None skipValid = False + skipCheck = False if '-v' in vmArgs: vmArgs.remove('-v') benchArgs.append('-v') + if '-ict' in vmArgs: + skipCheck = True + vmArgs.remove('-ict') if '-ikv' in vmArgs: skipValid = True vmArgs.remove('-ikv') @@ -996,7 +1000,7 @@ vmArgs.remove('-it') benchArgs.remove(args[itIdx+1]) vm = _vm; - sanitycheck.getSPECjvm2008(benchArgs, skipValid, wt, it).bench(vm, opts=vmArgs) + sanitycheck.getSPECjvm2008(benchArgs, skipCheck, skipValid, wt, it).bench(vm, opts=vmArgs) def hsdis(args, copyToDir=None): """download the hsdis library diff -r 11a9f50f34e4 -r dd903cdfe708 mx/sanitycheck.py --- a/mx/sanitycheck.py Sat Jan 12 00:55:09 2013 +0100 +++ b/mx/sanitycheck.py Sat Jan 12 14:48:44 2013 +0100 @@ -110,7 +110,7 @@ classpath = ['jbb.jar', 'check.jar'] return Test("SPECjbb2005", ['spec.jbb.JBBmain', '-propfile', 'SPECjbb.props'] + benchArgs, [success], [error], [matcher], vmOpts=['-Xms3g', '-XX:+UseSerialGC', '-cp', os.pathsep.join(classpath)], defaultCwd=specjbb2005) -def getSPECjvm2008(benchArgs = [], skipKitValidation=False, warmupTime=None, iterationTime=None): +def getSPECjvm2008(benchArgs = [], skipCheck=False, skipKitValidation=False, warmupTime=None, iterationTime=None): specjvm2008 = mx.get_env('SPECJVM2008') if specjvm2008 is None or not exists(join(specjvm2008, 'SPECjvm2008.jar')): @@ -129,6 +129,8 @@ opts += ['-it', str(iterationTime)] if skipKitValidation: opts += ['-ikv'] + if skipCheck: + opts += ['-ict'] return Test("SPECjvm2008", ['-jar', 'SPECjvm2008.jar'] + opts + benchArgs, [success], [error], [matcher], vmOpts=['-Xms3g', '-XX:+UseSerialGC'], defaultCwd=specjvm2008)