ronnie
2022-10-14 1504bb53e29d3d46222c0b3ea994fc494b48e153
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Uncomment this line, and replace the device with something sensible
# for you ...
# fs = job.partition('/dev/hda2', job.tmpdir)
# or ...
 
part = job.partition('/tmp/looped', 1024, job.tmpdir)
 
# dbench 1024, ltp, 1024-byte blocksize, a few other things.  Lots of fscking.
# I haven't tested nobh mode yet, 
# and I have yet to point run-bash-shared-mapping at it.
# (different mount options for ext3)
 
def test_fs():
   part.mkfs(fstype)
   part.mount()
   try:
       job.run_test('fsx', dir=part.mountpoint, tag=fstype)
       job.run_test('iozone', dir=part.mountpoint, tag=fstype)
       job.run_test('dbench', dir=part.mountpoint, tag=fstype)
   finally:
       part.unmount()
       part.fsck()
 
for fstype in ('ext2', 'ext3', 'jfs', 'xfs', 'reiserfs'):
   job.run_group(test_fs)