tests: uefi: move uefi test out of hello world
Do not misuse the hello world sample for testing of features, keep it simple. Create a new test for booting with uefi instead. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
5c40c8005c
commit
75cb6e6498
5 changed files with 31 additions and 3 deletions
|
@ -14,6 +14,3 @@ common:
|
|||
tests:
|
||||
sample.basic.helloworld:
|
||||
tags: introduction
|
||||
sample.basic.helloworld.uefi:
|
||||
platform_allow: qemu_x86_64
|
||||
extra_args: CONF_FILE=prj_uefi.conf
|
||||
|
|
8
tests/boot/uefi/CMakeLists.txt
Normal file
8
tests/boot/uefi/CMakeLists.txt
Normal file
|
@ -0,0 +1,8 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
cmake_minimum_required(VERSION 3.20.0)
|
||||
|
||||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||
project(boot_uefi)
|
||||
|
||||
target_sources(app PRIVATE src/main.c)
|
13
tests/boot/uefi/src/main.c
Normal file
13
tests/boot/uefi/src/main.c
Normal file
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* Copyright (c) 2012-2014 Wind River Systems, Inc.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr.h>
|
||||
#include <sys/printk.h>
|
||||
|
||||
void main(void)
|
||||
{
|
||||
printk("Hello World! %s\n", CONFIG_BOARD);
|
||||
}
|
10
tests/boot/uefi/testcase.yaml
Normal file
10
tests/boot/uefi/testcase.yaml
Normal file
|
@ -0,0 +1,10 @@
|
|||
common:
|
||||
platform_allow: qemu_x86_64
|
||||
harness: console
|
||||
harness_config:
|
||||
type: one_line
|
||||
regex:
|
||||
- "Hello World! (.*)"
|
||||
tests:
|
||||
boot.uefi:
|
||||
tags: uefi
|
Loading…
Add table
Add a link
Reference in a new issue