Commit graph

4 commits

Author SHA1 Message Date
Alberto Escolar Piedras 73ab92e530 tests/drivers/gpio: Use hwmv2 native targets identifiers
For the 64 bit targets, change identifiers to the new hwmv2 ones.
And remove redundant overlays (which were equal for the 32
and 64 bit versions)

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-03-15 16:13:12 +01:00
Alberto Escolar Piedras 982425f818 tests/drivers/gpio/*: Switch to native_sim
Switch from native_posix to native_sim as default test platform
And switch overlays to native_sim.

For gpio_enable_disable_interrupt, also filter with
platform_allow to save time, as the dt filter requires cmake
to be run, but only the platforms with overlays provided
by the test can be run.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2023-11-22 09:53:20 +01:00
Anas Nashif 345735d0a8 tests: remove CONFIG_ZTEST_NEW_API in all tests
Remove all usage of CONFIG_ZTEST_NEW_API from tests and sample as this
is now enabled by default.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2023-10-20 15:04:29 +02:00
Andrey VOLKOV abfd234060 tests: gpio: add tests for GPIO_DT_RESERVED_RANGES_NGPIOS et al
Added basic test coverage for the:

   * GPIO_DT_RESERVED_RANGES_NGPIOS,
   * GPIO_DT_RESERVED_RANGES,
   * GPIO_DT_INST_RESERVED_RANGES_NGPIOS,
   * GPIO_DT_INST_RESERVED_RANGES,
   * GPIO_DT_PORT_PIN_MASK_NGPIOS_EXC,
   * GPIO_PORT_PIN_MASK_FROM_DT_NODE,
   * GPIO_DT_INST_PORT_PIN_MASK_NGPIOS_EXC and
   * GPIO_PORT_PIN_MASK_FROM_DT_INST macros.

Signed-off-by: Andrey VOLKOV <andrey.volkov@munic.io>
2023-07-13 12:16:44 +02:00