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

tests/shell: Add app_metadata to shell tests

Adds app_metadata to the shell test
This both serves as a simple test to see if the module is available
and doesn't crash as well as an example
This commit is contained in:
MrKevinWeiss 2019-03-05 14:21:44 +01:00
parent 7a220d16a8
commit c36cf5743f
4 changed files with 15 additions and 5 deletions

View File

@ -32,7 +32,10 @@ ifneq (,$(filter oneway_malloc,$(USEMODULE)))
endif
ifneq (,$(filter app_metadata,$(USEMODULE)))
# Overwrite the interface version
# Overwrite the application shell formats.
# This is an optional macro that can be used to coordinate
# standardized shell formats, as an example it can point to an RDM
# that specifies semantics.
ifdef APP_SHELL_FMT
CFLAGS += -DAPP_SHELL_FMT=\"$(APP_SHELL_FMT)\"
endif

View File

@ -33,9 +33,9 @@ extern "C" {
* say semantics defined in a RDM or schema, that could be specified
* by adding APP_SHELL_FMT="RDM001_v1", that would inform anything
* using the shell that the formatting should follow what is dictated.
* This define is only for documentation, to use the APP_SHELL_FMT
* add it to the application makefile with APP_SHELL_FMT=<your value>
* or when calling make such as `APP_SHELL_FMT=<your value> make flash`
* @note This define is only for documentation, to use the APP_SHELL_FMT
* add it to the application makefile with APP_SHELL_FMT=your_value
* or when calling make such as `APP_SHELL_FMT=your_value make flash`
*/
#define APP_SHELL_FMT
#endif

View File

@ -1,6 +1,7 @@
DEVELHELP=0
include ../Makefile.tests_common
USEMODULE += app_metadata
USEMODULE += shell
USEMODULE += shell_commands
USEMODULE += ps
@ -10,6 +11,11 @@ DISABLE_MODULE += auto_init
# chronos is missing a getchar implementation
BOARD_BLACKLIST += chronos
BOARD_INSUFFICIENT_MEMORY := arduino-duemilanove \
arduino-uno
TEST_ON_CI_WHITELIST += all
APP_SHELL_FMT ?= NONE
include $(RIOTBASE)/Makefile.include

View File

@ -17,7 +17,8 @@ EXPECTED_HELP = (
'end_test ends a test',
'echo prints the input command',
'reboot Reboot the node',
'ps Prints information about running threads.'
'ps Prints information about running threads.',
'app_metadata Returns application metadata'
)
EXPECTED_PS = (