2 # This is an example of various tests that you can run
4 # The variable TEST can be of boot, build, randconfig, or test.
6 # Note that TEST is a variable created with ':=' and only exists
7 # throughout the config processing (not during the tests itself).
9 # The TEST option (defined with '=') is used to tell ktest.pl
10 # what test to run after a successful boot. The TEST option is
11 # persistent into the test runs.
14 # The config that includes this file may define a BOOT_TYPE
15 # variable that tells this config what type of boot test to run.
16 # If it's not defined, the below DEFAULTS will set the default
19 DEFAULTS IF NOT DEFINED BOOT_TYPE
20 BOOT_TYPE := oldconfig
22 # The config that includes this file may define a RUN_TEST
23 # variable that will tell this config what test to run.
24 # (what to set the TEST option to).
26 DEFAULTS IF NOT DEFINED RUN_TEST
27 # Requires that hackbench is in the PATH
28 RUN_TEST := ${SSH} hackbench 50
31 # If TEST is set to 'boot' then just build a kernel and boot
33 TEST_START IF ${TEST} == boot
35 # Notice how we set the BUILD_TYPE option to the BOOT_TYPE variable.
36 BUILD_TYPE = ${BOOT_TYPE}
37 # Do not do a make mrproper.
40 # If you only want to build the kernel, and perhaps install
41 # and test it yourself, then just set TEST to build.
42 TEST_START IF ${TEST} == build
44 BUILD_TYPE = ${BOOT_TYPE}
47 # Build, install, boot and test with a randconfg 10 times.
48 # It is important that you have set MIN_CONFIG in the config
49 # that includes this file otherwise it is likely that the
50 # randconfig will not have the necessary configs needed to
51 # boot your box. This version of the test requires a min
52 # config that has enough to make sure the target has network
54 TEST_START ITERATE 10 IF ${TEST} == randconfig
55 MIN_CONFIG = ${CONFIG_DIR}/config-min-net
57 BUILD_TYPE = randconfig
60 # This is the same as above, but only tests to a boot prompt.
61 # The MIN_CONFIG used here does not need to have networking
63 TEST_START ITERATE 10 IF ${TEST} == randconfig && ${MULTI}
65 BUILD_TYPE = randconfig
66 MIN_CONFIG = ${CONFIG_DIR}/config-min
69 # This builds, installs, boots and tests the target.
70 TEST_START IF ${TEST} == test
72 BUILD_TYPE = ${BOOT_TYPE}