1 AUTHOR = "Autotest Team <autotest@test.kernel.org>"
3 NAME = "Sample - Filesystem tests with different filesystems"
6 TEST_CATEGORY = "Functional"
9 Runs a series of filesystem tests on a loopback partition using different
10 filesystem types. his shows some features of the job.partition method, such as
11 creating loopback partitions instead of using real disk partitions, looping.
14 partition
= job.partition
('/tmp/looped', 1024, job.tmpdir
)
15 # You can use also 'real' partitions, just comment the above and uncomment
17 #partition = job.partition('/dev/sdb1', job.tmpdir)
20 partition
.mkfs
(fstype
)
23 job.run_test
('fsx', dir
=partition
.mountpoint
, tag
=fstype
)
24 job.run_test
('iozone', dir
=partition
.mountpoint
, tag
=fstype
)
25 job.run_test
('dbench', dir
=partition
.mountpoint
, tag
=fstype
)
31 for fstype
in ('ext2', 'ext3', 'jfs', 'xfs', 'reiserfs'):
32 job.run_group
(test_fs
)