tests: Adjust drivers/build_all to build for more boards.

The build_all tests contain an ever growing list of device drivers to
build.  Ideally we minimize the number of images we build, but we
already observe that some of the tests, notably sensors, is too big
for some of our supported boards.

Rather disable an ever growing list of boards as the build_all tests
get bigger it would be better to split the tests into smaller chunks
that can reasonably be expected to run on any supported board.

We split the sensor test set into two, the division is arbitrary,
based on the name of the driver.  This allows us to remove the filter
on the quark_d2000.

The current split into two groups is arbirary, in the future it is
inevitable that as the list of supported drivers grows, we will need
to further subdivied the larger tests.

Change-Id: If7ee00b3c8e1749c4c827f83d7cbc2feb70e56ad
Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
Marcus Shawcroft 2016-10-24 13:36:29 +01:00 committed by Anas Nashif
commit 9a60286f41
4 changed files with 39 additions and 19 deletions

View file

@ -1,4 +1,3 @@
Overview
--------
@ -13,10 +12,11 @@ Tests
drivers:
build all drivers
sensors:
build sensors
sensors_a_m:
build sensors with name beginning a through m.
sensors_n_z:
build sensors with name beginning n through z.
sensors_trigger:
build sensors with trigger option enabled

View file

@ -1,11 +1,11 @@
CONFIG_NANO_TIMEOUTS=y
CONFIG_SYS_LOG_SENSOR_LEVEL=4
CONFIG_I2C=y
CONFIG_ADC=y
CONFIG_GPIO=y
CONFIG_SPI=y
CONFIG_I2C=y
CONFIG_NANO_TIMEOUTS=y
CONFIG_SENSOR=y
CONFIG_LSM9DS0_MFD=y
CONFIG_SPI=y
CONFIG_SYS_LOG_SENSOR_LEVEL=4
CONFIG_ADC=y
CONFIG_AK8975=y
CONFIG_BMA280=y
CONFIG_BME280=y
@ -19,10 +19,7 @@ CONFIG_LIS3MDL=y
CONFIG_LPS25HB=y
CONFIG_LSM2DS0=y
CONFIG_LSM2DS0_GYRO=y
CONFIG_LSM9DS0_MFD=y
CONFIG_MAX44009=y
CONFIG_MCP9808=y
CONFIG_MPU6050=y
CONFIG_SH3XD=y
CONFIG_SX9500=y
CONFIG_TMP007=y
CONFIG_TMP112=y

View file

@ -0,0 +1,16 @@
CONFIG_GPIO=y
CONFIG_NANO_TIMEOUTS=y
CONFIG_SENSOR=y
CONFIG_SPI=y
CONFIG_SYS_LOG_SENSOR_LEVEL=4
CONFIG_GPIO=y
CONFIG_I2C=y
CONFIG_NANO_TIMEOUTS=y
CONFIG_SENSOR=y
CONFIG_SPI=y
CONFIG_SYS_LOG_SENSOR_LEVEL=4
CONFIG_SH3XD=y
CONFIG_SX9500=y
CONFIG_TMP007=y
CONFIG_TMP112=y

View file

@ -2,19 +2,26 @@
build_only = true
tags = drivers footprint
[test_build_sensors]
[test_build_sensors_a_m]
build_only = true
tags = drivers footprint
extra_args = CONF_FILE=sensors.conf
extra_args = CONF_FILE=sensors_a_m.conf
#Do not run for debug daily build
filter = not ((CONFIG_DEBUG or CONFIG_ASSERT) and CONFIG_SOC_QUARK_D2000)
filter = not ((CONFIG_DEBUG or CONFIG_ASSERT))
[test_build_sensors_n_z]
build_only = true
tags = drivers footprint
extra_args = CONF_FILE=sensors_n_z.conf
#Do not run for debug daily build
filter = not ((CONFIG_DEBUG or CONFIG_ASSERT))
[test_build_sensor_triggers]
build_only = true
tags = drivers footprint
extra_args = CONF_FILE=sensors_trigger.conf
#Do not run for debug daily build
filter = not ((CONFIG_DEBUG or CONFIG_ASSERT) and CONFIG_SOC_QUARK_D2000)
filter = not ((CONFIG_DEBUG or CONFIG_ASSERT))
[test_build_ethernet]
build_only = true