From 9a60286f41e9a9a5c5dce2961c5432f4abae55b1 Mon Sep 17 00:00:00 2001 From: Marcus Shawcroft Date: Mon, 24 Oct 2016 13:36:29 +0100 Subject: [PATCH] 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 --- tests/drivers/build_all/README.txt | 10 +++++----- .../{sensors.conf => sensors_a_m.conf} | 17 +++++++---------- tests/drivers/build_all/sensors_n_z.conf | 16 ++++++++++++++++ tests/drivers/build_all/testcase.ini | 15 +++++++++++---- 4 files changed, 39 insertions(+), 19 deletions(-) rename tests/drivers/build_all/{sensors.conf => sensors_a_m.conf} (86%) create mode 100644 tests/drivers/build_all/sensors_n_z.conf diff --git a/tests/drivers/build_all/README.txt b/tests/drivers/build_all/README.txt index a4247edb716..39a6dd8f50e 100644 --- a/tests/drivers/build_all/README.txt +++ b/tests/drivers/build_all/README.txt @@ -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 - - diff --git a/tests/drivers/build_all/sensors.conf b/tests/drivers/build_all/sensors_a_m.conf similarity index 86% rename from tests/drivers/build_all/sensors.conf rename to tests/drivers/build_all/sensors_a_m.conf index ec0a46c1a46..5ced100fc21 100644 --- a/tests/drivers/build_all/sensors.conf +++ b/tests/drivers/build_all/sensors_a_m.conf @@ -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 diff --git a/tests/drivers/build_all/sensors_n_z.conf b/tests/drivers/build_all/sensors_n_z.conf new file mode 100644 index 00000000000..7e0b463d617 --- /dev/null +++ b/tests/drivers/build_all/sensors_n_z.conf @@ -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 diff --git a/tests/drivers/build_all/testcase.ini b/tests/drivers/build_all/testcase.ini index e108de4456f..7c50046da56 100644 --- a/tests/drivers/build_all/testcase.ini +++ b/tests/drivers/build_all/testcase.ini @@ -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