Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: client/samples/control.fs_options

Issue 4823005: Merge remote branch 'cros/upstream' into tempbranch (Closed) Base URL: http://git.chromium.org/git/autotest.git@master
Patch Set: patch Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/samples/control.fs ('k') | client/samples/control.interactive_console » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/samples/control.fs_options
diff --git a/client/samples/control.fs_options b/client/samples/control.fs_options
new file mode 100644
index 0000000000000000000000000000000000000000..e126c3c4dae735b0c688dcf900268947e4812f33
--- /dev/null
+++ b/client/samples/control.fs_options
@@ -0,0 +1,36 @@
+AUTHOR = "Autotest Team <autotest@test.kernel.org>"
+TIME = "MEDIUM"
+NAME = "Sample - Filesystem tests with different fs options"
+TEST_TYPE = "client"
+TEST_CLASS = "Kernel"
+TEST_CATEGORY = "Functional"
+
+DOC = """
+Runs a series of filesystem tests on a loopback partition. This shows some
+features of the job.partition method, such as creating loopback partitions
+instead of using real disk partitions, looping and tags.
+"""
+
+partition = job.partition(device='/tmp/looped', loop_size=1024,
+ mountpoint=job.tmpdir)
+# You can use also 'real' partitions, just comment the above and uncomment
+# the below
+#partition = job.partition('/dev/sdb1', job.tmpdir)
+
+iters = 10
+
+for fstype, mountopts, tag in (('ext2', '', 'ext2'),
+ ('ext3', '-o data=writeback', 'ext3writeback'),
+ ('ext3', '-o data=ordered', 'ext3ordered'),
+ ('ext3', '-o data=journal', 'ext3journal'),
+ ('ext4', '-o data=ordered', 'ext4ordered'),
+ ('ext4', '-o data=journal', 'ext4journal'),):
+ partition.mkfs(fstype)
+ partition.mount(args=mountopts)
+ try:
+ job.run_test('fsx', dir=job.tmpdir, tag=tag)
+ job.run_test('iozone', dir=job.tmpdir, iterations=iters, tag=tag)
+ job.run_test('dbench', iterations=iters, dir=job.tmpdir, tag=tag)
+ job.run_test('tiobench', dir=job.tmpdir, tag=tag)
+ finally:
+ partition.unmount()
« no previous file with comments | « client/samples/control.fs ('k') | client/samples/control.interactive_console » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698