1# 2# Config file for ktest.pl 3# 4# Place your customized version of this, in the working directory that 5# ktest.pl is run from. By default, ktest.pl will look for a file 6# called "ktest.conf", but you can name it anything you like and specify 7# the name of your config file as the first argument of ktest.pl. 8# 9# Note, all paths must be absolute 10# 11 12# Options set in the beginning of the file are considered to be 13# default options. These options can be overridden by test specific 14# options, with the following exceptions: 15# 16# LOG_FILE 17# CLEAR_LOG 18# POWEROFF_ON_SUCCESS 19# REBOOT_ON_SUCCESS 20# 21# Test specific options are set after the label: 22# 23# TEST_START 24# 25# The options after a TEST_START label are specific to that test. 26# Each TEST_START label will set up a new test. If you want to 27# perform a test more than once, you can add the ITERATE label 28# to it followed by the number of times you want that test 29# to iterate. If the ITERATE is left off, the test will only 30# be performed once. 31# 32# TEST_START ITERATE 10 33# 34# You can skip a test by adding SKIP (before or after the ITERATE 35# and number) 36# 37# TEST_START SKIP 38# 39# TEST_START SKIP ITERATE 10 40# 41# TEST_START ITERATE 10 SKIP 42# 43# The SKIP label causes the options and the test itself to be ignored. 44# This is useful to set up several different tests in one config file, and 45# only enabling the ones you want to use for a current test run. 46# 47# You can add default options anywhere in the file as well 48# with the DEFAULTS tag. This allows you to have default options 49# after the test options to keep the test options at the top 50# of the file. You can even place the DEFAULTS tag between 51# test cases (but not in the middle of a single test case) 52# 53# TEST_START 54# MIN_CONFIG = /home/test/config-test1 55# 56# DEFAULTS 57# MIN_CONFIG = /home/test/config-default 58# 59# TEST_START ITERATE 10 60# 61# The above will run the first test with MIN_CONFIG set to 62# /home/test/config-test-1. Then 10 tests will be executed 63# with MIN_CONFIG with /home/test/config-default. 64# 65# You can also disable defaults with the SKIP option 66# 67# DEFAULTS SKIP 68# MIN_CONFIG = /home/test/config-use-sometimes 69# 70# DEFAULTS 71# MIN_CONFIG = /home/test/config-most-times 72# 73# The above will ignore the first MIN_CONFIG. If you want to 74# use the first MIN_CONFIG, remove the SKIP from the first 75# DEFAULTS tag and add it to the second. Be careful, options 76# may only be declared once per test or default. If you have 77# the same option name under the same test or as default 78# ktest will fail to execute, and no tests will run. 79# 80# DEFAULTS OVERRIDE 81# 82# Options defined in the DEFAULTS section can not be duplicated 83# even if they are defined in two different DEFAULT sections. 84# This is done to catch mistakes where an option is added but 85# the previous option was forgotten about and not commented. 86# 87# The OVERRIDE keyword can be added to a section to allow this 88# section to override other DEFAULT sections values that have 89# been defined previously. It will only override options that 90# have been defined before its use. Options defined later 91# in a non override section will still error. The same option 92# can not be defined in the same section even if that section 93# is marked OVERRIDE. 94# 95# 96# 97# Both TEST_START and DEFAULTS sections can also have the IF keyword 98# The value after the IF must evaluate into a 0 or non 0 positive 99# integer, and can use the config variables (explained below). 100# 101# DEFAULTS IF ${IS_X86_32} 102# 103# The above will process the DEFAULTS section if the config 104# variable IS_X86_32 evaluates to a non zero positive integer 105# otherwise if it evaluates to zero, it will act the same 106# as if the SKIP keyword was used. 107# 108# The ELSE keyword can be used directly after a section with 109# a IF statement. 110# 111# TEST_START IF ${RUN_NET_TESTS} 112# BUILD_TYPE = useconfig:${CONFIG_DIR}/config-network 113# 114# ELSE 115# 116# BUILD_TYPE = useconfig:${CONFIG_DIR}/config-normal 117# 118# 119# The ELSE keyword can also contain an IF statement to allow multiple 120# if then else sections. But all the sections must be either 121# DEFAULT or TEST_START, they can not be a mixture. 122# 123# TEST_START IF ${RUN_NET_TESTS} 124# BUILD_TYPE = useconfig:${CONFIG_DIR}/config-network 125# 126# ELSE IF ${RUN_DISK_TESTS} 127# BUILD_TYPE = useconfig:${CONFIG_DIR}/config-tests 128# 129# ELSE IF ${RUN_CPU_TESTS} 130# BUILD_TYPE = useconfig:${CONFIG_DIR}/config-cpu 131# 132# ELSE 133# BUILD_TYPE = useconfig:${CONFIG_DIR}/config-network 134# 135# The if statement may also have comparisons that will and for 136# == and !=, strings may be used for both sides. 137# 138# BOX_TYPE := x86_32 139# 140# DEFAULTS IF ${BOX_TYPE} == x86_32 141# BUILD_TYPE = useconfig:${CONFIG_DIR}/config-32 142# ELSE 143# BUILD_TYPE = useconfig:${CONFIG_DIR}/config-64 144# 145# The DEFINED keyword can be used by the IF statements too. 146# It returns true if the given config variable or option has been defined 147# or false otherwise. 148# 149# 150# DEFAULTS IF DEFINED USE_CC 151# CC := ${USE_CC} 152# ELSE 153# CC := gcc 154# 155# 156# As well as NOT DEFINED. 157# 158# DEFAULTS IF NOT DEFINED MAKE_CMD 159# MAKE_CMD := make ARCH=x86 160# 161# 162# And/or ops (&&,||) may also be used to make complex conditionals. 163# 164# TEST_START IF (DEFINED ALL_TESTS || ${MYTEST} == boottest) && ${MACHINE} == gandalf 165# 166# Notice the use of parentheses. Without any parentheses the above would be 167# processed the same as: 168# 169# TEST_START IF DEFINED ALL_TESTS || (${MYTEST} == boottest && ${MACHINE} == gandalf) 170# 171# 172# 173# INCLUDE file 174# 175# The INCLUDE keyword may be used in DEFAULT sections. This will 176# read another config file and process that file as well. The included 177# file can include other files, add new test cases or default 178# statements. Config variables will be passed to these files and changes 179# to config variables will be seen by top level config files. Including 180# a file is processed just like the contents of the file was cut and pasted 181# into the top level file, except, that include files that end with 182# TEST_START sections will have that section ended at the end of 183# the include file. That is, an included file is included followed 184# by another DEFAULT keyword. 185# 186# Unlike other files referenced in this config, the file path does not need 187# to be absolute. If the file does not start with '/', then the directory 188# that the current config file was located in is used. If no config by the 189# given name is found there, then the current directory is searched. 190# 191# INCLUDE myfile 192# DEFAULT 193# 194# is the same as: 195# 196# INCLUDE myfile 197# 198# Note, if the include file does not contain a full path, the file is 199# searched first by the location of the original include file, and then 200# by the location that ktest.pl was executed in. 201# 202 203#### Config variables #### 204# 205# This config file can also contain "config variables". 206# These are assigned with ":=" instead of the ktest option 207# assignment "=". 208# 209# The difference between ktest options and config variables 210# is that config variables can be used multiple times, 211# where each instance will override the previous instance. 212# And that they only live at time of processing this config. 213# 214# The advantage to config variables are that they can be used 215# by any option or any other config variables to define thing 216# that you may use over and over again in the options. 217# 218# For example: 219# 220# USER := root 221# TARGET := mybox 222# TEST_CASE := ssh ${USER}@${TARGET} /path/to/my/test 223# 224# TEST_START 225# MIN_CONFIG = config1 226# TEST = ${TEST_CASE} 227# 228# TEST_START 229# MIN_CONFIG = config2 230# TEST = ${TEST_CASE} 231# 232# TEST_CASE := ssh ${USER}@${TARGET} /path/to/my/test2 233# 234# TEST_START 235# MIN_CONFIG = config1 236# TEST = ${TEST_CASE} 237# 238# TEST_START 239# MIN_CONFIG = config2 240# TEST = ${TEST_CASE} 241# 242# TEST_DIR := /home/me/test 243# 244# BUILD_DIR = ${TEST_DIR}/linux.git 245# OUTPUT_DIR = ${TEST_DIR}/test 246# 247# Note, the config variables are evaluated immediately, thus 248# updating TARGET after TEST_CASE has been assigned does nothing 249# to TEST_CASE. 250# 251# As shown in the example, to evaluate a config variable, you 252# use the ${X} convention. Simple $X will not work. 253# 254# If the config variable does not exist, the ${X} will not 255# be evaluated. Thus: 256# 257# MAKE_CMD = PATH=/mypath:${PATH} make 258# 259# If PATH is not a config variable, then the ${PATH} in 260# the MAKE_CMD option will be evaluated by the shell when 261# the MAKE_CMD option is passed into shell processing. 262# 263# Shell commands can also be inserted with the ${shell <command>} 264# expression. Note, this is case sensitive, thus ${SHELL <command>} 265# will not work. 266# 267# HOSTNAME := ${shell hostname} 268# DEFAULTS IF "${HOSTNAME}" == "frodo" 269# 270 271#### Using options in other options #### 272# 273# Options that are defined in the config file may also be used 274# by other options. All options are evaluated at time of 275# use (except that config variables are evaluated at config 276# processing time). 277# 278# If an ktest option is used within another option, instead of 279# typing it again in that option you can simply use the option 280# just like you can config variables. 281# 282# MACHINE = mybox 283# 284# TEST = ssh root@${MACHINE} /path/to/test 285# 286# The option will be used per test case. Thus: 287# 288# TEST_TYPE = test 289# TEST = ssh root@{MACHINE} 290# 291# TEST_START 292# MACHINE = box1 293# 294# TEST_START 295# MACHINE = box2 296# 297# For both test cases, MACHINE will be evaluated at the time 298# of the test case. The first test will run ssh root@box1 299# and the second will run ssh root@box2. 300 301#### Mandatory Default Options #### 302 303# These options must be in the default section, although most 304# may be overridden by test options. 305 306# The machine hostname that you will test 307#MACHINE = target 308 309# The box is expected to have ssh on normal bootup, provide the user 310# (most likely root, since you need privileged operations) 311#SSH_USER = root 312 313# The directory that contains the Linux source code 314#BUILD_DIR = /home/test/linux.git 315 316# The directory that the objects will be built 317# (can not be same as BUILD_DIR) 318#OUTPUT_DIR = /home/test/build/target 319 320# The location of the compiled file to copy to the target 321# (relative to OUTPUT_DIR) 322#BUILD_TARGET = arch/x86/boot/bzImage 323 324# The place to put your image on the test machine 325#TARGET_IMAGE = /boot/vmlinuz-test 326 327# A script or command to reboot the box 328# 329# Here is a digital loggers power switch example 330#POWER_CYCLE = wget --no-proxy -O /dev/null -q --auth-no-challenge 'http://admin:admin@power/outlet?5=CCL' 331# 332# Here is an example to reboot a virtual box on the current host 333# with the name "Guest". 334#POWER_CYCLE = virsh destroy Guest; sleep 5; virsh start Guest 335 336# The script or command that reads the console 337# 338# If you use ttywatch server, something like the following would work. 339#CONSOLE = nc -d localhost 3001 340# 341# For a virtual machine with guest name "Guest". 342#CONSOLE = virsh console Guest 343 344# Signal to send to kill console. 345# ktest.pl will create a child process to monitor the console. 346# When the console is finished, ktest will kill the child process 347# with this signal. 348# (default INT) 349#CLOSE_CONSOLE_SIGNAL = HUP 350 351# Required version ending to differentiate the test 352# from other linux builds on the system. 353#LOCALVERSION = -test 354 355# For REBOOT_TYPE = grub2, you must specify where the grub.cfg 356# file is. This is the file that is searched to find the menu 357# option to boot to with GRUB_REBOOT 358#GRUB_FILE = /boot/grub2/grub.cfg 359 360# The tool for REBOOT_TYPE = grub2 or grub2bls to set the next reboot kernel 361# to boot into (one shot mode). 362# (default grub2_reboot) 363#GRUB_REBOOT = grub2_reboot 364 365# The grub title name for the test kernel to boot 366# (Only mandatory if REBOOT_TYPE = grub or grub2 or grub2bls) 367# 368# Note, ktest.pl will not update the grub menu.lst, you need to 369# manually add an option for the test. ktest.pl will search 370# the grub menu.lst for this option to find what kernel to 371# reboot into. 372# 373# For example, if in the /boot/grub/menu.lst the test kernel title has: 374# title Test Kernel 375# kernel vmlinuz-test 376# 377# For grub2, a search of top level "menuentry"s are done. No 378# submenu is searched. The menu is found by searching for the 379# contents of GRUB_MENU in the line that starts with "menuentry". 380# You may want to include the quotes around the option. For example: 381# for: menuentry 'Test Kernel' 382# do a: GRUB_MENU = 'Test Kernel' 383# For customizing, add your entry in /etc/grub.d/40_custom. 384# 385# For grub2bls, a search of "title"s are done. The menu is found 386# by searching for the contents of GRUB_MENU in the line that starts 387# with "title". 388# 389#GRUB_MENU = Test Kernel 390 391# For REBOOT_TYPE = syslinux, the name of the syslinux executable 392# (on the target) to use to set up the next reboot to boot the 393# test kernel. 394# (default extlinux) 395#SYSLINUX = syslinux 396 397# For REBOOT_TYPE = syslinux, the path that is passed to to the 398# syslinux command where syslinux is installed. 399# (default /boot/extlinux) 400#SYSLINUX_PATH = /boot/syslinux 401 402# For REBOOT_TYPE = syslinux, the syslinux label that references the 403# test kernel in the syslinux config file. 404# (default undefined) 405#SYSLINUX_LABEL = "test-kernel" 406 407# A script to reboot the target into the test kernel 408# This and SWITCH_TO_TEST are about the same, except 409# SWITCH_TO_TEST is run even for REBOOT_TYPE = grub. 410# This may be left undefined. 411# (default undefined) 412#REBOOT_SCRIPT = 413 414#### Optional Config Options (all have defaults) #### 415 416# Email options for receiving notifications. Users must setup 417# the specified mailer prior to using this feature. 418# 419# (default undefined) 420#MAILTO = 421# 422# Supported mailers: sendmail, mail, mailx 423# (default sendmail) 424#MAILER = sendmail 425# 426# The executable to run 427# (default: for sendmail "/usr/sbin/sendmail", otherwise equals ${MAILER}) 428#MAIL_EXEC = /usr/sbin/sendmail 429# 430# The command used to send mail, which uses the above options 431# can be modified. By default if the mailer is "sendmail" then 432# MAIL_COMMAND = echo \'Subject: $SUBJECT\n\n$MESSAGE\' | $MAIL_PATH/$MAILER -t $MAILTO 433# For mail or mailx: 434# MAIL_COMMAND = "$MAIL_PATH/$MAILER -s \'$SUBJECT\' $MAILTO <<< \'$MESSAGE\' 435# ktest.pl will do the substitution for MAIL_PATH, MAILER, MAILTO at the time 436# it sends the mail if "$FOO" format is used. If "${FOO}" format is used, 437# then the substitutions will occur at the time the config file is read. 438# But note, MAIL_PATH and MAILER require being set by the config file if 439# ${MAIL_PATH} or ${MAILER} are used, but not if $MAIL_PATH or $MAILER are. 440#MAIL_COMMAND = echo \'Subject: $SUBJECT\n\n$MESSAGE\' | $MAIL_PATH/$MAILER -t $MAILTO 441# 442# Errors are defined as those would terminate the script 443# (default 1) 444#EMAIL_ON_ERROR = 1 445# (default 1) 446#EMAIL_WHEN_FINISHED = 1 447# (default 0) 448#EMAIL_WHEN_STARTED = 1 449# 450# Users can cancel the test by Ctrl^C 451# (default 0) 452#EMAIL_WHEN_CANCELED = 1 453# 454# If a test ends with an error and EMAIL_ON_ERROR is set as well 455# as a LOG_FILE is defined, then the log of the failing test will 456# be included in the email that is sent. 457# It is possible that the log may be very large, in which case, 458# only the last amount of the log should be sent. To limit how 459# much of the log is sent, set MAIL_MAX_SIZE. This will be the 460# size in bytes of the last portion of the log of the failed 461# test file. That is, if this is set to 100000, then only the 462# last 100 thousand bytes of the log file will be included in 463# the email. 464# (default undef) 465#MAIL_MAX_SIZE = 1000000 466 467# Start a test setup. If you leave this off, all options 468# will be default and the test will run once. 469# This is a label and not really an option (it takes no value). 470# You can append ITERATE and a number after it to iterate the 471# test a number of times, or SKIP to ignore this test. 472# 473#TEST_START 474#TEST_START ITERATE 5 475#TEST_START SKIP 476 477# Have the following options as default again. Used after tests 478# have already been defined by TEST_START. Optionally, you can 479# just define all default options before the first TEST_START 480# and you do not need this option. 481# 482# This is a label and not really an option (it takes no value). 483# You can append SKIP to this label and the options within this 484# section will be ignored. 485# 486# DEFAULTS 487# DEFAULTS SKIP 488 489# If you want to execute some command before the first test runs 490# you can set this option. Note, it can be set as a default option 491# or an option in the first test case. All other test cases will 492# ignore it. If both the default and first test have this option 493# set, then the first test will take precedence. 494# 495# default (undefined) 496#PRE_KTEST = ${SSH} ~/set_up_test 497# 498# To specify if the test should fail if PRE_KTEST fails, 499# PRE_KTEST_DIE needs to be set to 1. Otherwise the PRE_KTEST 500# result is ignored. 501# (default 0) 502#PRE_KTEST_DIE = 1 503 504# If you want to execute some command after all the tests have 505# completed, you can set this option. Note, it can be set as a 506# default or any test case can override it. If multiple test cases 507# set this option, then the last test case that set it will take 508# precedence 509# 510# default (undefined) 511#POST_KTEST = ${SSH} ~/dismantle_test 512 513# If you want to remove the kernel entry in Boot Loader Specification (BLS) 514# environment, use kernel-install command. 515# Here's the example: 516#POST_KTEST = ssh root@Test "/usr/bin/kernel-install remove $KERNEL_VERSION" 517 518# The default test type (default test) 519# The test types may be: 520# build - only build the kernel, do nothing else 521# install - build and install, but do nothing else (does not reboot) 522# boot - build, install, and boot the kernel 523# test - build, boot and if TEST is set, run the test script 524# (If TEST is not set, it defaults back to boot) 525# bisect - Perform a bisect on the kernel (see BISECT_TYPE below) 526# patchcheck - Do a test on a series of commits in git (see PATCHCHECK below) 527#TEST_TYPE = test 528 529# Test to run if there is a successful boot and TEST_TYPE is test. 530# Must exit with 0 on success and non zero on error 531# default (undefined) 532#TEST = ssh user@machine /root/run_test 533 534# The build type is any make config type or special command 535# (default oldconfig) 536# nobuild - skip the clean and build step 537# useconfig:/path/to/config - use the given config and run 538# oldconfig on it. 539# This option is ignored if TEST_TYPE is patchcheck or bisect 540#BUILD_TYPE = randconfig 541 542# The make command (default make) 543# If you are building a 32bit x86 on a 64 bit host 544#MAKE_CMD = CC=i386-gcc AS=i386-as make ARCH=i386 545 546# Any build options for the make of the kernel (not for other makes, like configs) 547# (default "") 548#BUILD_OPTIONS = -j20 549 550# If you need to do some special handling before installing 551# you can add a script with this option. 552# The environment variable KERNEL_VERSION will be set to the 553# kernel version that is used. 554# 555# default (undefined) 556#PRE_INSTALL = ssh user@target rm -rf '/lib/modules/*-test*' 557 558# If you need an initrd, you can add a script or code here to install 559# it. The environment variable KERNEL_VERSION will be set to the 560# kernel version that is used. Remember to add the initrd line 561# to your grub menu.lst file. 562# 563# Here's a couple of examples to use: 564#POST_INSTALL = ssh user@target /sbin/mkinitrd --allow-missing -f /boot/initramfs-test.img $KERNEL_VERSION 565# 566# or on some systems: 567#POST_INSTALL = ssh user@target /sbin/dracut -f /boot/initramfs-test.img $KERNEL_VERSION 568 569# If you want to add the kernel entry in Boot Loader Specification (BLS) 570# environment, use kernel-install command. 571# Here's the example: 572#POST_INSTALL = ssh root@Test "/usr/bin/kernel-install add $KERNEL_VERSION /boot/vmlinuz-$KERNEL_VERSION" 573 574# If for some reason you just want to boot the kernel and you do not 575# want the test to install anything new. For example, you may just want 576# to boot test the same kernel over and over and do not want to go through 577# the hassle of installing anything, you can set this option to 1 578# (default 0) 579#NO_INSTALL = 1 580 581# If there is a command that you want to run before the individual test 582# case executes, then you can set this option 583# 584# default (undefined) 585#PRE_TEST = ${SSH} reboot_to_special_kernel 586 587# To kill the entire test if PRE_TEST is defined but fails set this 588# to 1. 589# (default 0) 590#PRE_TEST_DIE = 1 591 592# If there is a command you want to run after the individual test case 593# completes, then you can set this option. 594# 595# default (undefined) 596#POST_TEST = cd ${BUILD_DIR}; git reset --hard 597 598# If there is a script that you require to run before the build is done 599# you can specify it with PRE_BUILD. 600# 601# One example may be if you must add a temporary patch to the build to 602# fix a unrelated bug to perform a patchcheck test. This will apply the 603# patch before each build that is made. Use the POST_BUILD to do a git reset --hard 604# to remove the patch. 605# 606# (default undef) 607#PRE_BUILD = cd ${BUILD_DIR} && patch -p1 < /tmp/temp.patch 608 609# To specify if the test should fail if the PRE_BUILD fails, 610# PRE_BUILD_DIE needs to be set to 1. Otherwise the PRE_BUILD 611# result is ignored. 612# (default 0) 613# PRE_BUILD_DIE = 1 614 615# If there is a script that should run after the build is done 616# you can specify it with POST_BUILD. 617# 618# As the example in PRE_BUILD, POST_BUILD can be used to reset modifications 619# made by the PRE_BUILD. 620# 621# (default undef) 622#POST_BUILD = cd ${BUILD_DIR} && git reset --hard 623 624# To specify if the test should fail if the POST_BUILD fails, 625# POST_BUILD_DIE needs to be set to 1. Otherwise the POST_BUILD 626# result is ignored. 627# (default 0) 628#POST_BUILD_DIE = 1 629 630# Way to reboot the box to the test kernel. 631# Only valid options so far are "grub", "grub2", "syslinux" and "script" 632# (default grub) 633# If you specify grub, it will assume grub version 1 634# and will search in /boot/grub/menu.lst for the title $GRUB_MENU 635# and select that target to reboot to the kernel. If this is not 636# your setup, then specify "script" and have a command or script 637# specified in REBOOT_SCRIPT to boot to the target. 638# 639# For REBOOT_TYPE = grub2, you must define both GRUB_MENU and 640# GRUB_FILE. 641# 642# For REBOOT_TYPE = grub2bls, you must define GRUB_MENU. 643# 644# For REBOOT_TYPE = syslinux, you must define SYSLINUX_LABEL, and 645# perhaps modify SYSLINUX (default extlinux) and SYSLINUX_PATH 646# (default /boot/extlinux) 647# 648# The entry in /boot/grub/menu.lst must be entered in manually. 649# The test will not modify that file. 650#REBOOT_TYPE = grub 651 652# If you are using a machine that doesn't boot with grub, and 653# perhaps gets its kernel from a remote server (tftp), then 654# you can use this option to update the target image with the 655# test image. 656# 657# You could also do the same with POST_INSTALL, but the difference 658# between that option and this option is that POST_INSTALL runs 659# after the install, where this one runs just before a reboot. 660# (default undefined) 661#SWITCH_TO_TEST = cp ${OUTPUT_DIR}/${BUILD_TARGET} ${TARGET_IMAGE} 662 663# If you are using a machine that doesn't boot with grub, and 664# perhaps gets its kernel from a remote server (tftp), then 665# you can use this option to update the target image with the 666# the known good image to reboot safely back into. 667# 668# This option holds a command that will execute before needing 669# to reboot to a good known image. 670# (default undefined) 671#SWITCH_TO_GOOD = ssh ${SSH_USER}/${MACHINE} cp good_image ${TARGET_IMAGE} 672 673# The min config that is needed to build for the machine 674# A nice way to create this is with the following: 675# 676# $ ssh target 677# $ lsmod > mymods 678# $ scp mymods host:/tmp 679# $ exit 680# $ cd linux.git 681# $ rm .config 682# $ make LSMOD=mymods localyesconfig 683# $ grep '^CONFIG' .config > /home/test/config-min 684# 685# If you want even less configs: 686# 687# log in directly to target (do not ssh) 688# 689# $ su 690# # lsmod | cut -d' ' -f1 | xargs rmmod 691# 692# repeat the above several times 693# 694# # lsmod > mymods 695# # reboot 696# 697# May need to reboot to get your network back to copy the mymods 698# to the host, and then remove the previous .config and run the 699# localyesconfig again. The CONFIG_MIN generated like this will 700# not guarantee network activity to the box so the TEST_TYPE of 701# test may fail. 702# 703# You might also want to set: 704# CONFIG_CMDLINE="<your options here>" 705# randconfig may set the above and override your real command 706# line options. 707# (default undefined) 708#MIN_CONFIG = /home/test/config-min 709 710# Sometimes there's options that just break the boot and 711# you do not care about. Here are a few: 712# # CONFIG_STAGING is not set 713# Staging drivers are horrible, and can break the build. 714# # CONFIG_SCSI_DEBUG is not set 715# SCSI_DEBUG may change your root partition 716# # CONFIG_KGDB_SERIAL_CONSOLE is not set 717# KGDB may cause oops waiting for a connection that's not there. 718# This option points to the file containing config options that will be prepended 719# to the MIN_CONFIG (or be the MIN_CONFIG if it is not set) 720# 721# Note, config options in MIN_CONFIG will override these options. 722# 723# (default undefined) 724#ADD_CONFIG = /home/test/config-broken 725 726# The location on the host where to write temp files 727# (default /tmp/ktest/${MACHINE}) 728#TMP_DIR = /tmp/ktest/${MACHINE} 729 730# Optional log file to write the status (recommended) 731# Note, this is a DEFAULT section only option. 732# (default undefined) 733#LOG_FILE = /home/test/logfiles/target.log 734 735# Remove old logfile if it exists before starting all tests. 736# Note, this is a DEFAULT section only option. 737# (default 0) 738#CLEAR_LOG = 0 739 740# Line to define a successful boot up in console output. 741# This is what the line contains, not the entire line. If you need 742# the entire line to match, then use regular expression syntax like: 743# (do not add any quotes around it) 744# 745# SUCCESS_LINE = ^MyBox Login:$ 746# 747# (default "login:") 748#SUCCESS_LINE = login: 749 750# To speed up between reboots, defining a line that the 751# default kernel produces that represents that the default 752# kernel has successfully booted and can be used to pass 753# a new test kernel to it. Otherwise ktest.pl will wait till 754# SLEEP_TIME to continue. 755# (default undefined) 756#REBOOT_SUCCESS_LINE = login: 757 758# In case the console constantly fills the screen, having 759# a specified time to stop the test after success is recommended. 760# (in seconds) 761# (default 10) 762#STOP_AFTER_SUCCESS = 10 763 764# In case the console constantly fills the screen, having 765# a specified time to stop the test after failure is recommended. 766# (in seconds) 767# (default 60) 768#STOP_AFTER_FAILURE = 60 769 770# In case the console constantly fills the screen, having 771# a specified time to stop the test if it never succeeds nor fails 772# is recommended. 773# Note: this is ignored if a success or failure is detected. 774# (in seconds) 775# (default 600, -1 is to never stop) 776#STOP_TEST_AFTER = 600 777 778# Stop testing if a build fails. If set, the script will end if 779# a failure is detected, otherwise it will save off the .config, 780# dmesg and bootlog in a directory called 781# MACHINE-TEST_TYPE_BUILD_TYPE-fail-yyyymmddhhmmss 782# if the STORE_FAILURES directory is set. 783# (default 1) 784# Note, even if this is set to zero, there are some errors that still 785# stop the tests. 786#DIE_ON_FAILURE = 1 787 788# Directory to store failure directories on failure. If this is not 789# set, DIE_ON_FAILURE=0 will not save off the .config, dmesg and 790# bootlog. This option is ignored if DIE_ON_FAILURE is not set. 791# (default undefined) 792#STORE_FAILURES = /home/test/failures 793 794# Directory to store success directories on success. If this is not 795# set, the .config, dmesg and bootlog will not be saved if a 796# test succeeds. 797# (default undefined) 798#STORE_SUCCESSES = /home/test/successes 799 800# Build without doing a make mrproper, or removing .config 801# (default 0) 802#BUILD_NOCLEAN = 0 803 804# As the test reads the console, after it hits the SUCCESS_LINE 805# the time it waits for the monitor to settle down between reads 806# can usually be lowered. 807# (in seconds) (default 1) 808#BOOTED_TIMEOUT = 1 809 810# The timeout in seconds when we consider the box hung after 811# the console stop producing output. Be sure to leave enough 812# time here to get pass a reboot. Some machines may not produce 813# any console output for a long time during a reboot. You do 814# not want the test to fail just because the system was in 815# the process of rebooting to the test kernel. 816# (default 120) 817#TIMEOUT = 120 818 819# The timeout in seconds when to test if the box can be rebooted 820# or not. Before issuing the reboot command, a ssh connection 821# is attempted to see if the target machine is still active. 822# If the target does not connect within this timeout, a power cycle 823# is issued instead of a reboot. 824# CONNECT_TIMEOUT = 25 825 826# The timeout in seconds for how long to wait for any running command 827# to timeout. If not defined, it will let it go indefinitely. 828# (default undefined) 829#RUN_TIMEOUT = 600 830 831# In between tests, a reboot of the box may occur, and this 832# is the time to wait for the console after it stops producing 833# output. Some machines may not produce a large lag on reboot 834# so this should accommodate it. 835# The difference between this and TIMEOUT, is that TIMEOUT happens 836# when rebooting to the test kernel. This sleep time happens 837# after a test has completed and we are about to start running 838# another test. If a reboot to the reliable kernel happens, 839# we wait SLEEP_TIME for the console to stop producing output 840# before starting the next test. 841# 842# You can speed up reboot times even more by setting REBOOT_SUCCESS_LINE. 843# (default 60) 844#SLEEP_TIME = 60 845 846# The time in between bisects to sleep (in seconds) 847# (default 60) 848#BISECT_SLEEP_TIME = 60 849 850# The max wait time (in seconds) for waiting for the console to finish. 851# If for some reason, the console is outputting content without 852# ever finishing, this will cause ktest to get stuck. This 853# option is the max time ktest will wait for the monitor (console) 854# to settle down before continuing. 855# (default 1800) 856#MAX_MONITOR_WAIT 857 858# The time in between patch checks to sleep (in seconds) 859# (default 60) 860#PATCHCHECK_SLEEP_TIME = 60 861 862# Reboot the target box on error (default 0) 863#REBOOT_ON_ERROR = 0 864 865# Power off the target on error (ignored if REBOOT_ON_ERROR is set) 866# Note, this is a DEFAULT section only option. 867# (default 0) 868#POWEROFF_ON_ERROR = 0 869 870# Power off the target after all tests have completed successfully 871# Note, this is a DEFAULT section only option. 872# (default 0) 873#POWEROFF_ON_SUCCESS = 0 874 875# Reboot the target after all test completed successfully (default 1) 876# (ignored if POWEROFF_ON_SUCCESS is set) 877#REBOOT_ON_SUCCESS = 1 878 879# In case there are issues with rebooting, you can specify this 880# to always powercycle after this amount of time after calling 881# reboot. 882# Note, POWERCYCLE_AFTER_REBOOT = 0 does NOT disable it. It just 883# makes it powercycle immediately after rebooting. Do not define 884# it if you do not want it. 885# (default undefined) 886#POWERCYCLE_AFTER_REBOOT = 5 887 888# In case there's issues with halting, you can specify this 889# to always poweroff after this amount of time after calling 890# halt. 891# Note, POWEROFF_AFTER_HALT = 0 does NOT disable it. It just 892# makes it poweroff immediately after halting. Do not define 893# it if you do not want it. 894# (default undefined) 895#POWEROFF_AFTER_HALT = 20 896 897# A script or command to power off the box (default undefined) 898# Needed for POWEROFF_ON_ERROR and SUCCESS 899# 900# Example for digital loggers power switch: 901#POWER_OFF = wget --no-proxy -O /dev/null -q --auth-no-challenge 'http://admin:admin@power/outlet?5=OFF' 902# 903# Example for a virtual guest call "Guest". 904#POWER_OFF = virsh destroy Guest 905 906# To have the build fail on "new" warnings, create a file that 907# contains a list of all known warnings (they must match exactly 908# to the line with 'warning:', 'error:' or 'Error:'. If the option 909# WARNINGS_FILE is set, then that file will be read, and if the 910# build detects a warning, it will examine this file and if the 911# warning does not exist in it, it will fail the build. 912# 913# Note, if this option is defined to a file that does not exist 914# then any warning will fail the build. 915# (see make_warnings_file below) 916# 917# (optional, default undefined) 918#WARNINGS_FILE = ${OUTPUT_DIR}/warnings_file 919 920# The way to execute a command on the target 921# (default ssh $SSH_USER@$MACHINE $SSH_COMMAND";) 922# The variables SSH_USER, MACHINE and SSH_COMMAND are defined 923#SSH_EXEC = ssh $SSH_USER@$MACHINE $SSH_COMMAND"; 924 925# The way to copy a file to the target (install and modules) 926# (default scp $SRC_FILE $SSH_USER@$MACHINE:$DST_FILE) 927# The variables SSH_USER, MACHINE are defined by the config 928# SRC_FILE and DST_FILE are ktest internal variables and 929# should only have '$' and not the '${}' notation. 930# (default scp $SRC_FILE ${SSH_USER}@${MACHINE}:$DST_FILE) 931#SCP_TO_TARGET = echo skip scp for $SRC_FILE $DST_FILE 932 933# If install needs to be different than modules, then this 934# option will override the SCP_TO_TARGET for installation. 935# (default ${SCP_TO_TARGET} ) 936#SCP_TO_TARGET_INSTALL = scp $SRC_FILE tftp@tftpserver:$DST_FILE 937 938# The nice way to reboot the target 939# (default ssh $SSH_USER@$MACHINE reboot) 940# The variables SSH_USER and MACHINE are defined. 941#REBOOT = ssh $SSH_USER@$MACHINE reboot 942 943# The return code of REBOOT 944# (default 255) 945#REBOOT_RETURN_CODE = 255 946 947# The way triple faults are detected is by testing the kernel 948# banner. If the kernel banner for the kernel we are testing is 949# found, and then later a kernel banner for another kernel version 950# is found, it is considered that we encountered a triple fault, 951# and there is no panic or callback, but simply a reboot. 952# To disable this (because it did a false positive) set the following 953# to 0. 954# (default 1) 955#DETECT_TRIPLE_FAULT = 0 956 957# All options in the config file should be either used by ktest 958# or could be used within a value of another option. If an option 959# in the config file is not used, ktest will warn about it and ask 960# if you want to continue. 961# 962# If you don't care if there are non-used options, enable this 963# option. Be careful though, a non-used option is usually a sign 964# of an option name being typed incorrectly. 965# (default 0) 966#IGNORE_UNUSED = 1 967 968# When testing a kernel that happens to have WARNINGs, and call 969# traces, ktest.pl will detect these and fail a boot or test run 970# due to warnings. By setting this option, ktest will ignore 971# call traces, and will not fail a test if the kernel produces 972# an oops. Use this option with care. 973# (default 0) 974#IGNORE_ERRORS = 1 975 976#### Per test run options #### 977# The following options are only allowed in TEST_START sections. 978# They are ignored in the DEFAULTS sections. 979# 980# All of these are optional and undefined by default, although 981# some of these options are required for TEST_TYPE of patchcheck 982# and bisect. 983# 984# 985# CHECKOUT = branch 986# 987# If the BUILD_DIR is a git repository, then you can set this option 988# to checkout the given branch before running the TEST. If you 989# specify this for the first run, that branch will be used for 990# all preceding tests until a new CHECKOUT is set. 991# 992# 993# TEST_NAME = name 994# 995# If you want the test to have a name that is displayed in 996# the test result banner at the end of the test, then use this 997# option. This is useful to search for the RESULT keyword and 998# not have to translate a test number to a test in the config. 999# 1000# For TEST_TYPE = patchcheck 1001# 1002# This expects the BUILD_DIR to be a git repository, and 1003# will checkout the PATCHCHECK_START commit. 1004# 1005# The option BUILD_TYPE will be ignored. 1006# 1007# The MIN_CONFIG will be used for all builds of the patchcheck. The build type 1008# used for patchcheck is oldconfig. 1009# 1010# PATCHCHECK_START is required and is the first patch to 1011# test (the SHA1 of the commit). You may also specify anything 1012# that git checkout allows (branch name, tag, HEAD~3). 1013# 1014# PATCHCHECK_END is the last patch to check (default HEAD) 1015# 1016# PATCHCHECK_CHERRY if set to non zero, then git cherry will be 1017# performed against PATCHCHECK_START and PATCHCHECK_END. That is 1018# 1019# git cherry ${PATCHCHECK_START} ${PATCHCHECK_END} 1020# 1021# Then the changes found will be tested. 1022# 1023# Note, PATCHCHECK_CHERRY requires PATCHCHECK_END to be defined. 1024# (default 0) 1025# 1026# PATCHCHECK_SKIP is an optional list of shas to skip testing 1027# 1028# PATCHCHECK_TYPE is required and is the type of test to run: 1029# build, boot, test. 1030# 1031# Note, the build test will look for warnings, if a warning occurred 1032# in a file that a commit touches, the build will fail, unless 1033# IGNORE_WARNINGS is set for the given commit's sha1 1034# 1035# IGNORE_WARNINGS can be used to disable the failure of patchcheck 1036# on a particular commit (SHA1). You can add more than one commit 1037# by adding a list of SHA1s that are space delimited. 1038# 1039# If BUILD_NOCLEAN is set, then make mrproper will not be run on 1040# any of the builds, just like all other TEST_TYPE tests. But 1041# what makes patchcheck different from the other tests, is if 1042# BUILD_NOCLEAN is not set, only the first and last patch run 1043# make mrproper. This helps speed up the test. 1044# 1045# Example: 1046# TEST_START 1047# TEST_TYPE = patchcheck 1048# CHECKOUT = mybranch 1049# PATCHCHECK_TYPE = boot 1050# PATCHCHECK_START = 747e94ae3d1b4c9bf5380e569f614eb9040b79e7 1051# PATCHCHECK_END = HEAD~2 1052# IGNORE_WARNINGS = 42f9c6b69b54946ffc0515f57d01dc7f5c0e4712 0c17ca2c7187f431d8ffc79e81addc730f33d128 1053# 1054# 1055# 1056# For TEST_TYPE = bisect 1057# 1058# You can specify a git bisect if the BUILD_DIR is a git repository. 1059# The MIN_CONFIG will be used for all builds of the bisect. The build type 1060# used for bisecting is oldconfig. 1061# 1062# The option BUILD_TYPE will be ignored. 1063# 1064# BISECT_TYPE is the type of test to perform: 1065# build - bad fails to build 1066# boot - bad builds but fails to boot 1067# test - bad boots but fails a test 1068# 1069# BISECT_GOOD is the commit (SHA1) to label as good (accepts all git good commit types) 1070# BISECT_BAD is the commit to label as bad (accepts all git bad commit types) 1071# 1072# The above three options are required for a bisect operation. 1073# 1074# BISECT_REPLAY = /path/to/replay/file (optional, default undefined) 1075# 1076# If an operation failed in the bisect that was not expected to 1077# fail. Then the test ends. The state of the BUILD_DIR will be 1078# left off at where the failure occurred. You can examine the 1079# reason for the failure, and perhaps even find a git commit 1080# that would work to continue with. You can run: 1081# 1082# git bisect log > /path/to/replay/file 1083# 1084# The adding: 1085# 1086# BISECT_REPLAY= /path/to/replay/file 1087# 1088# And running the test again. The test will perform the initial 1089# git bisect start, git bisect good, and git bisect bad, and 1090# then it will run git bisect replay on this file, before 1091# continuing with the bisect. 1092# 1093# BISECT_START = commit (optional, default undefined) 1094# 1095# As with BISECT_REPLAY, if the test failed on a commit that 1096# just happen to have a bad commit in the middle of the bisect, 1097# and you need to skip it. If BISECT_START is defined, it 1098# will checkout that commit after doing the initial git bisect start, 1099# git bisect good, git bisect bad, and running the git bisect replay 1100# if the BISECT_REPLAY is set. 1101# 1102# BISECT_SKIP = 1 (optional, default 0) 1103# 1104# If BISECT_TYPE is set to test but the build fails, ktest will 1105# simply fail the test and end their. You could use BISECT_REPLAY 1106# and BISECT_START to resume after you found a new starting point, 1107# or you could set BISECT_SKIP to 1. If BISECT_SKIP is set to 1, 1108# when something other than the BISECT_TYPE fails, ktest.pl will 1109# run "git bisect skip" and try again. 1110# 1111# BISECT_FILES = <path> (optional, default undefined) 1112# 1113# To just run the git bisect on a specific path, set BISECT_FILES. 1114# For example: 1115# 1116# BISECT_FILES = arch/x86 kernel/time 1117# 1118# Will run the bisect with "git bisect start -- arch/x86 kernel/time" 1119# 1120# BISECT_REVERSE = 1 (optional, default 0) 1121# 1122# In those strange instances where it was broken forever 1123# and you are trying to find where it started to work! 1124# Set BISECT_GOOD to the commit that was last known to fail 1125# Set BISECT_BAD to the commit that is known to start working. 1126# With BISECT_REVERSE = 1, The test will consider failures as 1127# good, and success as bad. 1128# 1129# BISECT_MANUAL = 1 (optional, default 0) 1130# 1131# In case there's a problem with automating the bisect for 1132# whatever reason. (Can't reboot, want to inspect each iteration) 1133# Doing a BISECT_MANUAL will have the test wait for you to 1134# tell it if the test passed or failed after each iteration. 1135# This is basically the same as running git bisect yourself 1136# but ktest will rebuild and install the kernel for you. 1137# 1138# BISECT_CHECK = 1 (optional, default 0) 1139# 1140# Just to be sure the good is good and bad is bad, setting 1141# BISECT_CHECK to 1 will start the bisect by first checking 1142# out BISECT_BAD and makes sure it fails, then it will check 1143# out BISECT_GOOD and makes sure it succeeds before starting 1144# the bisect (it works for BISECT_REVERSE too). 1145# 1146# You can limit the test to just check BISECT_GOOD or 1147# BISECT_BAD with BISECT_CHECK = good or 1148# BISECT_CHECK = bad, respectively. 1149# 1150# BISECT_TRIES = 5 (optional, default 1) 1151# 1152# For those cases that it takes several tries to hit a bug, 1153# the BISECT_TRIES is useful. It is the number of times the 1154# test is ran before it says the kernel is good. The first failure 1155# will stop trying and mark the current SHA1 as bad. 1156# 1157# Note, as with all race bugs, there's no guarantee that if 1158# it succeeds, it is really a good bisect. But it helps in case 1159# the bug is some what reliable. 1160# 1161# You can set BISECT_TRIES to zero, and all tests will be considered 1162# good, unless you also set BISECT_MANUAL. 1163# 1164# BISECT_RET_GOOD = 0 (optional, default undefined) 1165# 1166# In case the specificed test returns something other than just 1167# 0 for good, and non-zero for bad, you can override 0 being 1168# good by defining BISECT_RET_GOOD. 1169# 1170# BISECT_RET_BAD = 1 (optional, default undefined) 1171# 1172# In case the specificed test returns something other than just 1173# 0 for good, and non-zero for bad, you can override non-zero being 1174# bad by defining BISECT_RET_BAD. 1175# 1176# BISECT_RET_ABORT = 255 (optional, default undefined) 1177# 1178# If you need to abort the bisect if the test discovers something 1179# that was wrong, you can define BISECT_RET_ABORT to be the error 1180# code returned by the test in order to abort the bisect. 1181# 1182# BISECT_RET_SKIP = 2 (optional, default undefined) 1183# 1184# If the test detects that the current commit is neither good 1185# nor bad, but something else happened (another bug detected) 1186# you can specify BISECT_RET_SKIP to an error code that the 1187# test returns when it should skip the current commit. 1188# 1189# BISECT_RET_DEFAULT = good (optional, default undefined) 1190# 1191# You can override the default of what to do when the above 1192# options are not hit. This may be one of, "good", "bad", 1193# "abort" or "skip" (without the quotes). 1194# 1195# Note, if you do not define any of the previous BISECT_RET_* 1196# and define BISECT_RET_DEFAULT, all bisects results will do 1197# what the BISECT_RET_DEFAULT has. 1198# 1199# 1200# Example: 1201# TEST_START 1202# TEST_TYPE = bisect 1203# BISECT_GOOD = v2.6.36 1204# BISECT_BAD = b5153163ed580e00c67bdfecb02b2e3843817b3e 1205# BISECT_TYPE = build 1206# MIN_CONFIG = /home/test/config-bisect 1207# 1208# 1209# 1210# For TEST_TYPE = config_bisect 1211# 1212# In those cases that you have two different configs. One of them 1213# work, the other does not, and you do not know what config causes 1214# the problem. 1215# The TEST_TYPE config_bisect will bisect the bad config looking for 1216# what config causes the failure. 1217# 1218# The way it works is this: 1219# 1220# You can specify a good config with CONFIG_BISECT_GOOD, otherwise it 1221# will use the MIN_CONFIG, and if that's not specified, it will use 1222# the config that comes with "make defconfig". 1223# 1224# It runs both the good and bad configs through a make oldconfig to 1225# make sure that they are set up for the kernel that is checked out. 1226# 1227# It then reads the configs that are set, as well as the ones that are 1228# not set for both the good and bad configs, and then compares them. 1229# It will set half of the good configs within the bad config (note, 1230# "set" means to make the bad config match the good config, a config 1231# in the good config that is off, will be turned off in the bad 1232# config. That is considered a "set"). 1233# 1234# It tests this new config and if it works, it becomes the new good 1235# config, otherwise it becomes the new bad config. It continues this 1236# process until there's only one config left and it will report that 1237# config. 1238# 1239# The "bad config" can also be a config that is needed to boot but was 1240# disabled because it depended on something that wasn't set. 1241# 1242# During this process, it saves the current good and bad configs in 1243# ${TMP_DIR}/good_config and ${TMP_DIR}/bad_config respectively. 1244# If you stop the test, you can copy them to a new location to 1245# reuse them again. 1246# 1247# Although the MIN_CONFIG may be the config it starts with, the 1248# MIN_CONFIG is ignored. 1249# 1250# The option BUILD_TYPE will be ignored. 1251# 1252# CONFIG_BISECT_TYPE is the type of test to perform: 1253# build - bad fails to build 1254# boot - bad builds but fails to boot 1255# test - bad boots but fails a test 1256# 1257# CONFIG_BISECT is the config that failed to boot 1258# 1259# If BISECT_MANUAL is set, it will pause between iterations. 1260# This is useful to use just ktest.pl just for the config bisect. 1261# If you set it to build, it will run the bisect and you can 1262# control what happens in between iterations. It will ask you if 1263# the test succeeded or not and continue the config bisect. 1264# 1265# CONFIG_BISECT_GOOD (optional) 1266# If you have a good config to start with, then you 1267# can specify it with CONFIG_BISECT_GOOD. Otherwise 1268# the MIN_CONFIG is the base, if MIN_CONFIG is not set 1269# It will build a config with "make defconfig" 1270# 1271# CONFIG_BISECT_CHECK (optional) 1272# Set this to 1 if you want to confirm that the config ktest 1273# generates (the bad config with the min config) is still bad. 1274# It may be that the min config fixes what broke the bad config 1275# and the test will not return a result. 1276# Set it to "good" to test only the good config and set it 1277# to "bad" to only test the bad config. 1278# 1279# CONFIG_BISECT_EXEC (optional) 1280# The config bisect is a separate program that comes with ktest.pl. 1281# By default, it will look for: 1282# `pwd`/config-bisect.pl # the location ktest.pl was executed from. 1283# If it does not find it there, it will look for: 1284# `dirname <ktest.pl>`/config-bisect.pl # The directory that holds ktest.pl 1285# If it does not find it there, it will look for: 1286# ${BUILD_DIR}/tools/testing/ktest/config-bisect.pl 1287# Setting CONFIG_BISECT_EXEC will override where it looks. 1288# 1289# Example: 1290# TEST_START 1291# TEST_TYPE = config_bisect 1292# CONFIG_BISECT_TYPE = build 1293# CONFIG_BISECT = /home/test/config-bad 1294# MIN_CONFIG = /home/test/config-min 1295# BISECT_MANUAL = 1 1296# 1297# 1298# 1299# For TEST_TYPE = make_min_config 1300# 1301# After doing a make localyesconfig, your kernel configuration may 1302# not be the most useful minimum configuration. Having a true minimum 1303# config that you can use against other configs is very useful if 1304# someone else has a config that breaks on your code. By only forcing 1305# those configurations that are truly required to boot your machine 1306# will give you less of a chance that one of your set configurations 1307# will make the bug go away. This will give you a better chance to 1308# be able to reproduce the reported bug matching the broken config. 1309# 1310# Note, this does take some time, and may require you to run the 1311# test over night, or perhaps over the weekend. But it also allows 1312# you to interrupt it, and gives you the current minimum config 1313# that was found till that time. 1314# 1315# Note, this test automatically assumes a BUILD_TYPE of oldconfig 1316# and its test type acts like boot. 1317# TODO: add a test version that makes the config do more than just 1318# boot, like having network access. 1319# 1320# To save time, the test does not just grab any option and test 1321# it. The Kconfig files are examined to determine the dependencies 1322# of the configs. If a config is chosen that depends on another 1323# config, that config will be checked first. By checking the 1324# parents first, we can eliminate whole groups of configs that 1325# may have been enabled. 1326# 1327# For example, if a USB device config is chosen and depends on CONFIG_USB, 1328# the CONFIG_USB will be tested before the device. If CONFIG_USB is 1329# found not to be needed, it, as well as all configs that depend on 1330# it, will be disabled and removed from the current min_config. 1331# 1332# OUTPUT_MIN_CONFIG is the path and filename of the file that will 1333# be created from the MIN_CONFIG. If you interrupt the test, set 1334# this file as your new min config, and use it to continue the test. 1335# This file does not need to exist on start of test. 1336# This file is not created until a config is found that can be removed. 1337# If this file exists, you will be prompted if you want to use it 1338# as the min_config (overriding MIN_CONFIG) if START_MIN_CONFIG 1339# is not defined. 1340# (required field) 1341# 1342# START_MIN_CONFIG is the config to use to start the test with. 1343# you can set this as the same OUTPUT_MIN_CONFIG, but if you do 1344# the OUTPUT_MIN_CONFIG file must exist. 1345# (default MIN_CONFIG) 1346# 1347# IGNORE_CONFIG is used to specify a config file that has configs that 1348# you already know must be set. Configs are written here that have 1349# been tested and proved to be required. It is best to define this 1350# file if you intend on interrupting the test and running it where 1351# it left off. New configs that it finds will be written to this file 1352# and will not be tested again in later runs. 1353# (optional) 1354# 1355# MIN_CONFIG_TYPE can be either 'boot' or 'test'. With 'boot' it will 1356# test if the created config can just boot the machine. If this is 1357# set to 'test', then the TEST option must be defined and the created 1358# config will not only boot the target, but also make sure that the 1359# config lets the test succeed. This is useful to make sure the final 1360# config that is generated allows network activity (ssh). 1361# (optional) 1362# 1363# USE_OUTPUT_MIN_CONFIG set this to 1 if you do not want to be prompted 1364# about using the OUTPUT_MIN_CONFIG as the MIN_CONFIG as the starting 1365# point. Set it to 0 if you want to always just use the given MIN_CONFIG. 1366# If it is not defined, it will prompt you to pick which config 1367# to start with (MIN_CONFIG or OUTPUT_MIN_CONFIG). 1368# 1369# Example: 1370# 1371# TEST_TYPE = make_min_config 1372# OUTPUT_MIN_CONFIG = /path/to/config-new-min 1373# START_MIN_CONFIG = /path/to/config-min 1374# IGNORE_CONFIG = /path/to/config-tested 1375# MIN_CONFIG_TYPE = test 1376# TEST = ssh ${USER}@${MACHINE} echo hi 1377# 1378# 1379# 1380# 1381# For TEST_TYPE = make_warnings_file 1382# 1383# If you want the build to fail when a new warning is discovered 1384# you set the WARNINGS_FILE to point to a file of known warnings. 1385# 1386# The test "make_warnings_file" will let you create a new warnings 1387# file before you run other tests, like patchcheck. 1388# 1389# What this test does is to run just a build, you still need to 1390# specify BUILD_TYPE to tell the test what type of config to use. 1391# A BUILD_TYPE of nobuild will fail this test. 1392# 1393# The test will do the build and scan for all warnings. Any warning 1394# it discovers will be saved in the WARNINGS_FILE (required) option. 1395# 1396# It is recommended (but not necessary) to make sure BUILD_NOCLEAN is 1397# off, so that a full build is done (make mrproper is performed). 1398# That way, all warnings will be captured. 1399# 1400# Example: 1401# 1402# TEST_TYPE = make_warnings_file 1403# WARNINGS_FILE = ${OUTPUT_DIR} 1404# BUILD_TYPE = useconfig:oldconfig 1405# CHECKOUT = v3.8 1406# BUILD_NOCLEAN = 0 1407# 1408