Skip to content

Commit 823d4e5

Browse files
tests: migrate native_posix to native_sim
native posix is no longer supported, and has been replaced by native_sim Signed-off-by: Robert Gałat <[email protected]>
1 parent 19f3665 commit 823d4e5

File tree

17 files changed

+38
-38
lines changed

17 files changed

+38
-38
lines changed

.github/workflows/run_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
id: subsets
3939
run: |
4040
rm -rf twister-out* max max_sorted configuration
41-
west twister --test-config sidewalk/test_config.yaml --testsuite-root sidewalk --level="Github_tests" --exclude-platform native_sim --exclude-platform native_posix --exclude-platform unit_testing --dry-run
41+
west twister --test-config sidewalk/test_config.yaml --testsuite-root sidewalk --level="Github_tests" --exclude-platform native_sim --exclude-platform unit_testing --dry-run
4242
total_platforms=$(jq -r '.testsuites |map({platform: .platform}) | unique | .[].platform' twister-out/testplan.json)
4343
total_platforms_json=$(printf '%s' "${total_platforms[@]}" | jq -R . | jq -s -c .)
4444
echo "{}" > configuration
@@ -103,7 +103,7 @@ jobs:
103103
- name: Twister build and run x86 tests
104104
run: |
105105
source zephyr/zephyr-env.sh
106-
west twister --test-config sidewalk/test_config.yaml --level="Github_tests" --testsuite-root sidewalk --platform native_sim --platform native_posix --platform unit_testing --coverage --coverage-basedir sidewalk --coverage-formats html,xml --enable-ubsan --enable-lsan --enable-asan --inline-logs --overflow-as-errors -vvv
106+
west twister --test-config sidewalk/test_config.yaml --level="Github_tests" --testsuite-root sidewalk --platform native_sim --platform unit_testing --coverage --coverage-basedir sidewalk --coverage-formats html,xml --enable-ubsan --enable-lsan --enable-asan --inline-logs --overflow-as-errors -vvv
107107
108108
- name: Upload test results
109109
uses: actions/upload-artifact@v4

tests/unit_tests/mfg_parsers/testcase.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@ tests:
22
sidewalk.test.unit.mfg_parser:
33
sysbuild: true
44
platform_allow:
5-
- native_posix
5+
- native_sim
66
- nrf52840dk/nrf52840
77
- nrf5340dk/nrf5340/cpuapp
88
- nrf54l15dk/nrf54l15/cpuapp
99
- nrf54l15dk/nrf54l10/cpuapp
1010
tags: Sidewalk
1111
integration_platforms:
12-
- native_posix
12+
- native_sim
1313
- nrf52840dk/nrf52840
1414
- nrf5340dk/nrf5340/cpuapp
1515
- nrf54l15dk/nrf54l15/cpuapp
1616
- nrf54l15dk/nrf54l10/cpuapp
1717

1818
sidewalk.test.unit.mfg_parser_psa_storage:
1919
sysbuild: true
20-
platform_allow: native_posix
20+
platform_allow: native_sim
2121
tags: Sidewalk
2222
integration_platforms:
23-
- native_posix
23+
- native_sim
2424
extra_configs:
2525
- CONFIG_SIDEWALK_CRYPTO_PSA_KEY_STORAGE=y
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
tests:
22
sidewalk.test.unit.ble_adapter:
33
sysbuild: true
4-
platform_allow: native_posix
4+
platform_allow: native_sim
55
tags: Sidewalk
66
integration_platforms:
7-
- native_posix
7+
- native_sim

tests/unit_tests/pal_crypto/testcase.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ tests:
22
sidewalk.test.unit.crypto:
33
sysbuild: true
44
tags: Sidewalk
5-
platform_allow: native_posix
5+
platform_allow: native_sim
66
integration_platforms:
7-
- native_posix
7+
- native_sim
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
tests:
22
sidewalk.test.unit.log:
33
sysbuild: true
4-
platform_allow: native_posix
4+
platform_allow: native_sim
55
tags: Sidewalk
66
integration_platforms:
7-
- native_posix
7+
- native_sim

tests/unit_tests/pal_mfg_storage/testcase.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ tests:
22
sidewalk.test.unit.mfg_storage:
33
skip: true
44
sysbuild: true
5-
platform_allow: native_posix
5+
platform_allow: native_sim
66
tags: Sidewalk
77
integration_platforms:
8-
- native_posix
8+
- native_sim

tests/unit_tests/pal_storage_kv/testcase.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
tests:
22
sidewalk.test.unit.storage_kv.NVS:
33
sysbuild: true
4-
platform_allow: native_posix
4+
platform_allow: native_sim
55
tags: Sidewalk
66
integration_platforms:
7-
- native_posix
7+
- native_sim
88

99
sidewalk.test.unit.storage_kv.ZMS:
1010
sysbuild: true
11-
platform_allow: native_posix
11+
platform_allow: native_sim
1212
tags: Sidewalk
1313
integration_platforms:
14-
- native_posix
14+
- native_sim
1515
extra_configs:
1616
- CONFIG_NVS=n
1717
- CONFIG_SETTINGS_NVS=n
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
tests:
22
sidewalk.test.unit.temperature:
33
sysbuild: true
4-
platform_allow: native_posix
4+
platform_allow: native_sim
55
tags: Sidewalk
66
integration_platforms:
7-
- native_posix
7+
- native_sim
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
tests:
22
sidewalk.test.unit.timer:
33
sysbuild: true
4-
platform_allow: native_posix
4+
platform_allow: native_sim
55
tags: Sidewalk
66
integration_platforms:
7-
- native_posix
7+
- native_sim
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
tests:
22
sidewalk.test.unit.uptime:
33
sysbuild: true
4-
platform_allow: native_posix
4+
platform_allow: native_sim
55
tags: Sidewalk
66
integration_platforms:
7-
- native_posix
7+
- native_sim

0 commit comments

Comments
 (0)