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

Unified Diff: client/samples/control.xenbuild

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.soft_reboot ('k') | client/samples/ext3_options » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/samples/control.xenbuild
diff --git a/client/samples/control.xenbuild b/client/samples/control.xenbuild
new file mode 100644
index 0000000000000000000000000000000000000000..12e09f3448d4f9bbec82131d31b22c4260807331
--- /dev/null
+++ b/client/samples/control.xenbuild
@@ -0,0 +1,31 @@
+AUTHOR = "Autotest Team <autotest@test.kernel.org>"
+TIME = 'MEDIUM'
+NAME = "Sample - Xen Build"
+TEST_TYPE = "client"
+TEST_CLASS = "Kernel"
+
+DOC = """
+this is a sample job to build xen and kernel with xen patches.
+The xen unstable tarball comes with scripts that will automatically
+patch a linux kernel, however, in some cases, PPC for example, the
+kernel is built from a seperate source. The xen class supports
+defining your own kernel job, and handing that to the xen job. If
+no kernel job is specified, it will create one using the kernel source
+that the xen tarball uses.
+"""
+
+def step_init():
+ xensrc = 'http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/xen-unstable-src.tgz'
+ # Uncomment the lines below if you want to build an alternate kernel
+ #testkernel = job.kernel('/usr/local/src/linux-2.6.18.tar.bz2')
+ #testkernel.config('http://mbligh.org/config/opteron2')
+ #testxen = job.xen(xensrc, kjob = testkernel)
+ testxen = job.xen(xensrc)
+ testxen.build()
+ testxen.install(tag='autotest', prefix='/tmp/xen')
+ # Uncomment the line below if you want to boot your newly built kernel
+ testxen.boot()
+
+
+def step_test():
+ job.run_test('sleeptest')
« no previous file with comments | « client/samples/control.soft_reboot ('k') | client/samples/ext3_options » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698