Path: blob/master/tools/testing/ktest/examples/include/tests.conf
26299 views
#1# This is an example of various tests that you can run2#3# The variable TEST can be of boot, build, randconfig, or test.4#5# Note that TEST is a variable created with ':=' and only exists6# throughout the config processing (not during the tests itself).7#8# The TEST option (defined with '=') is used to tell ktest.pl9# what test to run after a successful boot. The TEST option is10# persistent into the test runs.11#1213# The config that includes this file may define a BOOT_TYPE14# variable that tells this config what type of boot test to run.15# If it's not defined, the below DEFAULTS will set the default16# to 'oldconfig'.17#18DEFAULTS IF NOT DEFINED BOOT_TYPE19BOOT_TYPE := oldconfig2021# The config that includes this file may define a RUN_TEST22# variable that will tell this config what test to run.23# (what to set the TEST option to).24#25DEFAULTS IF NOT DEFINED RUN_TEST26# Requires that hackbench is in the PATH27RUN_TEST := ${SSH} hackbench 50282930# If TEST is set to 'boot' then just build a kernel and boot31# the target.32TEST_START IF ${TEST} == boot33TEST_TYPE = boot34# Notice how we set the BUILD_TYPE option to the BOOT_TYPE variable.35BUILD_TYPE = ${BOOT_TYPE}36# Do not do a make mrproper.37BUILD_NOCLEAN = 13839# If you only want to build the kernel, and perhaps install40# and test it yourself, then just set TEST to build.41TEST_START IF ${TEST} == build42TEST_TYPE = build43BUILD_TYPE = ${BOOT_TYPE}44BUILD_NOCLEAN = 14546# Build, install, boot and test with a randconfg 10 times.47# It is important that you have set MIN_CONFIG in the config48# that includes this file otherwise it is likely that the49# randconfig will not have the necessary configs needed to50# boot your box. This version of the test requires a min51# config that has enough to make sure the target has network52# working.53TEST_START ITERATE 10 IF ${TEST} == randconfig54MIN_CONFIG = ${CONFIG_DIR}/config-min-net55TEST_TYPE = test56BUILD_TYPE = randconfig57TEST = ${RUN_TEST}5859# This is the same as above, but only tests to a boot prompt.60# The MIN_CONFIG used here does not need to have networking61# working.62TEST_START ITERATE 10 IF ${TEST} == randconfig && ${MULTI}63TEST_TYPE = boot64BUILD_TYPE = randconfig65MIN_CONFIG = ${CONFIG_DIR}/config-min66MAKE_CMD = make6768# This builds, installs, boots and tests the target.69TEST_START IF ${TEST} == test70TEST_TYPE = test71BUILD_TYPE = ${BOOT_TYPE}72TEST = ${RUN_TEST}73BUILD_NOCLEAN = 1747576