zephyr/tests/net/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 tests: ztest: prefix tests with test_ 2020-05-13 18:16:07 +02:00
CMakeLists.txt tests: make find_package(Zephyr...) REQUIRED 2020-05-29 10:47:25 +02:00
README.txt tests: net: all: Add more options to catch-all test 2019-04-23 10:29:38 +03:00
check_net_options.sh tests: net: all: check_net_options.sh: Use lowercase for internal vars 2019-12-10 14:34:46 -08:00
prj.conf drivers: Replace GPIO_CS Kconfig with devicetree detection 2020-05-09 13:07:05 +02:00
testcase.yaml tests: net: all: Add more options to catch-all test 2019-04-23 10:29:38 +03:00

README.txt

This test tries to enable all possible networking related config options
and build a sample application. The application is not supposed to be run
as typically the generated configuration is not usable.

The check_net_options.sh script can be used in Linux host to generate
a list of missing network related kconfig options from prj.conf file.

TODO:

* separate conflicting configuration options and create new test cases
  for them