From 0abe34183b844ffca5d4c1a218b9bf93dcf4377b Mon Sep 17 00:00:00 2001 From: Mateusz Szafoni Date: Sat, 23 Jun 2018 14:58:25 +0000 Subject: [PATCH] Merged in raiden00/apps (pull request #142) testing/unity: add configuration options for exclude setjmp and output color Approved-by: GregoryN --- include/testing/unity_config.h | 10 +++++++++- testing/unity/Kconfig | 12 ++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/include/testing/unity_config.h b/include/testing/unity_config.h index d0a0ca53f..2c5ec6c07 100644 --- a/include/testing/unity_config.h +++ b/include/testing/unity_config.h @@ -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 */ diff --git a/testing/unity/Kconfig b/testing/unity/Kconfig index d5ab1738c..2b262547c 100644 --- a/testing/unity/Kconfig +++ b/testing/unity/Kconfig @@ -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