• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1AUTHOR = "Autotest Team <autotest@test.kernel.org>"
2TIME = "SHORT"
3NAME = "Sample - More profilers"
4TEST_TYPE = "client"
5TEST_CLASS = "Kernel"
6TEST_CATEGORY = "Functional"
7
8DOC = """
9Runs sleeptest after installing a kernel rpm. Please note that syntax works
10only if you have an autotest package repository properly setup.
11"""
12
13def step_init():
14    job.next_step([step_test])
15    # The below won't work unless you have configured an autotest package
16    # repository.
17    testkernel = job.kernel('kernel-smp-2.6.18-210.4.x86_64.rpm')
18    testkernel.install()
19    testkernel.boot() # does autotest by default
20
21def step_test():
22    job.run_test('sleeptest')
23