1import os 2from autotest_lib.client.bin import test 3from autotest_lib.client.common_lib import utils 4 5 6class cyclictest(test.test): 7 version = 2 8 preserve_srcdir = True 9 10 # git://git.kernel.org/pub/scm/linux/kernel/git/tglx/rt-tests.git 11 def initialize(self): 12 self.job.require_gcc() 13 14 15 def setup(self): 16 os.chdir(self.srcdir) 17 utils.make() 18 19 20 def execute(self, args = '-t 10 -l 100000'): 21 utils.system(self.srcdir + '/cyclictest ' + args) 22