Skip to content

Commit c352659

Browse files
committed
wip
1 parent 235b7b5 commit c352659

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

tests/runner/example/CMakeLists.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright (c) 2024 Basalte bv
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
cmake_minimum_required(VERSION 3.20.0)
5+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
6+
project(app_example_runner_test)
7+
8+
target_sources(app PRIVATE ${ZEPHYR_BASE}/misc/empty_file.c)
9+
10+
list(APPEND CMAKE_MODULE_PATH ${ZEPHYR_BASE}/modules)
11+
include(west)
12+
13+
enable_testing()
14+
include(CTest)
15+
16+
add_test(
17+
NAME example-runner
18+
COMMAND ${WEST} simulate --runner example
19+
)
20+
set_property(
21+
TEST example-runner
22+
PROPERTY PASS_REGULAR_EXPRESSION "Running simulate on ${CONFIG_BOARD}"
23+
)

tests/runner/example/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Intentionally empty

tests/runner/example/testcase.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
common:
2+
platform_allow:
3+
- custom_plank
4+
integration_platforms:
5+
- custom_plank
6+
harness: ctest
7+
tests:
8+
runner.example: {}

0 commit comments

Comments
 (0)