Commit 1bf83980 authored by Kumar Gala's avatar Kumar Gala Committed by Kumar Gala
Browse files

cmake: Get unit tests passing CI again



The following commit:

commit 407b49b3 (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: default avatarKumar Gala <kumar.gala@linaro.org>
parent e57da829
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)
+1 −1
Original line number Diff line number Diff line
@@ -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)
+1 −1
Original line number Diff line number Diff line
@@ -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)
+1 −1
Original line number Diff line number Diff line
@@ -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)
+1 −1
Original line number Diff line number Diff line
@@ -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)
Loading