aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/ktest/sample.conf
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2011-07-15 21:25:24 -0400
committerSteven Rostedt <rostedt@goodmis.org>2011-07-15 21:29:09 -0400
commitb9066f6c0e215386d4b888eaedd739397b987421 (patch)
treeb8b319812e7d70150de827720d71a9e776b53e71 /tools/testing/ktest/sample.conf
parent4c4ab1204fe4e201ece94c3062aa6b5eed670457 (diff)
ktest: Use Kconfig dependencies to shorten time to make min_config
To save time, the test does not just grab any option and test it. The Kconfig files are examined to determine the dependencies of the configs. If a config is chosen that depends on another config, that config will be checked first. By checking the parents first, we can eliminate whole groups of configs that may have been enabled. For example, if a USB device config is chosen and depends on CONFIG_USB, the CONFIG_USB will be tested before the device. If CONFIG_USB is found not to be needed, it, as well as all configs that depend on it, will be disabled and removed from the current min_config. Note, the code from streamline_config (make localmodconfig) was copied and used to find the dependencies in the Kconfig file. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'tools/testing/ktest/sample.conf')
-rw-r--r--tools/testing/ktest/sample.conf12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/testing/ktest/sample.conf b/tools/testing/ktest/sample.conf
index a83846d829bd..d096a0c80401 100644
--- a/tools/testing/ktest/sample.conf
+++ b/tools/testing/ktest/sample.conf
@@ -837,6 +837,18 @@
837# TODO: add a test version that makes the config do more than just 837# TODO: add a test version that makes the config do more than just
838# boot, like having network access. 838# boot, like having network access.
839# 839#
840# To save time, the test does not just grab any option and test
841# it. The Kconfig files are examined to determine the dependencies
842# of the configs. If a config is chosen that depends on another
843# config, that config will be checked first. By checking the
844# parents first, we can eliminate whole groups of configs that
845# may have been enabled.
846#
847# For example, if a USB device config is chosen and depends on CONFIG_USB,
848# the CONFIG_USB will be tested before the device. If CONFIG_USB is
849# found not to be needed, it, as well as all configs that depend on
850# it, will be disabled and removed from the current min_config.
851#
840# OUTPUT_MIN_CONFIG is the path and filename of the file that will 852# OUTPUT_MIN_CONFIG is the path and filename of the file that will
841# be created from the MIN_CONFIG. If you interrupt the test, set 853# be created from the MIN_CONFIG. If you interrupt the test, set
842# this file as your new min config, and use it to continue the test. 854# this file as your new min config, and use it to continue the test.