# HG changeset patch # User Gilles Duboscq # Date 1325790945 -3600 # Node ID b780ecb920c955959f01491d693131c346b37927 # Parent 8074251d1e05d552b5f8ab87cde26265672bf680 Add SPECjvm2008 to benchmarks, use dacapos defined in sanitycheck for the gate diff -r 8074251d1e05 -r b780ecb920c9 mx/commands.py --- a/mx/commands.py Thu Jan 05 17:25:28 2012 +0100 +++ b/mx/commands.py Thu Jan 05 20:15:45 2012 +0100 @@ -179,7 +179,6 @@ vmOpts = [arg for arg in args if not arg.startswith('@')] failed = [] - print str(numTests) for (test, n) in numTests.items(): if not sanitycheck.getDacapo(test, n, dacapoArgs).test('-graal', opts=vmOpts): failed.append(test) @@ -566,11 +565,9 @@ # 8. Run selected DaCapo benchmarks mx.log(time.strftime('%d %b %Y %H:%M:%S - Running DaCapo benchmarks...')) - dacapo(['eclipse']) - #dacapo(['tradesoap']) - dacapo(['batik']) - dacapo(['avrora']) - dacapo(['fop']) + for test in sanitycheck.getDacapos(level=sanitycheck.SanityCheckLevel.Gate): + if not test.test('-graal'): + mx.abort(test.group + ' ' + test.name + ' Failed') duration = datetime.timedelta(seconds=time.time() - start) mx.log(time.strftime('%d %b %Y %H:%M:%S - Gate done (duration - ' + str(duration) + ')')) @@ -581,6 +578,8 @@ benchmarks = sanitycheck.getDacapos(level=sanitycheck.SanityCheckLevel.Benchmark) #Bootstrap benchmarks += sanitycheck.getBootstraps() + #SPECjvm2008 + benchmarks += [sanitycheck.getSPECjvm2008(True, 60, 120)] for test in benchmarks: if not results.has_key(test.group): diff -r 8074251d1e05 -r b780ecb920c9 mx/sanitycheck.py --- a/mx/sanitycheck.py Thu Jan 05 17:25:28 2012 +0100 +++ b/mx/sanitycheck.py Thu Jan 05 20:15:45 2012 +0100 @@ -64,9 +64,9 @@ opts = [] if warmupTime is not None: - opts +0 ['-wt', str(warmupTime)] + opts += ['-wt', str(warmupTime)] if iterationTime is not None: - opts +0 ['-it', str(iterationTime)] + opts += ['-it', str(iterationTime)] if skipKitValidation: opts += ['-ikv'] @@ -101,8 +101,8 @@ time = re.compile(r"Bootstrapping Graal............... in (?P