zephyr/tests/cmake/sysbuild_snippets/testcase.yaml
Jamie McCrae 06fd7389bd tests: cmake: Add sysbuild snippets test
Adds a new test that ensures sysbuild snippets work and are
applied correctly

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-12-27 07:18:13 +01:00

20 lines
545 B
YAML

common:
sysbuild: true
tags: sysbuild_snippets sysbuild
platform_allow:
- native_sim
integration_platforms:
- native_sim
tests:
# Test the initial state with no snippets applied
buildsystem.sysbuild.snippets.none:
extra_args:
- SB_CONFIG_EXPECTED_SB_TEST_FOO_VAL=0
- SB_CONFIG_EXPECTED_APP_TEST_FOO_VAL=12
# Test the `foo` snippet in sysbuild
buildsystem.sysbuild.snippets.applied:
extra_args:
- SNIPPET=foo
- SB_CONFIG_EXPECTED_SB_TEST_FOO_VAL=464372
- SB_CONFIG_EXPECTED_APP_TEST_FOO_VAL=18382