Skip to content
Permalink
Browse files

tests: pwm_api: remove whitelisting

Remove whitelisting and enable broader testing on all boards with needed
features.
Add pwm to board yaml where it applies.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
  • Loading branch information...
nashif committed Jul 6, 2019
1 parent 1cba042 commit 5f24b419bb43e41ed81a65a1358762876362ce8f
@@ -17,5 +17,6 @@ supported:
- watchdog
- hwinfo
- can
- pwm
testing:
default: true
@@ -10,3 +10,4 @@ ram: 24
flash: 192
supported:
- counter
- pwm
@@ -8,3 +8,5 @@ toolchain:
- xtools
ram: 64
flash: 512
supported:
- pwm
@@ -10,3 +10,4 @@ supported:
- usb_device
- ble
- ieee802154
- pwm
@@ -32,12 +32,16 @@
#include <zephyr.h>
#include <ztest.h>

#ifdef CONFIG_PWM_QMSI_DEV_NAME
#define PWM_DEV_NAME CONFIG_PWM_QMSI_DEV_NAME
#elif defined CONFIG_BOARD_COLIBRI_IMX7D_M4
#define PWM_DEV_NAME PWM_1_LABEL
#elif defined CONFIG_BOARD_SAM_E70_XPLAINED
#define PWM_DEV_NAME DT_INST_0_ATMEL_SAM_PWM_LABEL
#if defined(DT_ALIAS_PWM_0_LABEL)
#define PWM_DEV_NAME DT_ALIAS_PWM_0_LABEL
#elif defined(DT_ALIAS_PWM_1_LABEL)
#define PWM_DEV_NAME DT_ALIAS_PWM_1_LABEL
#elif defined(DT_ALIAS_PWM_2_LABEL)
#define PWM_DEV_NAME DT_ALIAS_PWM_2_LABEL
#elif defined(DT_ALIAS_PWM_3_LABEL)
#define PWM_DEV_NAME DT_ALIAS_PWM_3_LABEL
#else
#error "Define a PWM device"
#endif

#ifdef CONFIG_BOARD_COLIBRI_IMX7D_M4
@@ -1,7 +1,5 @@
tests:
peripheral.pwm:
# FIXME: We should remove those and just rely on depends_on
platform_whitelist: quark_se_c1000_devboard quark_se_c1000_ss_devboard
arduino_101 arduino_101_sss colibri_imx7d_m4 sam_e70_xplained
tags: drivers pwm
filter: DT_ALIAS_PWM_0_LABEL or DT_ALIAS_PWM_1_LABEL or DT_ALIAS_PWM_2_LABEL or DT_ALIAS_PWM_3_LABEL
depends_on: pwm

0 comments on commit 5f24b41

Please sign in to comment.
You can’t perform that action at this time.