Skip to content

Commit

Permalink
tests: uefi: move uefi test out of hello world
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
nashif committed Oct 22, 2021
1 parent 5c40c80 commit 75cb6e6
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 3 deletions.
3 changes: 0 additions & 3 deletions samples/hello_world/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 8 additions & 0 deletions tests/boot/uefi/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
File renamed without changes.
13 changes: 13 additions & 0 deletions tests/boot/uefi/src/main.c
Original file line number Diff line number Diff line change
@@ -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 changes: 10 additions & 0 deletions tests/boot/uefi/testcase.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 75cb6e6

Please sign in to comment.