virt.virt_test_utils: run_autotest - 'tar' needs relative paths to strip the leading '/'
[autotest-zwu.git] / client / samples / control.alt_tags
blob37cf733a1f0310aeeb4f297d42a3532f56a72aba
1 AUTHOR = "Autotest Team <autotest@test.kernel.org>"
2 TIME = "MEDIUM"
3 NAME = "Sample - Building and adding an alternate kernel"
4 TEST_TYPE = "client"
5 TEST_CLASS = "Kernel"
6 TEST_CATEGORY = "Functional"
8 DOC = """
9 Builds a test kernel, then runs the kernbench test. This sample shows the
10 job.bootloader object, as well as building kernels with alternate idenfifying
11 tags.
12 """
14 def step_init():
15     """
16     Build a kernel from kernel.org. This step will be executed, the machine
17     will be rebooted and then we'll proceed with step_tests.
18     """
19     job.next_step([step_tests])
20     testkernel = job.kernel('2.6.35')
21     # This is the default config that can be retrieved on gitweb
22     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')
23     testkernel.build()
24     testkernel.install('autotest-alternate')
25     job.bootloader.list_titles()
26     testkernel.boot('autotest-alternate')
29 def step_tests():
30     """
31     Run a series of autotest tests on this machine.
32     """
33     job.run_test('kernbench', iterations=2, threads=5)