vmware.conf 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. #
  2. # This config is an example usage of ktest.pl with a vmware guest
  3. #
  4. # VMware Setup:
  5. # -------------
  6. # - Edit the Virtual Machine ("Edit virtual machine settings")
  7. # - Add a Serial Port
  8. # - You almost certainly want it set "Connect at power on"
  9. # - Select "Use socket (named pipe)"
  10. # - Select a name that you'll recognize, like 'ktestserialpipe'
  11. # - From: Server
  12. # - To: A Virtual Machine
  13. # - Save
  14. # - Make sure you note the name, it will be in the base directory of the
  15. # virtual machine (where the "disks" are stored. The default
  16. # is /var/lib/vmware/<virtual machine name>/<the name you entered above>
  17. #
  18. # - Make note of the path to the VM
  19. # </End VMware setup>
  20. #
  21. # The guest is called 'Guest' and this would be something that
  22. # could be run on the host to test a virtual machine target.
  23. MACHINE = Guest
  24. # Name of the serial pipe you set in the VMware settings
  25. VMWARE_SERIAL_NAME = <the name you entered above>
  26. # Define a variable of the name of the VM
  27. # Noting this needs to be the name of the kmx file, and usually, the
  28. # name of the directory that it's in. If the directory and name
  29. # differ change the VMWARE_VM_DIR accordingly.
  30. # Please ommit the .kmx extension
  31. VMWARE_VM_NAME = <virtual machine name>
  32. # VM dir name. This is usually the same as the virtual machine's name,
  33. # but not always the case. Change if they differ
  34. VMWARE_VM_DIR = ${VMWARE_VM_NAME}
  35. # Base directory that the Virtual machine is contained in
  36. # /var/lib/vmware is the default on Linux
  37. VMWARE_VM_BASE_DIR = /var/lib/vmware/${VMWARE_VM_DIR}
  38. # Use ncat to read the unix pipe. Anything that can read the Unix Pipe
  39. # and output it's contents to stdout will work
  40. CONSOLE = /usr/bin/ncat -U ${VMWARE_VM_BASE_DIR}/${VMWARE_SERIAL_NAME}
  41. # Define what version of Workstation you are using
  42. # This is used by vmrun to use the appropriate appripriate pieces to
  43. # test this. In all likelihood you want 'ws' or 'player'
  44. # Valid options:
  45. # ws - Workstation (Windows or Linux host)
  46. # fusion - Fusion (Mac host)
  47. # player - Using VMware Player (Windows or Linux host)
  48. # Note: vmrun has to run directly on the host machine
  49. VMWARE_HOST_TYPE = ws
  50. # VMware provides `vmrun` to allow you to do certain things to the virtual machine
  51. # This should hard reset the VM and force a boot
  52. VMWARE_POWER_CYCLE = /usr/bin/vmrun -T ${VMWARE_HOST_TYPE} reset ${VMWARE_VM_BASE_DIR}/${VMWARE_VM_NAME}.kmx nogui
  53. #*************************************#
  54. # This part is the same as test.conf #
  55. #*************************************#
  56. # The include files will set up the type of test to run. Just set TEST to
  57. # which test you want to run.
  58. #
  59. # TESTS = patchcheck, randconfig, boot, test, config-bisect, bisect, min-config
  60. #
  61. # See the include/*.conf files that define these tests
  62. #
  63. TEST := patchcheck
  64. # Some tests may have more than one test to run. Define MULTI := 1 to run
  65. # the extra tests.
  66. MULTI := 0
  67. # In case you want to differentiate which type of system you are testing
  68. BITS := 64
  69. # REBOOT = none, error, fail, empty
  70. # See include/defaults.conf
  71. REBOOT := empty
  72. # The defaults file will set up various settings that can be used by all
  73. # machine configs.
  74. INCLUDE include/defaults.conf
  75. #*************************************#
  76. # Now we are different from test.conf #
  77. #*************************************#
  78. # The example here assumes that Guest is running a Fedora release
  79. # that uses dracut for its initfs. The POST_INSTALL will be executed
  80. # after the install of the kernel and modules are complete.
  81. #
  82. POST_INSTALL = ${SSH} /sbin/dracut -f /boot/initramfs-test.img $KERNEL_VERSION
  83. # Guests sometimes get stuck on reboot. We wait 3 seconds after running
  84. # the reboot command and then do a full power-cycle of the guest.
  85. # This forces the guest to restart.
  86. #
  87. POWERCYCLE_AFTER_REBOOT = 3
  88. # We do the same after the halt command, but this time we wait 20 seconds.
  89. POWEROFF_AFTER_HALT = 20
  90. # As the defaults.conf file has a POWER_CYCLE option already defined,
  91. # and options can not be defined in the same section more than once
  92. # (all DEFAULTS sections are considered the same). We use the
  93. # DEFAULTS OVERRIDE to tell ktest.pl to ignore the previous defined
  94. # options, for the options set in the OVERRIDE section.
  95. #
  96. DEFAULTS OVERRIDE
  97. # Instead of using the default POWER_CYCLE option defined in
  98. # defaults.conf, we use virsh to cycle it. To do so, we destroy
  99. # the guest, wait 5 seconds, and then start it up again.
  100. # Crude, but effective.
  101. #
  102. POWER_CYCLE = ${VMWARE_POWER_CYCLE}
  103. DEFAULTS
  104. # The following files each handle a different test case.
  105. # Having them included allows you to set up more than one machine and share
  106. # the same tests.
  107. INCLUDE include/patchcheck.conf
  108. INCLUDE include/tests.conf
  109. INCLUDE include/bisect.conf
  110. INCLUDE include/min-config.conf