blob: 2fd1b9d75d042ace3a2eb2f70b084aa30445e5bb [file] [log] [blame]
mblighd7fb4a62006-10-01 00:57:53 +00001# Uncomment this line, and replace the device with something sensible
2# for you ...
Eric Li6f27d4f2010-09-29 10:55:17 -07003# fs = job.partition('/dev/hda2', job.tmpdir)
mblighc2359852007-08-28 18:11:48 +00004# or ...
5
Eric Li6f27d4f2010-09-29 10:55:17 -07006part = job.partition('/tmp/looped', 1024, job.tmpdir)
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():
Eric Li6f27d4f2010-09-29 10:55:17 -070014 part.mkfs(fstype)
15 part.mount()
mblighd7fb4a62006-10-01 00:57:53 +000016 try:
Eric Li6f27d4f2010-09-29 10:55:17 -070017 job.run_test('fsx', dir=part.mountpoint, tag=fstype)
18 job.run_test('iozone', dir=part.mountpoint, tag=fstype)
19 job.run_test('dbench', dir=part.mountpoint, tag=fstype)
mblighd7fb4a62006-10-01 00:57:53 +000020 finally:
Eric Li6f27d4f2010-09-29 10:55:17 -070021 part.unmount()
22 part.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)