blob: f996b2c530698c81c67f6e43b49aa673d3e4452d [file] [log] [blame]
mblighba8be6b2006-10-23 21:59:42 +00001import test
2from autotest_utils import *
3
4class fsfuzzer(test.test):
5 version = 1
6
7 # http://people.redhat.com/sgrubb/files/fsfuzzer-0.6.tar.gz
8 def setup(self, tarball = 'fsfuzzer-0.6.tar.gz'):
9 tarball = unmap_url(self.bindir, tarball, self.tmpdir)
10 extract_tarball_to_dir(tarball, self.srcdir)
11 os.chdir(self.srcdir)
12
13 system('make')
14
15 def execute(self, iterations = 1, fstype = 'iso9660'):
16 for i in range(1, iterations+1):
17 args = fstype + ' 1'
18 system(self.srcdir + '/run_test ' + args)
19
20 # Do a profiling run if necessary
21 profilers = self.job.profilers
22 if profilers.present():
23 profilers.start(self)
24 system(self.srcdir + '/run_test ' + args)
25 profilers.stop(self)
26 profilers.report(self)