brintos

brintos / linux-shallow public Read only

0
0
Text · 4.6 KiB · 6195816 Raw
138 lines · plain
1#2# This config is an example usage of ktest.pl with a vmware guest3#4# VMware Setup:5# -------------6# - Edit the Virtual Machine ("Edit virtual machine settings")7# - Add a Serial Port8#   - 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: Server12#   - To: A Virtual Machine13#   - Save14# - Make sure you note the name, it will be in the base directory of the15#   virtual machine (where the "disks" are stored.  The default16#   is /var/lib/vmware/<virtual machine name>/<the name you entered above>17#18# - Make note of the path to the VM19# </End VMware setup>20#21# The guest is called 'Guest' and this would be something that22# could be run on the host to test a virtual machine target.23 24MACHINE = Guest25 26# Name of the serial pipe you set in the VMware settings27VMWARE_SERIAL_NAME = <the name you entered above>28 29# Define a variable of the name of the VM30# Noting this needs to be the name of the kmx file, and usually, the31# name of the directory that it's in.  If the directory and name32# differ change the VMWARE_VM_DIR accordingly.33# Please ommit the .kmx extension34VMWARE_VM_NAME = <virtual machine name>35 36# VM dir name.  This is usually the same as the virtual machine's name,37# but not always the case.  Change if they differ38VMWARE_VM_DIR = ${VMWARE_VM_NAME}39 40# Base directory that the Virtual machine is contained in41# /var/lib/vmware is the default on Linux42VMWARE_VM_BASE_DIR = /var/lib/vmware/${VMWARE_VM_DIR}43 44# Use ncat to read the unix pipe.  Anything that can read the Unix Pipe45# and output it's contents to stdout will work46CONSOLE = /usr/bin/ncat -U ${VMWARE_VM_BASE_DIR}/${VMWARE_SERIAL_NAME}47 48# Define what version of Workstation you are using49# This is used by vmrun to use the appropriate appripriate pieces to 50# test this.  In all likelihood you want 'ws' or 'player' 51# Valid options:52# 	ws - Workstation (Windows or Linux host)53# 	fusion - Fusion (Mac host)54# 	player - Using VMware Player (Windows or Linux host)55# Note: vmrun has to run directly on the host machine56VMWARE_HOST_TYPE = ws57 58# VMware provides `vmrun` to allow you to do certain things to the virtual machine59# This should hard reset the VM and force a boot60VMWARE_POWER_CYCLE = /usr/bin/vmrun -T ${VMWARE_HOST_TYPE} reset ${VMWARE_VM_BASE_DIR}/${VMWARE_VM_NAME}.kmx nogui61 62#*************************************#63# This part is the same as test.conf  #64#*************************************#65 66# The include files will set up the type of test to run. Just set TEST to67# which test you want to run.68#69# TESTS = patchcheck, randconfig, boot, test, config-bisect, bisect, min-config70#71# See the include/*.conf files that define these tests72#73TEST := patchcheck74 75# Some tests may have more than one test to run. Define MULTI := 1 to run76# the extra tests.77MULTI := 078 79# In case you want to differentiate which type of system you are testing80BITS := 6481 82# REBOOT = none, error, fail, empty83#  See include/defaults.conf84REBOOT := empty85 86 87# The defaults file will set up various settings that can be used by all88# machine configs.89INCLUDE include/defaults.conf90 91 92#*************************************#93# Now we are different from test.conf #94#*************************************#95 96 97# The example here assumes that Guest is running a Fedora release98# that uses dracut for its initfs. The POST_INSTALL will be executed99# after the install of the kernel and modules are complete.100#101POST_INSTALL = ${SSH} /sbin/dracut -f /boot/initramfs-test.img $KERNEL_VERSION102 103# Guests sometimes get stuck on reboot. We wait 3 seconds after running104# the reboot command and then  do a full power-cycle of the guest.105# This forces the guest to restart.106#107POWERCYCLE_AFTER_REBOOT = 3108 109# We do the same after the halt command, but this time we wait 20 seconds.110POWEROFF_AFTER_HALT = 20111 112 113# As the defaults.conf file has a POWER_CYCLE option already defined,114# and options can not be defined in the same section more than once115# (all DEFAULTS sections are considered the same). We use the116# DEFAULTS OVERRIDE to tell ktest.pl to ignore the previous defined117# options, for the options set in the OVERRIDE section.118#119DEFAULTS OVERRIDE120 121# Instead of using the default POWER_CYCLE option defined in122# defaults.conf, we use virsh to cycle it. To do so, we destroy123# the guest, wait 5 seconds, and then start it up again.124# Crude, but effective.125#126POWER_CYCLE = ${VMWARE_POWER_CYCLE}127 128 129DEFAULTS130 131# The following files each handle a different test case.132# Having them included allows you to set up more than one machine and share133# the same tests.134INCLUDE include/patchcheck.conf135INCLUDE include/tests.conf136INCLUDE include/bisect.conf137INCLUDE include/min-config.conf138