Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(532)

Side by Side Diff: client/tests/posixtest/posixtest.py

Issue 3554003: Merge remote branch 'cros/upstream' into tempbranch3 (Closed) Base URL: http://git.chromium.org/git/autotest.git
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « client/tests/pi_tests/pi_tests.py ('k') | client/tests/qemu_iotests/qemu_iotests.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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')
OLDNEW
« no previous file with comments | « client/tests/pi_tests/pi_tests.py ('k') | client/tests/qemu_iotests/qemu_iotests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698