Browse Source

tests/samples: add hw dependencies

Add hardware dependencies and filters to make sure we do not explode if
for example we try to build a sample/test using rtc when the platform
does not support that.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
pull/7294/head
Anas Nashif 7 years ago committed by Anas Nashif
parent
commit
b3275d651c
  1. 1
      samples/bluetooth/hci_spi/sample.yaml
  2. 1
      samples/boards/quark_se_c1000/power_mgr/sample.yaml
  3. 1
      samples/drivers/lcd_hd44780/sample.yaml
  4. 3
      samples/grove/lcd/sample.yaml
  5. 1
      samples/grove/light/sample.yaml
  6. 1
      samples/grove/temperature/sample.yaml
  7. 1
      samples/hello_world/prj.conf
  8. 2
      samples/net/irc_bot/sample.yaml
  9. 2
      tests/drivers/build_all/testcase.yaml
  10. 2
      tests/power/power_states/testcase.yaml

1
samples/bluetooth/hci_spi/sample.yaml

@ -7,3 +7,4 @@ tests: @@ -7,3 +7,4 @@ tests:
harness: bluetooth
platform_whitelist: 96b_carbon_nrf51 nrf51_pca10028
tags: samples bluetooth spi
depends_on: spi

1
samples/boards/quark_se_c1000/power_mgr/sample.yaml

@ -4,3 +4,4 @@ tests: @@ -4,3 +4,4 @@ tests:
test:
filter: (CONFIG_SOC_QUARK_SE_C1000 or CONFIG_SOC_QUARK_SE_C1000_SS)
tags: samples power
depends_on: rtc

1
samples/drivers/lcd_hd44780/sample.yaml

@ -5,3 +5,4 @@ tests: @@ -5,3 +5,4 @@ tests:
platform_whitelist: arduino_due
tags: samples
harness: display
depends_on: gpio

3
samples/grove/lcd/sample.yaml

@ -2,7 +2,6 @@ sample: @@ -2,7 +2,6 @@ sample:
name: Grove LCD Sample
tests:
test:
platform_whitelist: arduino_101_sss quark_d2000_crb
arduino_due
tags: drivers
harness: grove
depends_on: i2c

1
samples/grove/light/sample.yaml

@ -6,3 +6,4 @@ tests: @@ -6,3 +6,4 @@ tests:
arduino_due
tags: drivers sensor grove light
harness: grove
depends_on: adc

1
samples/grove/temperature/sample.yaml

@ -7,3 +7,4 @@ tests: @@ -7,3 +7,4 @@ tests:
arduino_due
tags: drivers sensor grove temperature
harness: grove
depends_on: adc

1
samples/hello_world/prj.conf

@ -1 +1,2 @@ @@ -1 +1,2 @@
# nothing here
CONFIG_BUILD_OUTPUT_STRIPPED=y

2
samples/net/irc_bot/sample.yaml

@ -3,5 +3,5 @@ sample: @@ -3,5 +3,5 @@ sample:
tests:
test:
harness: net
depends_on: netif
depends_on: netif gpio
tags: net irc

2
tests/drivers/build_all/testcase.yaml

@ -1,3 +1,5 @@ @@ -1,3 +1,5 @@
common:
depends_on: gpio spi i2c
tests:
test_build_drivers:
build_only: true

2
tests/power/power_states/testcase.yaml

@ -3,8 +3,10 @@ tests: @@ -3,8 +3,10 @@ tests:
filter: (CONFIG_SOC_QUARK_SE_C1000 or CONFIG_SOC_QUARK_SE_C1000_SS)
platform_exclude: tinytile
tags: samples power
depends_on: rtc
test_socwatch:
extra_args: CONF_FILE="prj_socwatch.conf"
filter: CONFIG_SOC_QUARK_SE_C1000
platform_exclude: tinytile
tags: samples power
depends_on: rtc

Loading…
Cancel
Save