Skip to content
Permalink
Browse files

tests: i2c: remove whitelisting

Remove whitelisting and make the test more generic. This test was only
building on 1 board basically, now with the new filters it builds on 24.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
  • Loading branch information...
nashif committed Jul 6, 2019
1 parent 5c48520 commit e7b615e436e742a7579249a369fa622d82c81718
Showing with 8 additions and 5 deletions.
  1. +7 −3 tests/drivers/i2c/i2c_api/src/test_i2c.c
  2. +1 −2 tests/drivers/i2c/i2c_api/testcase.yaml
@@ -16,10 +16,14 @@
#include <zephyr.h>
#include <ztest.h>

#ifdef CONFIG_ARC
#define I2C_DEV_NAME DT_I2C_SS_0_NAME
#if defined(DT_ALIAS_I2C_0_LABEL)
#define I2C_DEV_NAME DT_ALIAS_I2C_0_LABEL
#elif defined(DT_ALIAS_I2C_1_LABEL)
#define I2C_DEV_NAME DT_ALIAS_I2C_1_LABEL
#elif defined(DT_ALIAS_I2C_2_LABEL)
#define I2C_DEV_NAME DT_ALIAS_I2C_2_LABEL
#else
#define I2C_DEV_NAME CONFIG_I2C_0_NAME
#error "Please set the correct I2C device"
#endif

u32_t i2c_cfg = I2C_SPEED_SET(I2C_SPEED_STANDARD) | I2C_MODE_MASTER;
@@ -3,5 +3,4 @@ tests:
depends_on: i2c
tags: drivers i2c
harness: sensor
#FIXME: We should remove those and just rely on depends_on, test now is HW specific
platform_whitelist: quark_se_c1000_devboard quark_se_c1000_ss_devboard
filter: DT_ALIAS_I2C_0_LABEL or DT_ALIAS_I2C_1_LABEL or DT_ALIAS_I2C_2_LABEL

0 comments on commit e7b615e

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