~le-chi-thu/lava-test/add-verbose-argument

« back to all changes in this revision

Viewing changes to lava_test/test_definitions/tiobench.py

  • Committer: Paul Larson
  • Date: 2011-10-20 17:54:39 UTC
  • mfrom: (100.2.7 override-test-options)
  • Revision ID: paul.larson@canonical.com-20111020175439-zccajl7m53sy6jdk
Allow overriding default args for tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
VERSION="0.3.3"
32
32
URL="http://prdownloads.sourceforge.net/tiobench/tiobench-%s.tar.gz" %(VERSION)
33
33
MD5="bf485bf820e693c79e6bd2a38702a128"
 
34
DEFAULT_OPTIONS = "--block=4096 --block=8192 --threads=2 --numruns=2"
34
35
INSTALLSTEPS = ['tar -zxvf tiobench-%s.tar.gz' % VERSION,
35
36
                'cd tiobench-%s && make' % VERSION]
36
37
RUNSTEPS = ["cd tiobench-%s && "\
37
 
            "./tiobench.pl --block=4096 --block=8192 --threads=2 "\
38
 
            "--numruns=2" % (VERSION)]
 
38
            "./tiobench.pl $(OPTIONS)" % (VERSION)]
39
39
 
40
40
 
41
41
class TIObenchTestParser(TestParser):
70
70
 
71
71
tiobench_inst = TestInstaller(INSTALLSTEPS, url=URL,
72
72
    md5=MD5)
73
 
tiobench_run = TestRunner(RUNSTEPS)
 
73
tiobench_run = TestRunner(RUNSTEPS,default_options=DEFAULT_OPTIONS)
74
74
parse = TIObenchTestParser(appendall={'units':'MB/s', 'result':'pass'})
75
75
testobj = Test(test_id="tiobench", test_version=VERSION,
76
76
    installer=tiobench_inst, runner=tiobench_run, parser=parse)