test: improve configuration for Kconfig test options

* Fix dependencies
* Provide labels that are easier to grasp.
* Fix typo %s/whgch/which/
* Fix type %s/Is/is/

Fixes: 29784d62ed ("test: Add some tests for kconfig.h")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Heinrich Schuchardt 2023-04-03 12:04:39 +02:00 committed by Tom Rini
parent de0095b400
commit 0b8b7d47aa

View file

@ -1,23 +1,24 @@
# SPDX-License-Identifier: GPL-2.0+ # SPDX-License-Identifier: GPL-2.0+
# Copyright 2022 Google LLC # Copyright 2022 Google LLC
if SANDBOX
config TEST_KCONFIG config TEST_KCONFIG
bool "Enable detection of Kconfig macro errors" bool "Enable detection of Kconfig macro errors"
depends on SANDBOX
help help
This is used to test that the IF_ENABLED_INT() macro causes a build error This is used to test that the IF_ENABLED_INT() macro causes a build error
if the value is used when the CONFIG Is not enabled. if the value is used when the CONFIG is not enabled.
if TEST_KCONFIG
config TEST_KCONFIG_ENABLE config TEST_KCONFIG_ENABLE
bool "Option to enable" bool "Provide a value for the Kconfig test"
help help
This is the option that controls whether the value is present. This is the option that controls whether the value is present.
config TEST_KCONFIG_VALUE config TEST_KCONFIG_VALUE
int "Value associated with the option" int "Value used in Kconfig test"
depends on TEST_KCONFIG_ENABLE depends on TEST_KCONFIG_ENABLE
help help
This is the value whgch is present if TEST_KCONFIG_ENABLE is enabled. This is the value which is present if TEST_KCONFIG_ENABLE is enabled.
endif # SANDBOX endif # TEST_KCONFIG