2016-08-22 19:51:46 +08:00
|
|
|
#
|
|
|
|
# Copyright (c) 2016 Intel Corporation
|
|
|
|
#
|
2017-01-19 09:01:01 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-08-22 19:51:46 +08:00
|
|
|
#
|
|
|
|
|
|
|
|
config ZTEST
|
|
|
|
bool "Zephyr testing framework"
|
|
|
|
default n
|
2018-01-07 05:15:53 +08:00
|
|
|
select TEST
|
2016-08-22 19:51:46 +08:00
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Enable the Zephyr testing framework. You should enable this only
|
|
|
|
if you're writing automated tests.
|
2016-08-22 19:51:46 +08:00
|
|
|
|
|
|
|
config ZTEST_STACKSIZE
|
2016-10-29 02:44:17 +08:00
|
|
|
int "Test function thread stack size"
|
2016-08-22 19:51:46 +08:00
|
|
|
depends on ZTEST
|
2017-01-25 06:55:08 +08:00
|
|
|
default 1024
|
2016-08-22 19:51:46 +08:00
|
|
|
|
2016-10-29 02:44:17 +08:00
|
|
|
config ZTEST_FAIL_FAST
|
|
|
|
bool "Abort on first failing test"
|
|
|
|
depends on ZTEST
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Stop and abort on first failing test. Do not continue with other
|
|
|
|
tests that might be in the queue.
|
|
|
|
|
2016-08-22 19:51:46 +08:00
|
|
|
config ZTEST_ASSERT_VERBOSE
|
|
|
|
int "Assertion verbosity level"
|
|
|
|
depends on ZTEST
|
|
|
|
default 1
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Set verbosity level for assertions.
|
|
|
|
Assertion verbosity levels:
|
|
|
|
0 Write only file and line for failed assertions
|
|
|
|
1 Write file, line number, function and reason for failed assertions
|
|
|
|
2 Log also successful assertions
|
2016-08-22 19:51:46 +08:00
|
|
|
|
|
|
|
config ZTEST_MOCKING
|
|
|
|
bool "Mocking support functions"
|
|
|
|
depends on ZTEST
|
|
|
|
default n
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Enable mocking support for Ztest. This allows the test to set
|
|
|
|
return values and expected parameters to functions.
|
2016-08-22 19:51:46 +08:00
|
|
|
|
|
|
|
config ZTEST_PARAMETER_COUNT
|
|
|
|
int "Count of parameters or return values reserved"
|
|
|
|
depends on ZTEST_MOCKING
|
|
|
|
default 1
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Maximum amount of concurrent return values / expected parameters.
|