zephyr/tests/kernel
Marc Herbert debade9121 tests: make find_package(Zephyr...) REQUIRED
... because it is (required).

This makes a difference when building with CMake and forgetting
ZEPHYR_BASE or not registering Zephyr in the CMake package registry.

In this particular case, REQUIRED turns this harmless looking log
statement:

-- Could NOT find Zephyr (missing: Zephyr_DIR)
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- ...
-- ...
-- ...
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:8 (target_sources):
  Cannot specify sources for target "app" which is not built by
  this project.

... into this louder, clearer, faster and (last but not least) final
error:

CMake Error at CMakeLists.txt:5 (find_package):
  Could not find a package configuration file provided by "Zephyr" with
  any of the following names:

    ZephyrConfig.cmake
    zephyr-config.cmake

  Add the installation prefix of "Zephyr" to CMAKE_PREFIX_PATH or set
  "Zephyr_DIR" to a directory containing one of the above files.  If
  "Zephyr" provides a separate development package or SDK, be sure it
  has been installed.

-- Configuring incomplete, errors occurred!

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2020-05-29 10:47:25 +02:00
..
common tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
context tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
device tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
early_sleep tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
fatal tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
fifo tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
fpu_sharing tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
gen_isr_table tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
interrupt tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
lifo tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
mbox tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
mem_heap/mheap_api_concept tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
mem_pool tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
mem_protect tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
mem_slab tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
mp tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
msgq/msgq_api tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
mutex tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
obj_tracing tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
pending tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
pipe tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
poll tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
profiling/profiling_api tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
queue tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
sched tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
semaphore/semaphore tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
sleep tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
smp tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
spinlock tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
stack/stack tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
threads tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
tickless tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
timer tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
workq tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
xip tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00