mbligh | 9f85792 | 2008-06-05 16:19:07 +0000 | [diff] [blame] | 1 | import os |
2 | from autotest_lib.client.bin import test, autotest_utils | ||||
3 | from autotest_lib.client.common_lib import utils | ||||
mbligh | 50f4b3c | 2007-03-14 16:42:41 +0000 | [diff] [blame] | 4 | |
5 | class tsc(test.test): | ||||
mbligh | 9f0d48b | 2008-08-25 19:12:54 +0000 | [diff] [blame^] | 6 | version = 2 |
7 | preserve_srcdir = True | ||||
mbligh | 50f4b3c | 2007-03-14 16:42:41 +0000 | [diff] [blame] | 8 | |
mbligh | 9f0d48b | 2008-08-25 19:12:54 +0000 | [diff] [blame^] | 9 | def setup(self): |
jadmanski | 0afbb63 | 2008-06-06 21:10:57 +0000 | [diff] [blame] | 10 | os.chdir(self.srcdir) |
11 | utils.system('make') | ||||
mbligh | 50f4b3c | 2007-03-14 16:42:41 +0000 | [diff] [blame] | 12 | |
jadmanski | 0afbb63 | 2008-06-06 21:10:57 +0000 | [diff] [blame] | 13 | |
mbligh | c5ddfd1 | 2008-08-04 17:15:00 +0000 | [diff] [blame] | 14 | def initialize(self): |
15 | self.job.require_gcc() | ||||
16 | |||||
17 | |||||
mbligh | 9f0d48b | 2008-08-25 19:12:54 +0000 | [diff] [blame^] | 18 | def run_once(self, args = '-t 650'): |
mbligh | 6043471 | 2008-07-16 16:35:10 +0000 | [diff] [blame] | 19 | utils.system(self.srcdir + '/checktsc ' + args) |