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