OLD | NEW |
1 # POSIX test suite wrapper class. More information about the suite can be found | 1 # POSIX test suite wrapper class. More information about the suite can be found |
2 # at http://posixtest.sourceforge.net/ | 2 # at http://posixtest.sourceforge.net/ |
3 import os | 3 import os |
4 from autotest_lib.client.bin import test, utils | 4 from autotest_lib.client.bin import test, utils |
5 | 5 |
6 | 6 |
7 __author__ = '''mohd.omar@in.ibm.com (Mohammed Omar)''' | 7 __author__ = '''mohd.omar@in.ibm.com (Mohammed Omar)''' |
8 | 8 |
9 class posixtest(test.test): | 9 class posixtest(test.test): |
10 version = 1 | 10 version = 1 |
11 | 11 |
12 def initialize(self): | 12 def initialize(self): |
13 self.job.require_gcc() | 13 self.job.require_gcc() |
14 | 14 |
15 | 15 |
16 # http://ufpr.dl.sourceforge.net/sourceforge/posixtest/posixtestsuite-1.5.2.
tar.gz | 16 # http://ufpr.dl.sourceforge.net/sourceforge/posixtest/posixtestsuite-1.5.2.
tar.gz |
17 def setup(self, tarball = 'posixtestsuite-1.5.2.tar.gz'): | 17 def setup(self, tarball = 'posixtestsuite-1.5.2.tar.gz'): |
18 self.posix_tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir) | 18 self.posix_tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir) |
19 utils.extract_tarball_to_dir(self.posix_tarball, self.srcdir) | 19 utils.extract_tarball_to_dir(self.posix_tarball, self.srcdir) |
20 os.chdir(self.srcdir) | 20 os.chdir(self.srcdir) |
21 # Applying a small patch that introduces some linux specific | 21 # Applying a small patch that introduces some linux specific |
22 # linking options | 22 # linking options |
23 utils.system('patch -p1 < ../posix-linux.patch') | 23 utils.system('patch -p1 < ../posix-linux.patch') |
24 utils.system('make') | 24 utils.make() |
25 | 25 |
26 | 26 |
27 def execute(self): | 27 def execute(self): |
28 os.chdir(self.srcdir) | 28 os.chdir(self.srcdir) |
29 utils.system('./run_tests THR') | 29 utils.system('./run_tests THR') |
OLD | NEW |