Merged in raiden00/apps (pull request #142)

testing/unity: add configuration options for exclude setjmp and output color

Approved-by: GregoryN <gnutt@nuttx.org>
This commit is contained in:
Mateusz Szafoni 2018-06-23 14:58:25 +00:00 committed by GregoryN
parent 3403b1b0e9
commit 0abe34183b
2 changed files with 21 additions and 1 deletions

View File

@ -50,6 +50,14 @@
/* Exclude setjmp */
#define UNITY_EXCLUDE_SETJMP_H 1
#ifdef CONFIG_TESTING_UNITY_EXCLUDE_SETJMP
# define UNITY_EXCLUDE_SETJMP_H 1
#endif
/* Enable output coloring */
#ifdef CONFIG_TESTING_UNITY_OUTPUT_COLOR
# define UNITY_OUTPUT_COLOR 1
#endif
#endif /* UNITY_CONFIG_H */

View File

@ -19,4 +19,16 @@ config TESTING_UNITY_VERSION
string "Version number"
default "2.4.3"
config TESTING_UNITY_EXCLUDE_SETJMP
bool "Exclude SETJMP"
default y
---help---
Select this if your toolchain does not support setjmp
config TESTING_UNITY_OUTPUT_COLOR
bool "Output color"
default n
---help---
Select this if your want to add some colors to your tests
endif # TESTING_UNITY