Skip to content

Commit

Permalink
tests: Update testcase.yaml files to not use space-separated lists
Browse files Browse the repository at this point in the history
They have been deprecated, and support is removed in Zephyr.

Signed-off-by: Øyvind Rønningstad <[email protected]>
  • Loading branch information
oyvindronningstad committed Dec 10, 2024
1 parent 00a0c1e commit edcb2a2
Show file tree
Hide file tree
Showing 15 changed files with 182 additions and 47 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

env:
ZEPHYR_SDK_VERSION: 0.17.0
ZEPHYR_REV: c3466b14d09b1e51b6ca472f3b3654e40cba12d8
ZEPHYR_REV: ef6f804d8f2648935afadaab09b511913ffd9f4c

jobs:
merge-test-1:
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.x"

- name: Checkout Zephyr
run: |
Expand Down Expand Up @@ -120,18 +120,15 @@ jobs:
merge-test-2-win:
runs-on: windows-latest
strategy:
matrix:
python-version: ['3.12']
name: Merge tests 2 - Python (${{ matrix.python-version }}) functional tests (Windows)
name: Merge tests 2 - Python (latest) functional tests (Windows)
steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: '3.x'

- name: Read zcbor version
run: |
Expand Down Expand Up @@ -166,7 +163,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
python-version: '3.x'

- name: Install zcbor
uses: ./.github/actions/install_zcbor
Expand Down
6 changes: 5 additions & 1 deletion tests/decode/test1_suit_old_formats/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
tests:
zcbor.decode.test1_suit_old_formats:
platform_allow: native_sim native_sim/native/64 mps2/an521/cpu0 qemu_malta/qemu_malta/be
platform_allow:
- native_sim
- native_sim/native/64
- mps2/an521/cpu0
- qemu_malta/qemu_malta/be
tags: zcbor decode test1
11 changes: 9 additions & 2 deletions tests/decode/test2_suit/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
tests:
zcbor.decode.test2_suit:
platform_allow: native_sim native_sim/native/64 mps2/an521/cpu0 qemu_malta/qemu_malta/be
tags: zcbor decode test2
platform_allow:
- native_sim
- native_sim/native/64
- mps2/an521/cpu0
- qemu_malta/qemu_malta/be
tags:
- zcbor
- decode
- test2
11 changes: 9 additions & 2 deletions tests/decode/test3_simple/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
tests:
zcbor.decode.test3_simple:
platform_allow: native_sim native_sim/native/64 mps2/an521/cpu0 qemu_malta/qemu_malta/be
tags: zcbor decode test3
platform_allow:
- native_sim
- native_sim/native/64
- mps2/an521/cpu0
- qemu_malta/qemu_malta/be
tags:
- zcbor
- decode
- test3
23 changes: 19 additions & 4 deletions tests/decode/test5_corner_cases/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
tests:
zcbor.decode.test5_corner_cases:
platform_allow: native_sim native_sim/native/64 mps2/an521/cpu0 qemu_malta/qemu_malta/be
tags: zcbor decode test5
platform_allow:
- native_sim
- native_sim/native/64
- mps2/an521/cpu0
- qemu_malta/qemu_malta/be
tags:
- zcbor
- decode
- test5
extra_args: CANONICAL=1
zcbor.decode.test5_corner_cases.indefinite_length_arrays:
platform_allow: native_sim native_sim/native/64 mps2/an521/cpu0 qemu_malta/qemu_malta/be
tags: zcbor decode test5 indefinite
platform_allow:
- native_sim
- native_sim/native/64
- mps2/an521/cpu0
- qemu_malta/qemu_malta/be
tags:
- zcbor
- decode
- test5
- indefinite
extra_args: TEST_INDEFINITE_LENGTH_ARRAYS=1
11 changes: 9 additions & 2 deletions tests/decode/test7_suit9_simple/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
tests:
zcbor.decode.test7_suit9_simple:
platform_allow: native_sim native_sim/native/64 mps2/an521/cpu0 qemu_malta/qemu_malta/be
tags: zcbor decode test7
platform_allow:
- native_sim
- native_sim/native/64
- mps2/an521/cpu0
- qemu_malta/qemu_malta/be
tags:
- zcbor
- decode
- test7
11 changes: 9 additions & 2 deletions tests/decode/test8_suit12/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
tests:
zcbor.decode.test8_suit12:
platform_allow: native_sim native_sim/native/64 mps2/an521/cpu0 qemu_malta/qemu_malta/be
tags: zcbor decode test8
platform_allow:
- native_sim
- native_sim/native/64
- mps2/an521/cpu0
- qemu_malta/qemu_malta/be
tags:
- zcbor
- decode
- test8
29 changes: 24 additions & 5 deletions tests/decode/test9_manifest14/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,27 @@
tests:
zcbor.decode.test9_manifest14:
platform_allow: native_sim native_sim/native/64 mps2/an521/cpu0 qemu_malta/qemu_malta/be
tags: zcbor decode manifest14 test9
platform_allow:
- native_sim
- native_sim/native/64
- mps2/an521/cpu0
- qemu_malta/qemu_malta/be
tags:
- zcbor
- decode
- manifest14
- test9
zcbor.cbor_decode.test9_manifest16.canonical:
platform_allow: native_sim native_sim/native/64 mps2/an521/cpu0 qemu_malta/qemu_malta/be
tags: zcbor decode manifest16 test9 canonical
extra_args: MANIFEST=manifest16 CANONICAL=ON
platform_allow:
- native_sim
- native_sim/native/64
- mps2/an521/cpu0
- qemu_malta/qemu_malta/be
tags:
- zcbor
- decode
- manifest16
- test9
- canonical
extra_args:
- MANIFEST=manifest16
- CANONICAL=ON
12 changes: 10 additions & 2 deletions tests/encode/test1_suit/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
tests:
zcbor.encode.test1_suit.canonical:
platform_allow: native_sim native_sim/native/64 mps2/an521/cpu0 qemu_malta/qemu_malta/be
tags: zcbor encode canonical test1
platform_allow:
- native_sim
- native_sim/native/64
- mps2/an521/cpu0
- qemu_malta/qemu_malta/be
tags:
- zcbor
- encode
- canonical
- test1
extra_args: CANONICAL=CANONICAL
23 changes: 19 additions & 4 deletions tests/encode/test2_simple/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
tests:
zcbor.encode.test2_simple:
platform_allow: native_sim native_sim/native/64 mps2/an521/cpu0 qemu_malta/qemu_malta/be
tags: zcbor encode test
platform_allow:
- native_sim
- native_sim/native/64
- mps2/an521/cpu0
- qemu_malta/qemu_malta/be
tags:
- zcbor
- encode
- test
zcbor.encode.test2_simple.canonical:
platform_allow: native_sim native_sim/native/64 mps2/an521/cpu0 qemu_malta/qemu_malta/be
tags: zcbor encode canonical test
platform_allow:
- native_sim
- native_sim/native/64
- mps2/an521/cpu0
- qemu_malta/qemu_malta/be
tags:
- zcbor
- encode
- canonical
- test
extra_args: CANONICAL=CANONICAL
23 changes: 19 additions & 4 deletions tests/encode/test3_corner_cases/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
tests:
zcbor.encode.test3_corner_cases:
platform_allow: native_sim native_sim/native/64 mps2/an521/cpu0 qemu_malta/qemu_malta/be
tags: zcbor encode test3
platform_allow:
- native_sim
- native_sim/native/64
- mps2/an521/cpu0
- qemu_malta/qemu_malta/be
tags:
- zcbor
- encode
- test3
zcbor.encode.test3_corner_cases.canonical:
platform_allow: native_sim native_sim/native/64 mps2/an521/cpu0 qemu_malta/qemu_malta/be
tags: zcbor encode canonical test3
platform_allow:
- native_sim
- native_sim/native/64
- mps2/an521/cpu0
- qemu_malta/qemu_malta/be
tags:
- zcbor
- encode
- canonical
- test3
extra_args: CANONICAL=CANONICAL
23 changes: 19 additions & 4 deletions tests/encode/test4_senml/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
tests:
zcbor.encode.test4_senml:
platform_allow: native_sim native_sim/native/64 mps2/an521/cpu0 qemu_malta/qemu_malta/be
tags: zcbor encode test4
platform_allow:
- native_sim
- native_sim/native/64
- mps2/an521/cpu0
- qemu_malta/qemu_malta/be
tags:
- zcbor
- encode
- test4
zcbor.encode.test4_senml.canonical:
platform_allow: native_sim native_sim/native/64 mps2/an521/cpu0 qemu_malta/qemu_malta/be
tags: zcbor encode canonical test4
platform_allow:
- native_sim
- native_sim/native/64
- mps2/an521/cpu0
- qemu_malta/qemu_malta/be
tags:
- zcbor
- encode
- canonical
- test4
extra_args: CANONICAL=CANONICAL
10 changes: 8 additions & 2 deletions tests/unit/test1_unit_tests/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
common:
platform_allow: native_sim native_sim/native/64 mps2/an521/cpu0 qemu_malta/qemu_malta/be
tags: zcbor unit
platform_allow:
- native_sim
- native_sim/native/64
- mps2/an521/cpu0
- qemu_malta/qemu_malta/be
tags:
- zcbor
- unit
timeout: 120 # Because of test_size64

tests:
Expand Down
4 changes: 3 additions & 1 deletion tests/unit/test2_cpp/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
tests:
zcbor.unit.test2:
platform_allow: mps2/an521/cpu0 qemu_malta/qemu_malta/be
platform_allow:
- mps2/an521/cpu0
- qemu_malta/qemu_malta/be
tags: zcbor unit cpp
common:
harness: console
Expand Down
19 changes: 15 additions & 4 deletions tests/unit/test3_float16/testcase.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
tests:
zcbor.unit.test3:
platform_allow: native_sim native_sim/native/64
tags: zcbor unit float16
platform_allow:
- native_sim
- native_sim/native/64
tags:
- zcbor
- unit
- float16
timeout: 240
zcbor.unit.test3.release:
platform_allow: mps2/an521/cpu0 qemu_malta/qemu_malta/be
tags: zcbor unit float16 release
platform_allow:
- mps2/an521/cpu0
- qemu_malta/qemu_malta/be
tags:
- zcbor
- unit
- float16
- release
timeout: 7200

0 comments on commit edcb2a2

Please sign in to comment.