|
1 | 1 | common: |
2 | 2 | tags: snippets |
3 | | - platform_allow: |
4 | | - - native_sim |
5 | | - - qemu_x86 |
6 | | - - qemu_x86_64 |
7 | | - - qemu_cortex_m3 |
8 | | - integration_platforms: |
9 | | - - native_sim |
10 | 3 | sysbuild: false |
11 | 4 |
|
12 | 5 | tests: |
13 | 6 | # Test the initial state with no snippets applied |
14 | 7 | buildsystem.snippets.none: |
15 | 8 | extra_configs: |
16 | 9 | - CONFIG_TEST_TYPE_NONE=y |
| 10 | + platform_allow: |
| 11 | + - native_sim |
| 12 | + - qemu_x86 |
| 13 | + - qemu_x86_64 |
| 14 | + - qemu_cortex_m3 |
| 15 | + integration_platforms: |
| 16 | + - native_sim |
17 | 17 | # Test the `foo` snippet from the default application snippet root |
18 | 18 | buildsystem.snippets.foo: |
19 | 19 | extra_args: SNIPPET="foo" |
20 | 20 | extra_configs: |
21 | 21 | - CONFIG_TEST_TYPE_FOO=y |
| 22 | + platform_allow: |
| 23 | + - native_sim |
| 24 | + - qemu_x86 |
| 25 | + - qemu_x86_64 |
| 26 | + - qemu_cortex_m3 |
| 27 | + integration_platforms: |
| 28 | + - native_sim |
22 | 29 | # Test the `bar` snippet from an extra snippet root |
23 | 30 | buildsystem.snippets.bar: |
24 | 31 | extra_args: SNIPPET="bar" |
25 | 32 | extra_configs: |
26 | 33 | - CONFIG_TEST_TYPE_BAR=y |
| 34 | + platform_allow: |
| 35 | + - native_sim |
| 36 | + - qemu_x86 |
| 37 | + - qemu_x86_64 |
| 38 | + - qemu_cortex_m3 |
| 39 | + integration_platforms: |
| 40 | + - native_sim |
27 | 41 | # Test the snippet processing order (1. foo, 2. bar) |
28 | 42 | buildsystem.snippets.foo_bar: |
29 | 43 | extra_args: SNIPPET="foo;bar" |
30 | 44 | extra_configs: |
31 | 45 | - CONFIG_TEST_TYPE_FOO_BAR=y |
| 46 | + platform_allow: |
| 47 | + - native_sim |
| 48 | + - qemu_x86 |
| 49 | + - qemu_x86_64 |
| 50 | + - qemu_cortex_m3 |
| 51 | + integration_platforms: |
| 52 | + - native_sim |
32 | 53 | # Test the snippet processing order (1. bar, 2. foo) |
33 | 54 | buildsystem.snippets.bar_foo: |
34 | 55 | extra_args: SNIPPET="bar;foo" |
35 | 56 | extra_configs: |
36 | 57 | - CONFIG_TEST_TYPE_BAR_FOO=y |
| 58 | + platform_allow: |
| 59 | + - native_sim |
| 60 | + - qemu_x86 |
| 61 | + - qemu_x86_64 |
| 62 | + - qemu_cortex_m3 |
| 63 | + integration_platforms: |
| 64 | + - native_sim |
| 65 | + # Test the snippet board version processing |
| 66 | + buildsystem.snippets.version_exclude: |
| 67 | + extra_args: SNIPPET="ver_check" |
| 68 | + extra_configs: |
| 69 | + - CONFIG_TEST_TYPE_VER_CHECK=y |
| 70 | + platform_allow: |
| 71 | + |
| 72 | + integration_platforms: |
| 73 | + |
| 74 | + build_only: true |
| 75 | + buildsystem.snippets.version_include: |
| 76 | + extra_args: SNIPPET="ver_check" |
| 77 | + extra_configs: |
| 78 | + - CONFIG_TEST_TYPE_VER_CHECK_SPECIFIC=y |
| 79 | + platform_allow: |
| 80 | + |
| 81 | + integration_platforms: |
| 82 | + |
| 83 | + build_only: true |
0 commit comments