OSDN Git Service

kunit: Move default config from arch/um -> tools/testing/kunit
authorDavid Gow <davidgow@google.com>
Sat, 22 May 2021 04:42:40 +0000 (21:42 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 23 Jun 2021 23:49:17 +0000 (17:49 -0600)
The default .kunitconfig file is currently kept in
arch/um/configs/kunit_defconfig, but -- with the impending QEMU patch
-- will no-longer be exclusively used for UML-based kernels.

Move it alongside the other KUnit configs in
tools/testing/kunit/configs, and give it a name which matches the
existing all_tests.config and broken_on_uml.config files.

Also update the Getting Started documentation to point to the new file.

Signed-off-by: David Gow <davidgow@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Documentation/dev-tools/kunit/start.rst
tools/testing/kunit/configs/default.config [moved from arch/um/configs/kunit_defconfig with 100% similarity]
tools/testing/kunit/kunit_kernel.py

index aa56d7c..62d8462 100644 (file)
@@ -36,7 +36,7 @@ A good starting point for a ``.kunitconfig`` is the KUnit defconfig:
 .. code-block:: bash
 
        cd $PATH_TO_LINUX_REPO
-       cp arch/um/configs/kunit_defconfig .kunitconfig
+       cp tools/testing/kunit/configs/default.config .kunitconfig
 
 You can then add any other Kconfig options you wish, e.g.:
 
index e1951fa..90bc007 100644 (file)
@@ -26,7 +26,7 @@ import qemu_config
 
 KCONFIG_PATH = '.config'
 KUNITCONFIG_PATH = '.kunitconfig'
-DEFAULT_KUNITCONFIG_PATH = 'arch/um/configs/kunit_defconfig'
+DEFAULT_KUNITCONFIG_PATH = 'tools/testing/kunit/configs/default.config'
 BROKEN_ALLCONFIG_PATH = 'tools/testing/kunit/configs/broken_on_uml.config'
 OUTFILE_PATH = 'test.log'
 ABS_TOOL_PATH = os.path.abspath(os.path.dirname(__file__))