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

Unified Diff: client/samples/control.alt_tags

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/build2 ('k') | client/samples/control.fs » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/samples/control.alt_tags
diff --git a/client/samples/control.alt_tags b/client/samples/control.alt_tags
new file mode 100644
index 0000000000000000000000000000000000000000..37cf733a1f0310aeeb4f297d42a3532f56a72aba
--- /dev/null
+++ b/client/samples/control.alt_tags
@@ -0,0 +1,33 @@
+AUTHOR = "Autotest Team <autotest@test.kernel.org>"
+TIME = "MEDIUM"
+NAME = "Sample - Building and adding an alternate kernel"
+TEST_TYPE = "client"
+TEST_CLASS = "Kernel"
+TEST_CATEGORY = "Functional"
+
+DOC = """
+Builds a test kernel, then runs the kernbench test. This sample shows the
+job.bootloader object, as well as building kernels with alternate idenfifying
+tags.
+"""
+
+def step_init():
+ """
+ Build a kernel from kernel.org. This step will be executed, the machine
+ will be rebooted and then we'll proceed with step_tests.
+ """
+ job.next_step([step_tests])
+ testkernel = job.kernel('2.6.35')
+ # This is the default config that can be retrieved on gitweb
+ testkernel.config('http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.35.y.git;a=blob_plain;f=arch/x86/configs/x86_64_defconfig;h=6c86acd847a4e28c09d951b34d488b13d44df3c7;hb=ea8a52f9f4bcc3420c38ae07f8378a2f18443970')
+ testkernel.build()
+ testkernel.install('autotest-alternate')
+ job.bootloader.list_titles()
+ testkernel.boot('autotest-alternate')
+
+
+def step_tests():
+ """
+ Run a series of autotest tests on this machine.
+ """
+ job.run_test('kernbench', iterations=2, threads=5)
« no previous file with comments | « client/samples/build2 ('k') | client/samples/control.fs » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698