Skip to content

Commit 459f86e

Browse files
committed
wip
1 parent 235b7b5 commit 459f86e

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

tests/runner/example/CMakeLists.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
include(west)
11+
12+
enable_testing()
13+
include(CTest)
14+
15+
add_test(
16+
NAME example-runner
17+
COMMAND ${WEST} simulate --runner example
18+
)
19+
set_property(
20+
TEST example-runner
21+
PROPERTY PASS_REGULAR_EXPRESSION "Running simulate on ${CONFIG_BOARD}"
22+
)

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)