tests: cmake: Add zephyr_get

As `zephyr_get()` grows in complexity and significance, it must continue
working as expected. Unfortunately, it has a few minor bugs already, but
they will be taken care of in the next few commits. Before that, though,
let's go ahead and add a test suite for this function.

For now, some tests will pass by using incorrect values, annotated with
the `# BUG` comments; they will be removed in later patches. The purpose
of having them now is to make it easier to see what's about to be fixed.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
This commit is contained in:
Grzegorz Swiderski 2023-08-10 08:34:42 +02:00 committed by Carles Cufí
commit 5ef7229a8c
4 changed files with 634 additions and 0 deletions

View file

@ -0,0 +1,11 @@
common:
tags: cmake
build_only: true
platform_allow: native_posix
tests:
zephyr_get.no_sysbuild:
sysbuild: false
zephyr_get.sysbuild:
sysbuild: true
extra_args: TESTCASE_VARIABLE="sysbuild.main"
zephyr_get_2nd_TESTCASE_VARIABLE="sysbuild.2nd"