mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
BREAKING CHANGE This commit introduces a Kconfig switch to include the cmocka binary built from cmocka_main.c. The default behaviour is now changed so that cmocka is built as a library only, which would be the desired behaviour for users creating their own cmocka projects. To restore the old behaviour (where the cmocka program is compiled), add CONFIG_TESTING_CMOCKA_PROG=y to your legacy configuration. Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
48 lines
1 KiB
Text
48 lines
1 KiB
Text
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
config TESTING_CMOCKA
|
|
bool "Enable libcmocka"
|
|
depends on LIBC_REGEX
|
|
default n
|
|
---help---
|
|
Enable libcmocka and run all testcases
|
|
|
|
if TESTING_CMOCKA
|
|
|
|
config TESTING_CMOCKA_PROG
|
|
tristate "Compile cmocka binary"
|
|
default n
|
|
---help---
|
|
Instead of just compiling cmocka as a library, the 'cmocka' binary is
|
|
also included.
|
|
|
|
if TESTING_CMOCKA_PROG
|
|
|
|
config TESTING_CMOCKA_PROGNAME
|
|
string "Program name"
|
|
default "cmocka"
|
|
---help---
|
|
This is the name of the program that will be used when the NSH ELF
|
|
program is installed.
|
|
|
|
config TESTING_CMOCKA_PRIORITY
|
|
int "cmocka test task priority"
|
|
default 100
|
|
|
|
config TESTING_CMOCKA_STACKSIZE
|
|
int "cmocka test stack size"
|
|
default DEFAULT_TASK_STACKSIZE
|
|
|
|
endif # TESTING_CMOCKA_PROG
|
|
|
|
config TESTING_CMOCKA_LEAKDETECT
|
|
bool "Detect leaks"
|
|
default n
|
|
---help---
|
|
Memory leaks can be checked using cmocka, please use in a local
|
|
environment.
|
|
|
|
endif
|