| 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 scrashme(test.test): | 5 class scrashme(test.test): |
| 6 """ | 6 """ |
| 7 Runs the scrashme syscalls test suite. This test mode will exercise | 7 Runs the scrashme syscalls test suite. This test mode will exercise |
| 8 kernel syscalls randomically, or in a sequential fashion. | 8 kernel syscalls randomically, or in a sequential fashion. |
| 9 | 9 |
| 10 @note: As of the current version shipped, scrashme does support the | 10 @note: As of the current version shipped, scrashme does support the |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 version = 2 | 36 version = 2 |
| 37 | 37 |
| 38 def initialize(self): | 38 def initialize(self): |
| 39 self.job.require_gcc() | 39 self.job.require_gcc() |
| 40 | 40 |
| 41 | 41 |
| 42 def setup(self, tarball = 'scrashme-git-snapshot-03-18-2010.tar.bz2'): | 42 def setup(self, tarball = 'scrashme-git-snapshot-03-18-2010.tar.bz2'): |
| 43 tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir) | 43 tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir) |
| 44 utils.extract_tarball_to_dir(tarball, self.srcdir) | 44 utils.extract_tarball_to_dir(tarball, self.srcdir) |
| 45 os.chdir(self.srcdir) | 45 os.chdir(self.srcdir) |
| 46 utils.system('make') | 46 utils.make() |
| 47 | 47 |
| 48 | 48 |
| 49 def run_once(self, args_list=''): | 49 def run_once(self, args_list=''): |
| 50 if args_list: | 50 if args_list: |
| 51 args = args_list | 51 args = args_list |
| 52 else: | 52 else: |
| 53 args = '--mode rotate' | 53 args = '--mode rotate' |
| 54 | 54 |
| 55 scrashme_path = os.path.join(self.srcdir, 'scrashme') | 55 scrashme_path = os.path.join(self.srcdir, 'scrashme') |
| 56 utils.system("%s %s" % (scrashme_path, args)) | 56 utils.system("%s %s" % (scrashme_path, args)) |
| OLD | NEW |