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 fsfuzzer(test.test): | 5 class fsfuzzer(test.test): |
6 version = 1 | 6 version = 1 |
7 | 7 |
8 def initialize(self): | 8 def initialize(self): |
9 self.job.require_gcc() | 9 self.job.require_gcc() |
10 | 10 |
11 | 11 |
12 # http://people.redhat.com/sgrubb/files/fsfuzzer-0.6.tar.gz | 12 # http://people.redhat.com/sgrubb/files/fsfuzzer-0.6.tar.gz |
13 def setup(self, tarball = 'fsfuzzer-0.6.tar.gz'): | 13 def setup(self, tarball = 'fsfuzzer-0.6.tar.gz'): |
14 tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir) | 14 tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir) |
15 utils.extract_tarball_to_dir(tarball, self.srcdir) | 15 utils.extract_tarball_to_dir(tarball, self.srcdir) |
16 os.chdir(self.srcdir) | 16 os.chdir(self.srcdir) |
17 | 17 |
18 utils.system('make') | 18 utils.make() |
19 | 19 |
20 | 20 |
21 def run_once(self, fstype = 'iso9660'): | 21 def run_once(self, fstype = 'iso9660'): |
22 args = fstype + ' 1' | 22 args = fstype + ' 1' |
23 utils.system(self.srcdir + '/run_test ' + args) | 23 utils.system(self.srcdir + '/run_test ' + args) |
OLD | NEW |