blob: 18f3720610b3b1d7d1db9ab58cb8352d34e70f01 [file] [log] [blame]
# This requires aio headers to build.
# Should work automagically out of deps now.
# NOTE - this should also have the ability to mount a filesystem,
# run the tests, unmount it, then fsck the filesystem
import os
from autotest_lib.client.bin import test, utils
class fsx(test.test):
"""Test to run fsx-linux."""
version = 3
def initialize(self):
def setup(self, tarball = 'ext3-tools.tar.gz'):
self.tarball = utils.unmap_url(self.bindir, tarball, self.tmpdir)
utils.extract_tarball_to_dir(self.tarball, self.srcdir)
for p in ['0001-Minor-fixes-to-PAGE_SIZE-handling.patch',
utils.system('patch -p1 < ../%s' % p)
utils.system('make fsx-linux')
def run_once(self, dir=None, repeat=100000):
args = '-N %s' % repeat
if not dir:
dir = self.tmpdir
utils.system(' '.join([os.path.join(self.srcdir,'/fsx-linux'),
args, 'poo']))