OLD | NEW |
1 import os | 1 import os |
2 from autotest_lib.client.bin import test, utils | 2 from autotest_lib.client.bin import test, utils |
3 | 3 |
4 | 4 |
5 class pi_tests(test.test): | 5 class pi_tests(test.test): |
6 version = 1 | 6 version = 1 |
7 | 7 |
8 def initialize(self): | 8 def initialize(self): |
9 self.job.require_gcc() | 9 self.job.require_gcc() |
10 | 10 |
11 | 11 |
12 # http://www.stardust.webpages.pl/files/patches/autotest/pi_tests.tar.bz2 | 12 # http://www.stardust.webpages.pl/files/patches/autotest/pi_tests.tar.bz2 |
13 def setup(self, tarball = 'pi_tests.tar.bz2'): | 13 def setup(self, tarball = 'pi_tests.tar.bz2'): |
14 utils.check_glibc_ver('2.5') | 14 utils.check_glibc_ver('2.5') |
15 tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir) | 15 tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir) |
16 utils.extract_tarball_to_dir(tarball, self.srcdir) | 16 utils.extract_tarball_to_dir(tarball, self.srcdir) |
17 os.chdir(self.srcdir) | 17 os.chdir(self.srcdir) |
18 utils.make() | 18 utils.system('make') |
19 | 19 |
20 | 20 |
21 def execute(self, args = '1 300'): | 21 def execute(self, args = '1 300'): |
22 os.chdir(self.srcdir) | 22 os.chdir(self.srcdir) |
23 utils.system('./start.sh ' + args) | 23 utils.system('./start.sh ' + args) |
OLD | NEW |