testsuite: clean up Kconfig dependencies
Move all the dependencies into a conditional. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
4ade5e9c32
commit
0cab77f42d
1 changed files with 17 additions and 16 deletions
|
@ -11,22 +11,21 @@ config ZTEST
|
|||
Enable the Zephyr testing framework. You should enable this only
|
||||
if you're writing automated tests.
|
||||
|
||||
if ZTEST
|
||||
|
||||
config ZTEST_STACKSIZE
|
||||
int "Test function thread stack size"
|
||||
depends on ZTEST
|
||||
default 2048 if COVERAGE_GCOV
|
||||
default 1024
|
||||
|
||||
config ZTEST_FAIL_FAST
|
||||
bool "Abort on first failing test"
|
||||
depends on ZTEST
|
||||
help
|
||||
Stop and abort on first failing test. Do not continue with other
|
||||
tests that might be in the queue.
|
||||
|
||||
config ZTEST_ASSERT_VERBOSE
|
||||
int "Assertion verbosity level"
|
||||
depends on ZTEST
|
||||
default 1
|
||||
help
|
||||
Set verbosity level for assertions.
|
||||
|
@ -35,16 +34,14 @@ config ZTEST_ASSERT_VERBOSE
|
|||
1 Write file, line number, function and reason for failed assertions
|
||||
2 Log also successful assertions
|
||||
|
||||
config ZTEST_MOCKING
|
||||
bool "Mocking support functions"
|
||||
depends on ZTEST
|
||||
config ZTEST_THREAD_PRIORITY
|
||||
int "Testing thread priority"
|
||||
default -1
|
||||
help
|
||||
Enable mocking support for Ztest. This allows the test to set
|
||||
return values and expected parameters to functions.
|
||||
Set priority of the testing thread. Default is -1 (cooperative).
|
||||
|
||||
config ZTEST_TC_UTIL_USER_OVERRIDE
|
||||
bool "Override tc_util.h"
|
||||
depends on ZTEST
|
||||
help
|
||||
Enable overriding defines in tc_util.h.
|
||||
If True the user should provide tc_util_user_override.h in Zephyr's include path,
|
||||
|
@ -52,16 +49,20 @@ config ZTEST_TC_UTIL_USER_OVERRIDE
|
|||
The override header may now #define the various macros and strings in tc_util.h which are
|
||||
surrounded by #ifndef ... #endif blocks.
|
||||
|
||||
endif # ZTEST
|
||||
|
||||
config ZTEST_MOCKING
|
||||
bool "Mocking support functions"
|
||||
help
|
||||
Enable mocking support for Ztest. This allows the test to set
|
||||
return values and expected parameters to functions.
|
||||
|
||||
if ZTEST_MOCKING
|
||||
|
||||
config ZTEST_PARAMETER_COUNT
|
||||
int "Count of parameters or return values reserved"
|
||||
depends on ZTEST_MOCKING
|
||||
default 1
|
||||
help
|
||||
Maximum amount of concurrent return values / expected parameters.
|
||||
|
||||
config ZTEST_THREAD_PRIORITY
|
||||
int "Testing thread priority"
|
||||
depends on ZTEST
|
||||
default -1
|
||||
help
|
||||
Set priority of the testing thread. Default is -1 (cooperative).
|
||||
endif # ZTEST_MOCKING
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue