zephyr/tests/drivers/build_all
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
..
src
CMakeLists.txt tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
README.txt
app.overlay tests: drivers: build_all: Remove dts_fixup.h replace with overlay 2020-03-30 09:47:13 -05:00
drivers.conf
eeprom.conf
ethernet.conf
gpio.conf tests: drivers: build_all: add MCP23S17 build configuration 2020-04-17 05:56:05 -05:00
i2c.dtsi sensor: add sensor driver for Infineon DPS310 2020-05-14 11:02:29 +02:00
prj.conf
sensors_a_h.conf sensor: add sensor driver for Infineon DPS310 2020-05-14 11:02:29 +02:00
sensors_i_z.conf
sensors_stmemsc.conf drivers/sensor: add support to IIS2MDC magnetometer sensor 2020-03-20 14:53:42 -05:00
sensors_stmemsc_trigger.conf drivers/sensor: add support to IIS2MDC magnetometer sensor 2020-03-20 14:53:42 -05:00
sensors_trigger_a_h.conf
sensors_trigger_i_z.conf
spi.dtsi tests: drivers: build_all: add MCP23S17 build configuration 2020-04-17 05:56:05 -05:00
testcase.yaml tests: drivers: build_all: add MCP23S17 build configuration 2020-04-17 05:56:05 -05:00

README.txt

Overview
--------

Build tests for drivers and sensors on all platforms.

This test might now work for some of the drivers, those need to be addressed in
other tests targeting those special cases.

Tests
-----

drivers:
	build all drivers

sensors_a_m:
	build sensors with name beginning a through m.

sensors_n_z:
	build sensors with name beginning n through z.

sensors_trigger:
	build sensors with trigger option enabled