1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/result_output: Add kconfig

This commit is contained in:
MrKevinWeiss 2021-03-12 16:21:22 +01:00
parent 6a3eb46d5e
commit 38884d24b2
2 changed files with 45 additions and 0 deletions

View File

@ -10,4 +10,5 @@ menu "Test utilities"
rsource "dummy_thread/Kconfig"
rsource "interactive_sync/Kconfig"
rsource "result_output/Kconfig"
endmenu # Test utilities

View File

@ -0,0 +1,44 @@
# Copyright (c) 2021 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
choice
bool "Test utils result output"
depends on TEST_KCONFIG
optional
default MODULE_TEST_UTILS_RESULT_OUTPUT_JSON
help
A common API that can format result output depending on the module
used.
config MODULE_TEST_UTILS_RESULT_OUTPUT_TXT
bool "Text"
select MODULE_FMT
select MODULE_TEST_UTILS_RESULT_OUTPUT
help
Output results in plain text. Intended for developer friendly console
output.
config MODULE_TEST_UTILS_RESULT_OUTPUT_JSON
bool "JSON"
select MODULE_FMT
select MODULE_TEST_UTILS_RESULT_OUTPUT
help
Output results json formatted results. This allows generic json parsers
to be used. Trailing commas may be present.
config MODULE_TEST_UTILS_RESULT_OUTPUT_CHECK
bool "Check"
select MODULE_TEST_UTILS_RESULT_OUTPUT
help
Asserts that the structure of the result output are correct. No output
is given.
endchoice
config MODULE_TEST_UTILS_RESULT_OUTPUT
bool