Home | History | Annotate | Download | only in samples
      1 AUTHOR = "Autotest Team <autotest (a] test.kernel.org>"
      2 TIME = "SHORT"
      3 NAME = "Sample - More profilers"
      4 TEST_TYPE = "client"
      5 TEST_CLASS = "Kernel"
      6 TEST_CATEGORY = "Functional"
      7 
      8 DOC = """
      9 Runs sleeptest after installing a kernel rpm. Please note that syntax works
     10 only if you have an autotest package repository properly setup.
     11 """
     12 
     13 def 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 
     21 def step_test():
     22     job.run_test('sleeptest')
     23