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

« back to all changes in this revision

Viewing changes to lava_test/test_definitions/ltp.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:
35
35
make all
36
36
SKIP_IDCHECK=1 make install
37
37
"""
 
38
DEFAULT_OPTIONS = "-f syscalls -p -q"
38
39
 
39
40
INSTALLSTEPS = ["echo '%s' > installltp.sh" % SCRIPT,
40
41
                'chmod +x installltp.sh',
41
42
                './installltp.sh']
42
 
RUNSTEPS = ['cd build && sudo ./runltp -f syscalls -p -q']
 
43
RUNSTEPS = ['cd build && sudo ./runltp $(OPTIONS)']
43
44
PATTERN = "^(?P<test_case_id>\S+)    (?P<subid>\d+)  (?P<result>\w+)  :  (?P<message>.+)"
44
45
FIXUPS = {"TBROK":"fail",
45
46
          "TCONF":"skip",
74
75
 
75
76
ltpinst = TestInstaller(INSTALLSTEPS, deps=DEPS, url=URL,
76
77
                                           md5=MD5)
77
 
ltprun = TestRunner(RUNSTEPS)
 
78
ltprun = TestRunner(RUNSTEPS,default_options = DEFAULT_OPTIONS)
78
79
ltpparser = LTPParser(PATTERN, fixupdict = FIXUPS)
79
80
testobj = Test(test_id="ltp", test_version=VERSION,
80
81
                                  installer=ltpinst, runner=ltprun,