tests.conf 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. # The config that includes this file may define a BOOT_TYPE
  14. # variable that tells this config what type of boot test to run.
  15. # If it's not defined, the below DEFAULTS will set the default
  16. # to 'oldconfig'.
  17. #
  18. DEFAULTS IF NOT DEFINED BOOT_TYPE
  19. BOOT_TYPE := oldconfig
  20. # The config that includes this file may define a RUN_TEST
  21. # variable that will tell this config what test to run.
  22. # (what to set the TEST option to).
  23. #
  24. DEFAULTS IF NOT DEFINED RUN_TEST
  25. # Requires that hackbench is in the PATH
  26. RUN_TEST := ${SSH} hackbench 50
  27. # If TEST is set to 'boot' then just build a kernel and boot
  28. # the target.
  29. TEST_START IF ${TEST} == boot
  30. TEST_TYPE = boot
  31. # Notice how we set the BUILD_TYPE option to the BOOT_TYPE variable.
  32. BUILD_TYPE = ${BOOT_TYPE}
  33. # Do not do a make mrproper.
  34. BUILD_NOCLEAN = 1
  35. # If you only want to build the kernel, and perhaps install
  36. # and test it yourself, then just set TEST to build.
  37. TEST_START IF ${TEST} == build
  38. TEST_TYPE = build
  39. BUILD_TYPE = ${BOOT_TYPE}
  40. BUILD_NOCLEAN = 1
  41. # Build, install, boot and test with a randconfg 10 times.
  42. # It is important that you have set MIN_CONFIG in the config
  43. # that includes this file otherwise it is likely that the
  44. # randconfig will not have the necessary configs needed to
  45. # boot your box. This version of the test requires a min
  46. # config that has enough to make sure the target has network
  47. # working.
  48. TEST_START ITERATE 10 IF ${TEST} == randconfig
  49. MIN_CONFIG = ${CONFIG_DIR}/config-min-net
  50. TEST_TYPE = test
  51. BUILD_TYPE = randconfig
  52. TEST = ${RUN_TEST}
  53. # This is the same as above, but only tests to a boot prompt.
  54. # The MIN_CONFIG used here does not need to have networking
  55. # working.
  56. TEST_START ITERATE 10 IF ${TEST} == randconfig && ${MULTI}
  57. TEST_TYPE = boot
  58. BUILD_TYPE = randconfig
  59. MIN_CONFIG = ${CONFIG_DIR}/config-min
  60. MAKE_CMD = make
  61. # This builds, installs, boots and tests the target.
  62. TEST_START IF ${TEST} == test
  63. TEST_TYPE = test
  64. BUILD_TYPE = ${BOOT_TYPE}
  65. TEST = ${RUN_TEST}
  66. BUILD_NOCLEAN = 1