test/drivers/gpio: add tests for new API

Test that the new port API functions all behave as expected, including
physical vs logical level for input and output as well as masked and
set-based output operations.  Also tests the new pin API functions.

For running on real hardware this test now uses a local test-specific
devicetree binding.  For build-only tests any platform with a GPIO
alias should be tested.

The new code increases flash requirements so add a filter to exclude
platforms that won't link.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
Peter Bigot 2019-11-13 11:01:37 -06:00 committed by Carles Cufí
commit ae7a59eae4
11 changed files with 692 additions and 3 deletions

View file

@ -3,4 +3,6 @@ tests:
tags: drivers gpio
depends_on: gpio
harness: loopback # see documentation
filter: dt_alias_exists("gpio-0") or dt_alias_exists("gpio-1")
min_flash: 34
filter: dt_compat_enabled("test,gpio_basic_api") or
dt_alias_exists("gpio-0") or dt_alias_exists("gpio-1")