zephyr/tests/cmake/snippets/testcase.yaml
Stephanos Ioannidis f1a18022be tests: snippets: Rework the snippet test
This commit reworks the snippet test to more comprehensively test the
different processing modes of snippets.

The following testcases have been added:

1. Initial state with no snippet applied
2. Applying `foo` snippet from the default application snippet root
3. Applying `bar` snippet from an extra snippet root
4. Sequentially applying `foo` and `bar` snippets to test the snippet
   processing order
5. Sequentially applying `bar` and `foo` snippets to test the snippet
   processing order.

Signed-off-by: Stephanos Ioannidis <stephanos.ioannidis@nordicsemi.no>
2023-05-25 21:51:26 +02:00

36 lines
939 B
YAML

common:
tags: snippets
platform_allow:
- native_posix
- qemu_x86
- qemu_x86_64
- qemu_cortex_m3
integration_platforms:
- native_posix
tests:
# Test the initial state with no snippets applied
cmake.snippets.none:
extra_configs:
- CONFIG_TEST_TYPE_NONE=y
# Test the `foo` snippet from the default application snippet root
cmake.snippets.foo:
extra_args: SNIPPET="foo"
extra_configs:
- CONFIG_TEST_TYPE_FOO=y
# Test the `bar` snippet from an extra snippet root
cmake.snippets.bar:
extra_args: SNIPPET="bar"
extra_configs:
- CONFIG_TEST_TYPE_BAR=y
# Test the snippet processing order (1. foo, 2. bar)
cmake.snippets.foo_bar:
extra_args: SNIPPET="foo;bar"
extra_configs:
- CONFIG_TEST_TYPE_FOO_BAR=y
# Test the snippet processing order (1. bar, 2. foo)
cmake.snippets.bar_foo:
extra_args: SNIPPET="bar;foo"
extra_configs:
- CONFIG_TEST_TYPE_BAR_FOO=y