Path: blob/master/tools/testing/ktest/examples/include/defaults.conf
26299 views
# This file holds defaults for most the tests. It defines the options that1# are most common to tests that are likely to be shared.2#3# Note, after including this file, a config file may override any option4# with a DEFAULTS OVERRIDE section.5#67# For those cases that use the same machine to boot a 64 bit8# and a 32 bit version. The MACHINE is the DNS name to get to the9# box (usually different if it was 64 bit or 32 bit) but the10# BOX here is defined as a variable that will be the name of the box11# itself. It is useful for calling scripts that will power cycle12# the box, as only one script needs to be created to power cycle13# even though the box itself has multiple operating systems on it.14# By default, BOX and MACHINE are the same.1516DEFAULTS IF NOT DEFINED BOX17BOX := ${MACHINE}181920# Consider each box as 64 bit box, unless the config including this file21# has defined BITS = 322223DEFAULTS IF NOT DEFINED BITS24BITS := 64252627DEFAULTS2829# THIS_DIR is used through out the configs and defaults to ${PWD} which30# is the directory that ktest.pl was called from.3132THIS_DIR := ${PWD}333435# to organize your configs, having each machine save their configs36# into a separate directly is useful.37CONFIG_DIR := ${THIS_DIR}/configs/${MACHINE}3839# Reset the log before running each test.40CLEAR_LOG = 14142# As installing kernels usually requires root privilege, default the43# user on the target as root. It is also required that the target44# allows ssh to root from the host without asking for a password.4546SSH_USER = root4748# For accessing the machine, we will ssh to root@machine.49SSH := ssh ${SSH_USER}@${MACHINE}5051# Update this. The default here is ktest will ssh to the target box52# and run a script called 'run-test' located on that box.53TEST = ${SSH} run-test5455# Point build dir to the git repo you use56BUILD_DIR = ${THIS_DIR}/linux.git5758# Each machine will have its own output build directory.59OUTPUT_DIR = ${THIS_DIR}/build/${MACHINE}6061# Yes this config is focused on x86 (but ktest works for other archs too)62BUILD_TARGET = arch/x86/boot/bzImage63TARGET_IMAGE = /boot/vmlinuz-test6465# have directory for the scripts to reboot and power cycle the boxes66SCRIPTS_DIR := ${THIS_DIR}/scripts6768# You can have each box/machine have a script to power cycle it.69# Name your script <box>-cycle.70POWER_CYCLE = ${SCRIPTS_DIR}/${BOX}-cycle7172# This script is used to power off the box.73POWER_OFF = ${SCRIPTS_DIR}/${BOX}-poweroff7475# Keep your test kernels separate from your other kernels.76LOCALVERSION = -test7778# The /boot/grub/menu.lst is searched for the line:79# title Test Kernel80# and ktest will use that kernel to reboot into.81# For grub2 or other boot loaders, you need to set BOOT_TYPE82# to 'script' and define other ways to load the kernel.83# See snowball.conf example.84#85GRUB_MENU = Test Kernel8687# The kernel build will use this option.88BUILD_OPTIONS = -j88990# Keeping the log file with the output dir is convenient.91LOG_FILE = ${OUTPUT_DIR}/${MACHINE}.log9293# Each box should have their own minum configuration94# See min-config.conf95MIN_CONFIG = ${CONFIG_DIR}/config-min9697# For things like randconfigs, there may be configs you find that98# are already broken, or there may be some configs that you always99# want set. Uncomment ADD_CONFIG and point it to the make config files100# that set the configs you want to keep on (or off) in your build.101# ADD_CONFIG is usually something to add configs to all machines,102# where as, MIN_CONFIG is specific per machine.103#ADD_CONFIG = ${THIS_DIR}/config-broken ${THIS_DIR}/config-general104105# To speed up reboots for bisects and patchcheck, instead of106# waiting 60 seconds for the console to be idle, if this line is107# seen in the console output, ktest will know the good kernel has108# finished rebooting and it will be able to continue the tests.109REBOOT_SUCCESS_LINE = ${MACHINE} login:110111# The following is different ways to end the test.112# by setting the variable REBOOT to: none, error, fail or113# something else, ktest will power cycle or reboot the target box114# at the end of the tests.115#116# REBOOT := none117# Don't do anything at the end of the test.118#119# REBOOT := error120# Reboot the box if ktest detects an error121#122# REBOOT := fail123# Do not stop on failure, and after all tests are complete124# power off the box (for both success and error)125# This is good to run over a weekend and you don't want to waste126# electricity.127#128129DEFAULTS IF ${REBOOT} == none130REBOOT_ON_SUCCESS = 0131REBOOT_ON_ERROR = 0132POWEROFF_ON_ERROR = 0133POWEROFF_ON_SUCCESS = 0134135DEFAULTS ELSE IF ${REBOOT} == error136REBOOT_ON_SUCCESS = 0137REBOOT_ON_ERROR = 1138POWEROFF_ON_ERROR = 0139POWEROFF_ON_SUCCESS = 0140141DEFAULTS ELSE IF ${REBOOT} == fail142REBOOT_ON_SUCCESS = 0143POWEROFF_ON_ERROR = 1144POWEROFF_ON_SUCCESS = 1145POWEROFF_AFTER_HALT = 120146DIE_ON_FAILURE = 0147148# Store the failure information into this directory149# such as the .config, dmesg, and build log.150STORE_FAILURES = ${THIS_DIR}/failures151152DEFAULTS ELSE153REBOOT_ON_SUCCESS = 1154REBOOT_ON_ERROR = 1155POWEROFF_ON_ERROR = 0156POWEROFF_ON_SUCCESS = 0157158159