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

Unified Diff: client/samples/control.fs

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.alt_tags ('k') | client/samples/control.fs_options » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/samples/control.fs
diff --git a/client/samples/control.fs b/client/samples/control.fs
new file mode 100644
index 0000000000000000000000000000000000000000..a0a65c7326863fd898be5eadf2f985466b026c49
--- /dev/null
+++ b/client/samples/control.fs
@@ -0,0 +1,32 @@
+AUTHOR = "Autotest Team <autotest@test.kernel.org>"
+TIME = "MEDIUM"
+NAME = "Sample - Filesystem tests with different filesystems"
+TEST_TYPE = "client"
+TEST_CLASS = "Kernel"
+TEST_CATEGORY = "Functional"
+
+DOC = """
+Runs a series of filesystem tests on a loopback partition using different
+filesystem types. his shows some features of the job.partition method, such as
+creating loopback partitions instead of using real disk partitions, looping.
+"""
+
+partition = job.partition('/tmp/looped', 1024, job.tmpdir)
+# You can use also 'real' partitions, just comment the above and uncomment
+# the below
+#partition = job.partition('/dev/sdb1', job.tmpdir)
+
+def test_fs():
+ partition.mkfs(fstype)
+ partition.mount()
+ try:
+ job.run_test('fsx', dir=partition.mountpoint, tag=fstype)
+ job.run_test('iozone', dir=partition.mountpoint, tag=fstype)
+ job.run_test('dbench', dir=partition.mountpoint, tag=fstype)
+ finally:
+ partition.unmount()
+ partition.fsck()
+
+
+for fstype in ('ext2', 'ext3', 'jfs', 'xfs', 'reiserfs'):
+ job.run_group(test_fs)
« no previous file with comments | « client/samples/control.alt_tags ('k') | client/samples/control.fs_options » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698