mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
apps/unity: Add printf configuration
Allows the user to select whether or not they want access to the Unity ``TEST_PRINTF`` commands. Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
This commit is contained in:
parent
8f3c3c57f9
commit
d334c5eb67
2 changed files with 13 additions and 1 deletions
|
|
@ -47,4 +47,10 @@
|
||||||
# define UNITY_OUTPUT_COLOR 1
|
# define UNITY_OUTPUT_COLOR 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Enable Unity TEST_PRINTF */
|
||||||
|
|
||||||
|
#ifdef CONFIG_TESTING_UNITY_PRINT_FORMATTED
|
||||||
|
# define UNITY_INCLUDE_PRINT_FORMATTED 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* UNITY_CONFIG_H */
|
#endif /* UNITY_CONFIG_H */
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,12 @@ config TESTING_UNITY_OUTPUT_COLOR
|
||||||
bool "Output color"
|
bool "Output color"
|
||||||
default n
|
default n
|
||||||
---help---
|
---help---
|
||||||
Select this if your want to add some colors to your tests
|
Select this if you want to add some colors to your tests
|
||||||
|
|
||||||
|
config TESTING_UNITY_PRINT_FORMATTED
|
||||||
|
bool "Unity printf"
|
||||||
|
default y
|
||||||
|
---help---
|
||||||
|
Select this if you you want to use the Unity TEST_PRINTF macro.
|
||||||
|
|
||||||
endif # TESTING_UNITY
|
endif # TESTING_UNITY
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue