tests: Support targeting unit_testing with and without qualifier
For tests that support both targeting unit_testing and other targets, we check in the cmake code the BOARD variable. Let's allow users to set this to either of unit_testing or unit_testing/unit_testing so it behaves like for other tests. Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
parent
9ceeb9bfef
commit
28edb220cd
5 changed files with 5 additions and 5 deletions
|
@ -2,7 +2,7 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
cmake_minimum_required(VERSION 3.20.0)
|
||||
if(BOARD STREQUAL unit_testing/unit_testing)
|
||||
if(BOARD STREQUAL "unit_testing" OR BOARD STREQUAL "unit_testing/unit_testing")
|
||||
find_package(Zephyr COMPONENTS unittest REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||
set(target testbinary)
|
||||
else()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue