You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
809 B
31 lines
809 B
import os
|
|
from autotest_lib.client.bin import test, utils
|
|
|
|
|
|
# tests is a simple array of "cmd" "arguments"
|
|
tests = [["rmaptest", "-h -i100 -n100 -s100 -t100 -V10 -v file1.dat"],
|
|
["rmaptest", "-l -i100 -n100 -s100 -t100 -V10 -v file2.dat"],
|
|
["rmaptest", "-r -i100 -n100 -s100 -t100 -V10 -v file3.dat"],
|
|
]
|
|
name = 0
|
|
arglist = 1
|
|
|
|
class rmaptest(test.test):
|
|
version = 1
|
|
preserve_srcdir = True
|
|
|
|
def initialize(self):
|
|
self.job.require_gcc()
|
|
|
|
|
|
def setup(self):
|
|
os.chdir(self.srcdir)
|
|
utils.system(utils.get_cc() + ' -Wall -o rmaptest rmap-test.c')
|
|
|
|
|
|
def execute(self, args = ''):
|
|
os.chdir(self.tmpdir)
|
|
for test in tests:
|
|
cmd = '%s/%s %s %s' % (self.srcdir, test[name], args, test[arglist])
|
|
utils.system(cmd)
|