tests: move application unit tests to tests/app

Move the unit tests of the application next to the driver tests in
tests/drivers, so that the tests directory only contains test suites in
subdirectories.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Martin Jäger
2026-10-21 13:22:26 +02:00
co-authored by Claude Opus 5.5
parent 3ef438dc1d
commit a3f888fd79
16 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ jobs:
- name: Run tests
run: |
west build -b native_sim -t run tests -p
west build -b native_sim -t run tests/app -p
- name: Run driver tests
run: |
-2
View File
@@ -1,2 +0,0 @@
rsource "../app/Kconfig"
@@ -1,8 +1,8 @@
# Copyright (c) The Libre Solar Project Contributors
# SPDX-License-Identifier: Apache-2.0
set(BOARD_ROOT ${CMAKE_SOURCE_DIR}/..)
set(DTS_ROOT ${CMAKE_SOURCE_DIR}/..)
set(BOARD_ROOT ${CMAKE_SOURCE_DIR}/../..)
set(DTS_ROOT ${CMAKE_SOURCE_DIR}/../..)
#set(BOARD "native_posix")
#set(ZEPHYR_TOOLCHAIN_VARIANT "host")
@@ -15,16 +15,16 @@ add_definitions(-DUNIT_TEST=1)
add_definitions(-DUNITY_OUTPUT_COLOR)
add_definitions(-DUNITY_EXCLUDE_SETJMP)
add_subdirectory(../app/src build/app)
add_subdirectory(../../app/src build/app)
zephyr_include_directories(./src)
zephyr_include_directories(../app/src)
zephyr_include_directories(../../app/src)
zephyr_include_directories(../../modules/thingset/src)
zephyr_include_directories(../../modules/unity/src)
zephyr_include_directories(../../../modules/thingset/src)
zephyr_include_directories(../../../modules/unity/src)
target_sources(app PRIVATE
../../modules/unity/src/unity.c
../../../modules/unity/src/unity.c
src/main.cpp
src/tests_bat_charger.cpp
src/tests_daq.cpp
+2
View File
@@ -0,0 +1,2 @@
rsource "../../app/Kconfig"