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

Unified Diff: client/samples/control.patch_verify

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.parallel ('k') | client/samples/control.profilers » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/samples/control.patch_verify
diff --git a/client/samples/control.patch_verify b/client/samples/control.patch_verify
new file mode 100644
index 0000000000000000000000000000000000000000..a03e93b4e8748971e4c645f102fc9a6243f2c94c
--- /dev/null
+++ b/client/samples/control.patch_verify
@@ -0,0 +1,42 @@
+AUTHOR = "Autotest Team <autotest@test.kernel.org>"
+TIME = "SHORT"
+NAME = "Sample - Parallel dd with kernel build - patch verification"
+TEST_TYPE = "client"
+TEST_CLASS = "Kernel"
+TEST_CATEGORY = "Functional"
+
+DOC = """
+Parallel dd test with kernel build with the objective of seeing (or not)
+differences after a patch is applied to the mainline kernel.
+"""
+
+def tests(tag):
+ 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)
+
+ job.run_test('parallel_dd', fs=partition, fs_type='ext4', iterations=1,
+ megabytes=1000, streams=2, tag=tag)
+
+
+def step_init():
+ testkernel = job.kernel('/usr/src/linux-2.6.36.tar.bz2')
+ testkernel.config('/usr/src/config')
+ testkernel.build()
+ job.next_step([step_one])
+ testkernel.boot()
+
+
+def step_one():
+ tests('mainline')
+ testkernel = job.kernel('/usr/src/linux-2.6.36.tar.bz2')
+ testkernel.patch('/usr/src/ext4_patch')
+ testkernel.config('/usr/src/config')
+ testkernel.build()
+ job.next_step([step_two])
+ testkernel.boot()
+
+
+def step_two():
+ tests('post_patch')
« no previous file with comments | « client/samples/control.parallel ('k') | client/samples/control.profilers » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698