blob: b0097b92302d061be605c55d2d9d5701065b30f3 [file] [log] [blame]
import os
from autotest_lib.client.bin import test, utils
class fsfuzzer(test.test):
version = 1
def initialize(self):
self.job.require_gcc()
# http://people.redhat.com/sgrubb/files/fsfuzzer-0.6.tar.gz
def setup(self, tarball = 'fsfuzzer-0.6.tar.gz'):
tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir)
utils.extract_tarball_to_dir(tarball, self.srcdir)
os.chdir(self.srcdir)
utils.system('patch -p1 < ../makefile.patch')
utils.make()
def run_once(self, fstype = 'iso9660'):
args = fstype + ' 1'
utils.system(self.srcdir + '/run_test ' + args)