~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/tools/testing/ktest/examples/include/tests.conf

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #
  2 # This is an example of various tests that you can run
  3 #
  4 # The variable TEST can be of boot, build, randconfig, or test.
  5 #
  6 # Note that TEST is a variable created with ':=' and only exists
  7 # throughout the config processing (not during the tests itself).
  8 #
  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.
 12 #
 13 
 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
 17 # to 'oldconfig'.
 18 #
 19 DEFAULTS IF NOT DEFINED BOOT_TYPE
 20 BOOT_TYPE := oldconfig
 21 
 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).
 25 #
 26 DEFAULTS IF NOT DEFINED RUN_TEST
 27 # Requires that hackbench is in the PATH
 28 RUN_TEST := ${SSH} hackbench 50
 29 
 30 
 31 # If TEST is set to 'boot' then just build a kernel and boot
 32 # the target.
 33 TEST_START IF ${TEST} == boot
 34 TEST_TYPE = 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.
 38 BUILD_NOCLEAN = 1
 39 
 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
 43 TEST_TYPE = build
 44 BUILD_TYPE = ${BOOT_TYPE}
 45 BUILD_NOCLEAN = 1
 46 
 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
 53 # working.
 54 TEST_START ITERATE 10 IF ${TEST} == randconfig
 55 MIN_CONFIG = ${CONFIG_DIR}/config-min-net
 56 TEST_TYPE = test
 57 BUILD_TYPE = randconfig
 58 TEST = ${RUN_TEST}
 59 
 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
 62 # working.
 63 TEST_START ITERATE 10 IF ${TEST} == randconfig && ${MULTI}
 64 TEST_TYPE = boot
 65 BUILD_TYPE = randconfig
 66 MIN_CONFIG = ${CONFIG_DIR}/config-min
 67 MAKE_CMD = make
 68 
 69 # This builds, installs, boots and tests the target.
 70 TEST_START IF ${TEST} == test
 71 TEST_TYPE = test
 72 BUILD_TYPE = ${BOOT_TYPE}
 73 TEST = ${RUN_TEST}
 74 BUILD_NOCLEAN = 1

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php