1 # Uncomment this line, and replace the device with something sensible 2 # for you ... 3 # fs = job.partition('/dev/hda2', job.tmpdir) 4 # or ... 5 6 part = job.partition('/tmp/looped', 1024, job.tmpdir) 7 8 # 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 13 def test_fs(): 14 part.mkfs(fstype) 15 part.mount() 16 try: 17 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) 20 finally: 21 part.unmount() 22 part.fsck() 23 24 for fstype in ('ext2', 'ext3', 'jfs', 'xfs', 'reiserfs'): 25 job.run_group(test_fs) 26