0001 #
0002 # This config is an example usage of ktest.pl with a kvm guest
0003 #
0004 # The guest is called 'Guest' and this would be something that
0005 # could be run on the host to test a virtual machine target.
0006
0007 MACHINE = Guest
0008
0009
0010 # Use virsh to read the serial console of the guest
0011 CONSOLE = virsh console ${MACHINE}
0012
0013 # Use SIGKILL to terminate virsh console. We can't kill virsh console
0014 # by the default signal, SIGINT.
0015 CLOSE_CONSOLE_SIGNAL = KILL
0016
0017 #*************************************#
0018 # This part is the same as test.conf #
0019 #*************************************#
0020
0021 # The include files will set up the type of test to run. Just set TEST to
0022 # which test you want to run.
0023 #
0024 # TESTS = patchcheck, randconfig, boot, test, config-bisect, bisect, min-config
0025 #
0026 # See the include/*.conf files that define these tests
0027 #
0028 TEST := patchcheck
0029
0030 # Some tests may have more than one test to run. Define MULTI := 1 to run
0031 # the extra tests.
0032 MULTI := 0
0033
0034 # In case you want to differentiate which type of system you are testing
0035 BITS := 64
0036
0037 # REBOOT = none, error, fail, empty
0038 # See include/defaults.conf
0039 REBOOT := empty
0040
0041
0042 # The defaults file will set up various settings that can be used by all
0043 # machine configs.
0044 INCLUDE include/defaults.conf
0045
0046
0047 #*************************************#
0048 # Now we are different from test.conf #
0049 #*************************************#
0050
0051
0052 # The example here assumes that Guest is running a Fedora release
0053 # that uses dracut for its initfs. The POST_INSTALL will be executed
0054 # after the install of the kernel and modules are complete.
0055 #
0056 POST_INSTALL = ${SSH} /sbin/dracut -f /boot/initramfs-test.img $KERNEL_VERSION
0057
0058 # Guests sometimes get stuck on reboot. We wait 3 seconds after running
0059 # the reboot command and then do a full power-cycle of the guest.
0060 # This forces the guest to restart.
0061 #
0062 POWERCYCLE_AFTER_REBOOT = 3
0063
0064 # We do the same after the halt command, but this time we wait 20 seconds.
0065 POWEROFF_AFTER_HALT = 20
0066
0067
0068 # As the defaults.conf file has a POWER_CYCLE option already defined,
0069 # and options can not be defined in the same section more than once
0070 # (all DEFAULTS sections are considered the same). We use the
0071 # DEFAULTS OVERRIDE to tell ktest.pl to ignore the previous defined
0072 # options, for the options set in the OVERRIDE section.
0073 #
0074 DEFAULTS OVERRIDE
0075
0076 # Instead of using the default POWER_CYCLE option defined in
0077 # defaults.conf, we use virsh to cycle it. To do so, we destroy
0078 # the guest, wait 5 seconds, and then start it up again.
0079 # Crude, but effective.
0080 #
0081 POWER_CYCLE = virsh destroy ${MACHINE}; sleep 5; virsh start ${MACHINE}
0082
0083
0084 DEFAULTS
0085
0086 # The following files each handle a different test case.
0087 # Having them included allows you to set up more than one machine and share
0088 # the same tests.
0089 INCLUDE include/patchcheck.conf
0090 INCLUDE include/tests.conf
0091 INCLUDE include/bisect.conf
0092 INCLUDE include/min-config.conf
0093 INCLUDE include/bootconfig.conf