comparison mx/sanitycheck.py @ 5877:0e54d9bb922d

Add SPECjbb2005 to the benchmarks
author Gilles Duboscq <duboscq@ssw.jku.at>
date Thu, 26 Jul 2012 17:08:54 +0200
parents beb13d0326ba
children 89ed4e8c45c4
comparison
equal deleted inserted replaced
5876:c21886d4e125 5877:0e54d9bb922d
94 } 94 }
95 95
96 class SanityCheckLevel: 96 class SanityCheckLevel:
97 Fast, Gate, Normal, Extensive, Benchmark = range(5) 97 Fast, Gate, Normal, Extensive, Benchmark = range(5)
98 98
99 def getSPECjbb2005(benchArgs = []):
100
101 specjbb2005 = mx.get_env('SPECJBB2005')
102 if specjbb2005 is None or not exists(join(specjbb2005, 'jbb.jar')):
103 mx.abort('Please set the SPECJBB2005 environment variable to a SPECjbb2005 directory')
104
105 score = re.compile(r"^Valid run, Score is (?P<score>[0-9]+)$")
106 error = re.compile(r"VALIDATION ERROR")
107 success = re.compile(r"^Valid run, Score is [0-9]+$")
108 matcher = Matcher(score, {'const:group' : "const:SPECjbb2005", 'const:name' : 'const:score', 'const:score' : 'score'})
109 classpath = ['jbb.jar', 'check.jar']
110 return Test("SPECjbb2005", ['spec.jbb.JBBmain', '-propfile', 'SPECjbb.props'] + benchArgs, [success], [error], [matcher], vmOpts=['-Xms3g', '-XX:+UseSerialGC', '-cp', os.pathsep.join(classpath)], defaultCwd=specjbb2005)
111
99 def getSPECjvm2008(benchArgs = [], skipKitValidation=False, warmupTime=None, iterationTime=None): 112 def getSPECjvm2008(benchArgs = [], skipKitValidation=False, warmupTime=None, iterationTime=None):
100 113
101 specjvm2008 = mx.get_env('SPECJVM2008') 114 specjvm2008 = mx.get_env('SPECJVM2008')
102 if specjvm2008 is None or not exists(join(specjvm2008, 'SPECjvm2008.jar')): 115 if specjvm2008 is None or not exists(join(specjvm2008, 'SPECjvm2008.jar')):
103 mx.abort('Please set the SPECJVM2008 environment variable to a SPECjvm2008 directory') 116 mx.abort('Please set the SPECJVM2008 environment variable to a SPECjvm2008 directory')