Skip to content

Commit 7b1813e

Browse files
aescolarfabiobaltieri
authored andcommitted
tests/drivers/build_all/*: Switch to native_sim
Enable all these tests which run in native_posix in native_sim, Switch from native_posix to native_sim as default test platform And switch native_posix overlays to native_sim. Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent fd095c3 commit 7b1813e

File tree

12 files changed

+29
-11
lines changed

12 files changed

+29
-11
lines changed

tests/drivers/build_all/adc/boards/native_posix_64.overlay renamed to tests/drivers/build_all/adc/boards/native_sim_64.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6-
#include "native_posix.overlay"
6+
#include "native_sim.overlay"

tests/drivers/build_all/adc/testcase.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ tests:
77
drivers.adc.build:
88
# will cover I2C, SPI, and emul based drivers
99
platform_allow:
10-
- native_posix
11-
- native_posix_64
10+
- native_sim
11+
- native_sim_64
1212
extra_args: "CONFIG_GPIO=y"
1313
drivers.adc.cc32xx.build:
1414
platform_allow: cc3220sf_launchxl

tests/drivers/build_all/charger/testcase.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ tests:
77
- drivers
88
- charger
99
build_only: true
10-
platform_allow: native_posix
10+
platform_allow:
11+
- native_posix
12+
- native_sim

tests/drivers/build_all/dac/testcase.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ common:
66
tests:
77
drivers.dac.build:
88
# will cover I2C, SPI based drivers
9-
platform_allow: native_posix
9+
platform_allow:
10+
- native_posix
11+
- native_sim
1012
extra_args: "CONFIG_GPIO=y"
1113
drivers.dac.mcux.build:
1214
platform_allow: frdm_k22f

tests/drivers/build_all/fpga/testcase.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ common:
22
tags:
33
- drivers
44
- sensors
5-
platform_allow: native_posix
5+
platform_allow:
6+
- native_posix
7+
- native_sim
68
build_only: true
79
tests:
810
drivers.fpga.build:

tests/drivers/build_all/ieee802154/testcase.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ common:
55
build_only: true
66
tests:
77
ieee802154.build.external:
8-
platform_allow: native_posix
8+
platform_allow:
9+
- native_posix
10+
- native_sim
911
ieee802154.build.cc13xx_cc26xx:
1012
platform_allow: cc1352r_sensortag
1113
ieee802154.build.kw41z:

tests/drivers/build_all/input/testcase.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ common:
33
- drivers
44
- input
55
build_only: true
6-
platform_allow: native_posix
6+
platform_allow:
7+
- native_posix
8+
- native_sim
79
tests:
810
drivers.input.default: {}
911

tests/drivers/build_all/mfd/testcase.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ common:
55
- mfd
66
tests:
77
drivers.mfd.build:
8-
platform_allow: native_posix
8+
platform_allow:
9+
- native_posix
10+
- native_sim

tests/drivers/build_all/modem/testcase.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ tests:
7979
platform_allow:
8080
- native_posix_64
8181
- native_posix
82+
- native_sim_64
83+
- native_sim
8284
- qemu_x86
8385
- qemu_x86_64
8486
min_ram: 36

0 commit comments

Comments
 (0)