blob: dc8b2bd552564f636b697a6620e78a4c35ceb66c [file] [log] [blame]
mblighd7fb4a62006-10-01 00:57:53 +00001# Uncomment this line, and replace the device with something sensible
2# for you ...
3# fs = job.filesystem('/dev/hda2', job.tmpdir)
mblighc2359852007-08-28 18:11:48 +00004# or ...
5
6fs = job.filesystem('/tmp/looped', job.tmpdir, loop_size = 1024)
mblighd7fb4a62006-10-01 00:57:53 +00007
mbligha7c34472006-12-04 16:32:25 +00008# dbench 1024, ltp, 1024-byte blocksize, a few other things. Lots of fscking.
9# I haven't tested nobh mode yet,
10# and I have yet to point run-bash-shared-mapping at it.
11# (different mount options for ext3)
12
mblighd6077d52007-08-29 15:54:19 +000013def test_fs():
mblighd7fb4a62006-10-01 00:57:53 +000014 fs.mkfs(fstype)
15 fs.mount()
16 try:
mblighd016ecc2006-11-25 21:41:07 +000017 job.run_test('fsx', job.tmpdir, tag=fstype)
mblighfe7c1ad2006-12-04 18:02:59 +000018 job.run_test('iozone', job.tmpdir, tag=fstype)
mbligh62107be2006-12-04 07:49:31 +000019 job.run_test('dbench', dir=job.tmpdir, tag=fstype)
mblighd7fb4a62006-10-01 00:57:53 +000020 finally:
21 fs.unmount()
mblighd6077d52007-08-29 15:54:19 +000022 fs.fsck()
mblighd7fb4a62006-10-01 00:57:53 +000023
mblighd6077d52007-08-29 15:54:19 +000024for fstype in ('ext2', 'ext3', 'jfs', 'xfs', 'reiserfs'):
25 job.run_group(test_fs)