tests/drivers/build_all: Don't test on native_posix
native_posix is now deprecated. Building these tests in both native_sim and native_posix does not improve coverage for the tests or subsystem but doubles CI time. As anyhow native_posix will be removed all together in 2 releases, let's remove it already for these. Note: Some drivers tests for which there is native specific driver which will or may be built differently in native_sim and native_posix have been left enabled for native_posix Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
parent
98ac30d1c5
commit
081c3638e1
13 changed files with 79 additions and 96 deletions
|
@ -8,5 +8,4 @@ tests:
|
|||
- charger
|
||||
build_only: true
|
||||
platform_allow:
|
||||
- native_posix
|
||||
- native_sim
|
||||
|
|
|
@ -7,7 +7,6 @@ tests:
|
|||
drivers.dac.build:
|
||||
# will cover I2C, SPI based drivers
|
||||
platform_allow:
|
||||
- native_posix
|
||||
- native_sim
|
||||
extra_args: "CONFIG_GPIO=y"
|
||||
drivers.dac.mcux.build:
|
||||
|
|
|
@ -3,7 +3,6 @@ common:
|
|||
- drivers
|
||||
- sensors
|
||||
platform_allow:
|
||||
- native_posix
|
||||
- native_sim
|
||||
build_only: true
|
||||
tests:
|
||||
|
|
|
@ -1,82 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Commonwealth Scientific and Industrial Research
|
||||
* Organisation (CSIRO) ABN 41 687 119 230.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/ {
|
||||
test {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
test_gpio: gpio@deadbeef {
|
||||
compatible = "vnd,gpio";
|
||||
gpio-controller;
|
||||
reg = <0xdeadbeef 0x1000>;
|
||||
#gpio-cells = <0x2>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
test_spi: spi@33334444 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "vnd,spi";
|
||||
reg = <0x33334444 0x1000>;
|
||||
status = "okay";
|
||||
clock-frequency = <2000000>;
|
||||
|
||||
/* one entry for every SPI device */
|
||||
cs-gpios = <&test_gpio 0 0>,
|
||||
<&test_gpio 0 0>,
|
||||
<&test_gpio 0 0>,
|
||||
<&test_gpio 0 0>;
|
||||
|
||||
test_spi_cc1200: cc1200@0 {
|
||||
compatible = "ti,cc1200";
|
||||
reg = <0x0>;
|
||||
spi-max-frequency = <0>;
|
||||
int-gpios = <&test_gpio 0 0>;
|
||||
status= "okay";
|
||||
};
|
||||
|
||||
test_spi_cc2520: cc2520@1 {
|
||||
compatible = "ti,cc2520";
|
||||
reg = <0x1>;
|
||||
spi-max-frequency = <0>;
|
||||
vreg-en-gpios = <&test_gpio 0 0>;
|
||||
reset-gpios = <&test_gpio 0 0>;
|
||||
fifo-gpios = <&test_gpio 0 0>;
|
||||
cca-gpios = <&test_gpio 0 0>;
|
||||
sfd-gpios = <&test_gpio 0 0>;
|
||||
fifop-gpios = <&test_gpio 0 0>;
|
||||
status= "okay";
|
||||
|
||||
crypto {
|
||||
compatible = "ti,cc2520-crypto";
|
||||
status= "okay";
|
||||
};
|
||||
};
|
||||
|
||||
test_spi_dw1000: dw1000@2 {
|
||||
compatible = "decawave,dw1000";
|
||||
reg = <0x2>;
|
||||
spi-max-frequency = <0>;
|
||||
int-gpios = <&test_gpio 0 0>;
|
||||
reset-gpios =<&test_gpio 0 0>;
|
||||
status= "okay";
|
||||
};
|
||||
|
||||
test_spi_rf2xx: rf2xx@3 {
|
||||
compatible = "atmel,rf2xx";
|
||||
reg = <0x3>;
|
||||
spi-max-frequency = <0>;
|
||||
irq-gpios = <&test_gpio 0 0>;
|
||||
reset-gpios = <&test_gpio 0 0>;
|
||||
slptr-gpios = <&test_gpio 0 0>;
|
||||
dig2-gpios = <&test_gpio 0 0>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
|
@ -1,6 +1,82 @@
|
|||
/*
|
||||
* Copyright (c) 2024 TOKITA Hiroshi
|
||||
* Copyright (c) 2021, Commonwealth Scientific and Industrial Research
|
||||
* Organisation (CSIRO) ABN 41 687 119 230.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include "native_posix.overlay"
|
||||
/ {
|
||||
test {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
test_gpio: gpio@deadbeef {
|
||||
compatible = "vnd,gpio";
|
||||
gpio-controller;
|
||||
reg = <0xdeadbeef 0x1000>;
|
||||
#gpio-cells = <0x2>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
test_spi: spi@33334444 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
compatible = "vnd,spi";
|
||||
reg = <0x33334444 0x1000>;
|
||||
status = "okay";
|
||||
clock-frequency = <2000000>;
|
||||
|
||||
/* one entry for every SPI device */
|
||||
cs-gpios = <&test_gpio 0 0>,
|
||||
<&test_gpio 0 0>,
|
||||
<&test_gpio 0 0>,
|
||||
<&test_gpio 0 0>;
|
||||
|
||||
test_spi_cc1200: cc1200@0 {
|
||||
compatible = "ti,cc1200";
|
||||
reg = <0x0>;
|
||||
spi-max-frequency = <0>;
|
||||
int-gpios = <&test_gpio 0 0>;
|
||||
status= "okay";
|
||||
};
|
||||
|
||||
test_spi_cc2520: cc2520@1 {
|
||||
compatible = "ti,cc2520";
|
||||
reg = <0x1>;
|
||||
spi-max-frequency = <0>;
|
||||
vreg-en-gpios = <&test_gpio 0 0>;
|
||||
reset-gpios = <&test_gpio 0 0>;
|
||||
fifo-gpios = <&test_gpio 0 0>;
|
||||
cca-gpios = <&test_gpio 0 0>;
|
||||
sfd-gpios = <&test_gpio 0 0>;
|
||||
fifop-gpios = <&test_gpio 0 0>;
|
||||
status= "okay";
|
||||
|
||||
crypto {
|
||||
compatible = "ti,cc2520-crypto";
|
||||
status= "okay";
|
||||
};
|
||||
};
|
||||
|
||||
test_spi_dw1000: dw1000@2 {
|
||||
compatible = "decawave,dw1000";
|
||||
reg = <0x2>;
|
||||
spi-max-frequency = <0>;
|
||||
int-gpios = <&test_gpio 0 0>;
|
||||
reset-gpios =<&test_gpio 0 0>;
|
||||
status= "okay";
|
||||
};
|
||||
|
||||
test_spi_rf2xx: rf2xx@3 {
|
||||
compatible = "atmel,rf2xx";
|
||||
reg = <0x3>;
|
||||
spi-max-frequency = <0>;
|
||||
irq-gpios = <&test_gpio 0 0>;
|
||||
reset-gpios = <&test_gpio 0 0>;
|
||||
slptr-gpios = <&test_gpio 0 0>;
|
||||
dig2-gpios = <&test_gpio 0 0>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include "native_posix.overlay"
|
||||
#include "native_sim.overlay"
|
||||
|
|
|
@ -6,7 +6,6 @@ common:
|
|||
tests:
|
||||
drivers.ieee802154.build.external:
|
||||
platform_allow:
|
||||
- native_posix
|
||||
- native_sim
|
||||
- native_sim/native/64
|
||||
drivers.ieee802154.build.cc13xx_cc26xx:
|
||||
|
|
|
@ -6,5 +6,4 @@ common:
|
|||
tests:
|
||||
drivers.mfd.build:
|
||||
platform_allow:
|
||||
- native_posix
|
||||
- native_sim
|
||||
|
|
|
@ -8,5 +8,4 @@ tests:
|
|||
- regulator
|
||||
build_only: true
|
||||
platform_allow:
|
||||
- native_posix
|
||||
- native_sim
|
||||
|
|
|
@ -16,7 +16,5 @@ tests:
|
|||
extra_configs:
|
||||
- CONFIG_I2C=y
|
||||
platform_allow:
|
||||
- native_posix
|
||||
- native_posix/native/64
|
||||
- native_sim
|
||||
- native_sim/native/64
|
||||
|
|
|
@ -3,7 +3,6 @@ common:
|
|||
- drivers
|
||||
- sensors
|
||||
platform_allow:
|
||||
- native_posix
|
||||
- native_sim
|
||||
integration_platforms:
|
||||
- native_sim
|
||||
|
|
|
@ -8,5 +8,4 @@ tests:
|
|||
- stepper
|
||||
build_only: true
|
||||
platform_allow:
|
||||
- native_posix
|
||||
- native_sim
|
||||
|
|
|
@ -6,7 +6,6 @@ common:
|
|||
tests:
|
||||
drivers.video.build:
|
||||
platform_allow:
|
||||
- native_posix
|
||||
- native_sim
|
||||
min_ram: 32
|
||||
depends_on:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue