#
# 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
