zephyr/tests/net
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
..
6lo tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
all tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
arp tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
buf tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
checksum_offload 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
dhcpv4 tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
ethernet_mgmt tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
hostname tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
icmpv4 tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
icmpv6 tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
ieee802154 tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
iface tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
ip-addr tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
ipv6 tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
ipv6_fragment tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
lib tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
mgmt tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
mld tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
neighbor tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
net_pkt tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
pm tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
ppp/driver tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
promiscuous tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
ptp/clock tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
route tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
shell tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
socket tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
tcp tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
tcp2 tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
traffic_class tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
trickle tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
tx_timestamp tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
udp tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
utils tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
vlan tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00