• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import os
2from autotest_lib.client.bin import test, utils
3
4class real_time_tests(test.test):
5    version = 1
6    preserve_srcdir = True
7
8# http://git.kernel.org/?p=linux/kernel/git/galak/ltp.git;a=tree;f=testcases/realtime
9    def setup(self, tarball = 'realtime-latest-git-snapshot.tar.bz2'):
10        utils.check_glibc_ver('2.5')
11        self.tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir)
12        utils.extract_tarball_to_dir(self.tarball, self.srcdir)
13        os.chdir(self.srcdir)
14        utils.system('patch -p1 < ../path-fix.patch')
15
16    def execute(self, args = '-l 10'):
17        os.chdir(self.srcdir)
18        utils.system('./run.sh -t func ' + args)
19