cmake: Get unit tests passing CI again
The following commit:
commit 407b49b35c
(refs/bisect/bad)
Author: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
Date: Wed Feb 12 15:00:46 2020 +0100
cmake: use find_package to locate Zephyr
breaks as we don't find the ZephyrUnittest package. For now revert to
the old means until a proper fix can be made.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
e57da829d7
commit
1bf839809c
|
@ -2,4 +2,4 @@
|
|||
|
||||
project(base64)
|
||||
set(SOURCES main.c)
|
||||
find_package(ZephyrUnittest HINTS $ENV{ZEPHYR_BASE})
|
||||
include($ENV{ZEPHYR_BASE}/subsys/testsuite/unittest.cmake)
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
project(crc)
|
||||
set(SOURCES main.c)
|
||||
find_package(ZephyrUnittest HINTS $ENV{ZEPHYR_BASE})
|
||||
include($ENV{ZEPHYR_BASE}/subsys/testsuite/unittest.cmake)
|
||||
|
|
|
@ -4,4 +4,4 @@ project(base64)
|
|||
set(SOURCES
|
||||
main.c
|
||||
)
|
||||
find_package(ZephyrUnittest HINTS $ENV{ZEPHYR_BASE})
|
||||
include($ENV{ZEPHYR_BASE}/subsys/testsuite/unittest.cmake)
|
||||
|
|
|
@ -7,4 +7,4 @@ set(SOURCES
|
|||
dlist.c
|
||||
sflist.c
|
||||
)
|
||||
find_package(ZephyrUnittest HINTS $ENV{ZEPHYR_BASE})
|
||||
include($ENV{ZEPHYR_BASE}/subsys/testsuite/unittest.cmake)
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
project(math_extras)
|
||||
set(SOURCES main.c portable.c)
|
||||
find_package(ZephyrUnittest HINTS $ENV{ZEPHYR_BASE})
|
||||
include($ENV{ZEPHYR_BASE}/subsys/testsuite/unittest.cmake)
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
project(rbtree)
|
||||
set(SOURCES main.c)
|
||||
find_package(ZephyrUnittest HINTS $ENV{ZEPHYR_BASE})
|
||||
include($ENV{ZEPHYR_BASE}/subsys/testsuite/unittest.cmake)
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
project(timeutil)
|
||||
set(SOURCES main.c test_gmtime.c test_s32.c test_s64.c)
|
||||
find_package(ZephyrUnittest HINTS $ENV{ZEPHYR_BASE})
|
||||
include($ENV{ZEPHYR_BASE}/subsys/testsuite/unittest.cmake)
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
project(util)
|
||||
set(SOURCES main.c ../../../lib/os/dec.c)
|
||||
find_package(ZephyrUnittest HINTS $ENV{ZEPHYR_BASE})
|
||||
include($ENV{ZEPHYR_BASE}/subsys/testsuite/unittest.cmake)
|
||||
|
|
|
@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.13.1)
|
|||
if(BOARD STREQUAL unit_testing)
|
||||
list(APPEND SOURCES src/main.c)
|
||||
|
||||
find_package(ZephyrUnittest HINTS $ENV{ZEPHYR_BASE})
|
||||
include($ENV{ZEPHYR_BASE}/subsys/testsuite/unittest.cmake)
|
||||
project(base)
|
||||
else()
|
||||
find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
|
||||
|
|
|
@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 3.13.1)
|
|||
if(BOARD STREQUAL unit_testing)
|
||||
list(APPEND SOURCES src/main.c)
|
||||
|
||||
find_package(ZephyrUnittest HINTS $ENV{ZEPHYR_BASE})
|
||||
include($ENV{ZEPHYR_BASE}/subsys/testsuite/unittest.cmake)
|
||||
project(mock)
|
||||
else()
|
||||
find_package(Zephyr HINTS $ENV{ZEPHYR_BASE})
|
||||
|
|
Loading…
Reference in a new issue