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:
Anas Nashif 2021-10-21 12:13:55 -04:00
commit 75cb6e6498
5 changed files with 31 additions and 3 deletions

View file

@ -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

View 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)

View 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);
}

View 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