kvm.conf 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #
  2. # This config is an example usage of ktest.pl with a kvm guest
  3. #
  4. # The guest is called 'Guest' and this would be something that
  5. # could be run on the host to test a virtual machine target.
  6. MACHINE = Guest
  7. # Use virsh to read the serial console of the guest
  8. CONSOLE = virsh console ${MACHINE}
  9. #*************************************#
  10. # This part is the same as test.conf #
  11. #*************************************#
  12. # The include files will set up the type of test to run. Just set TEST to
  13. # which test you want to run.
  14. #
  15. # TESTS = patchcheck, randconfig, boot, test, config-bisect, bisect, min-config
  16. #
  17. # See the include/*.conf files that define these tests
  18. #
  19. TEST := patchcheck
  20. # Some tests may have more than one test to run. Define MULTI := 1 to run
  21. # the extra tests.
  22. MULTI := 0
  23. # In case you want to differentiate which type of system you are testing
  24. BITS := 64
  25. # REBOOT = none, error, fail, empty
  26. # See include/defaults.conf
  27. REBOOT := empty
  28. # The defaults file will set up various settings that can be used by all
  29. # machine configs.
  30. INCLUDE include/defaults.conf
  31. #*************************************#
  32. # Now we are different from test.conf #
  33. #*************************************#
  34. # The example here assumes that Guest is running a Fedora release
  35. # that uses dracut for its initfs. The POST_INSTALL will be executed
  36. # after the install of the kernel and modules are complete.
  37. #
  38. POST_INSTALL = ${SSH} /sbin/dracut -f /boot/initramfs-test.img $KERNEL_VERSION
  39. # Guests sometimes get stuck on reboot. We wait 3 seconds after running
  40. # the reboot command and then do a full power-cycle of the guest.
  41. # This forces the guest to restart.
  42. #
  43. POWERCYCLE_AFTER_REBOOT = 3
  44. # We do the same after the halt command, but this time we wait 20 seconds.
  45. POWEROFF_AFTER_HALT = 20
  46. # As the defaults.conf file has a POWER_CYCLE option already defined,
  47. # and options can not be defined in the same section more than once
  48. # (all DEFAULTS sections are considered the same). We use the
  49. # DEFAULTS OVERRIDE to tell ktest.pl to ignore the previous defined
  50. # options, for the options set in the OVERRIDE section.
  51. #
  52. DEFAULTS OVERRIDE
  53. # Instead of using the default POWER_CYCLE option defined in
  54. # defaults.conf, we use virsh to cycle it. To do so, we destroy
  55. # the guest, wait 5 seconds, and then start it up again.
  56. # Crude, but effective.
  57. #
  58. POWER_CYCLE = virsh destroy ${MACHINE}; sleep 5; virsh start ${MACHINE}
  59. DEFAULTS
  60. # The following files each handle a different test case.
  61. # Having them included allows you to set up more than one machine and share
  62. # the same tests.
  63. INCLUDE include/patchcheck.conf
  64. INCLUDE include/tests.conf
  65. INCLUDE include/bisect.conf
  66. INCLUDE include/min-config.conf