twister tests: Use native_sim instead of native_posix

native_posix is deprecated. native_sim should be used in its place.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2024-08-13 16:50:07 +02:00 committed by Fabio Baltieri
parent 0e8eeb37fd
commit 05f5390b92
17 changed files with 29 additions and 30 deletions

View file

@ -1,8 +1,8 @@
tests:
always_fail.dummy:
platform_allow:
- native_posix
- native_sim
- qemu_x86
- qemu_x86_64
integration_platforms:
- native_posix
- native_sim

View file

@ -3,8 +3,8 @@ common:
tests:
always_timeout.dummy:
platform_allow:
- native_posix
- native_sim
- qemu_x86
- qemu_x86_64
integration_platforms:
- native_posix
- native_sim

View file

@ -3,8 +3,8 @@ common:
tests:
always_warning.dummy:
platform_allow:
- native_posix
- native_sim
- qemu_x86
- qemu_x86_64
integration_platforms:
- native_posix
- native_sim

View file

@ -1,11 +1,11 @@
tests:
one_fail_one_pass.agnostic.group1.subgroup1:
platform_allow:
- native_posix
- native_sim
- qemu_x86
- qemu_x86_64
integration_platforms:
- native_posix
- native_sim
tags:
- agnostic
- subgrouped

View file

@ -1,11 +1,11 @@
tests:
one_fail_one_pass.agnostic.group1.subgroup2:
platform_allow:
- native_posix
- native_sim
- qemu_x86
- qemu_x86_64
integration_platforms:
- native_posix
- native_sim
tags:
- agnostic
- subgrouped

View file

@ -1,11 +1,11 @@
tests:
one_fail_two_error_one_pass.agnostic.group1.subgroup1:
platform_allow:
- native_posix
- native_sim
- qemu_x86
- qemu_x86_64
integration_platforms:
- native_posix
- native_sim
tags:
- agnostic
- subgrouped

View file

@ -1,11 +1,11 @@
tests:
one_fail_two_error_one_pass.agnostic.group1.subgroup2:
platform_allow:
- native_posix
- native_sim
- qemu_x86
- qemu_x86_64
integration_platforms:
- native_posix
- native_sim
tags:
- agnostic
- subgrouped

View file

@ -1,11 +1,11 @@
tests:
one_fail_two_error_one_pass.agnostic.group1.subgroup3:
platform_allow:
- native_posix
- native_sim
- qemu_x86
- qemu_x86_64
integration_platforms:
- native_posix
- native_sim
tags:
- agnostic
- subgrouped

View file

@ -1,11 +1,11 @@
tests:
one_fail_two_error_one_pass.agnostic.group1.subgroup4:
platform_allow:
- native_posix
- native_sim
- qemu_x86
- qemu_x86_64
integration_platforms:
- native_posix
- native_sim
tags:
- agnostic
- subgrouped

View file

@ -1,8 +1,8 @@
tests:
always_overflow.dummy:
platform_allow:
- native_posix
- native_sim
- qemu_x86
- qemu_x86_64
integration_platforms:
- native_posix
- native_sim

View file

@ -1,6 +0,0 @@
tests:
seed_native_posix.dummy:
platform_allow:
- native_posix
integration_platforms:
- native_posix

View file

@ -6,7 +6,6 @@
#include <zephyr/ztest.h>
ZTEST_SUITE(a1_1_tests, NULL, NULL, NULL, NULL, NULL);
/**

View file

@ -0,0 +1,6 @@
tests:
seed_native_sim.dummy:
platform_allow:
- native_sim
integration_platforms:
- native_sim

View file

@ -53,8 +53,8 @@ class TestDevice:
@mock.patch.object(TestPlan, 'TESTSUITE_FILENAME', testsuite_filename_mock)
def test_seed(self, capfd, out_path, seed):
test_platforms = ['native_posix']
path = os.path.join(TEST_DATA, 'tests', 'seed_native_posix')
test_platforms = ['native_sim']
path = os.path.join(TEST_DATA, 'tests', 'seed_native_sim')
args = ['--outdir', out_path, '-i', '-T', path, '-vv',] + \
['--seed', f'{seed[0]}'] + \
[val for pair in zip(
@ -71,5 +71,5 @@ class TestDevice:
assert str(sys_exit.value) == '1'
expected_line = r'seed_native_posix.dummy FAILED Failed \(native (\d+\.\d+)s/seed: {}\)'.format(seed[0])
expected_line = r'seed_native_sim.dummy FAILED Failed \(native (\d+\.\d+)s/seed: {}\)'.format(seed[0])
assert re.search(expected_line, err)