mbligh | d7fb4a6 | 2006-10-01 00:57:53 +0000 | [diff] [blame] | 1 | # Uncomment this line, and replace the device with something sensible |
| 2 | # for you ... |
Eric Li | 6f27d4f | 2010-09-29 10:55:17 -0700 | [diff] [blame] | 3 | # fs = job.partition('/dev/hda2', job.tmpdir) |
mbligh | c235985 | 2007-08-28 18:11:48 +0000 | [diff] [blame] | 4 | # or ... |
| 5 | |
Eric Li | 6f27d4f | 2010-09-29 10:55:17 -0700 | [diff] [blame] | 6 | part = job.partition('/tmp/looped', 1024, job.tmpdir) |
mbligh | d7fb4a6 | 2006-10-01 00:57:53 +0000 | [diff] [blame] | 7 | |
mbligh | a7c3447 | 2006-12-04 16:32:25 +0000 | [diff] [blame] | 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 | |
mbligh | d6077d5 | 2007-08-29 15:54:19 +0000 | [diff] [blame] | 13 | def test_fs(): |
Eric Li | 6f27d4f | 2010-09-29 10:55:17 -0700 | [diff] [blame] | 14 | part.mkfs(fstype) |
| 15 | part.mount() |
mbligh | d7fb4a6 | 2006-10-01 00:57:53 +0000 | [diff] [blame] | 16 | try: |
Eric Li | 6f27d4f | 2010-09-29 10:55:17 -0700 | [diff] [blame] | 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) |
mbligh | d7fb4a6 | 2006-10-01 00:57:53 +0000 | [diff] [blame] | 20 | finally: |
Eric Li | 6f27d4f | 2010-09-29 10:55:17 -0700 | [diff] [blame] | 21 | part.unmount() |
| 22 | part.fsck() |
mbligh | d7fb4a6 | 2006-10-01 00:57:53 +0000 | [diff] [blame] | 23 | |
mbligh | d6077d5 | 2007-08-29 15:54:19 +0000 | [diff] [blame] | 24 | for fstype in ('ext2', 'ext3', 'jfs', 'xfs', 'reiserfs'): |
| 25 | job.run_group(test_fs) |