tests: add board_shell test app
Group various shell modules for kernel, peripherals and other subsystems. This will be used to test board functionality interactively using commands implemented in the individual shell modules. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
cd9103826b
commit
aed52d7058
6
tests/boards/board_shell/CMakeLists.txt
Normal file
6
tests/boards/board_shell/CMakeLists.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
cmake_minimum_required(VERSION 3.8.2)
|
||||
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
|
||||
project(board_shell)
|
||||
|
||||
FILE(GLOB app_sources src/*.c)
|
||||
target_sources(app PRIVATE ${app_sources})
|
10
tests/boards/board_shell/prj.conf
Normal file
10
tests/boards/board_shell/prj.conf
Normal file
|
@ -0,0 +1,10 @@
|
|||
CONFIG_SHELL=y
|
||||
CONFIG_LOG=y
|
||||
CONFIG_LOG_BACKEND_UART=n
|
||||
CONFIG_KERNEL_SHELL=y
|
||||
CONFIG_THREAD_MONITOR=y
|
||||
CONFIG_INIT_STACKS=y
|
||||
CONFIG_BOOT_BANNER=n
|
||||
CONFIG_THREAD_NAME=y
|
||||
CONFIG_DEVICE_SHELL=y
|
||||
CONFIG_TEST_SHELL=y
|
20
tests/boards/board_shell/src/main.c
Normal file
20
tests/boards/board_shell/src/main.c
Normal file
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* Copyright (c) 2018 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr.h>
|
||||
#include <misc/printk.h>
|
||||
#include <shell/shell.h>
|
||||
#include <shell/shell_uart.h>
|
||||
#include <version.h>
|
||||
#include <logging/log.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
LOG_MODULE_REGISTER(app);
|
||||
|
||||
void main(void)
|
||||
{
|
||||
|
||||
}
|
4
tests/boards/board_shell/test.yaml
Normal file
4
tests/boards/board_shell/test.yaml
Normal file
|
@ -0,0 +1,4 @@
|
|||
tests:
|
||||
test:
|
||||
tags: shell
|
||||
harness: keyboard
|
Loading…
Reference in a new issue