summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarcus Shawcroft <marcus.shawcroft@arm.com>2016-10-24 13:36:29 +0100
committerAnas Nashif <nashif@linux.intel.com>2016-10-24 20:10:14 +0000
commit9a60286f41e9a9a5c5dce2961c5432f4abae55b1 (patch)
tree3632c2c3a765a7a3e9de742704639999148e45ff /tests
parent8d35760fec3e702296b1a5e558d1740b6c51555d (diff)
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/drivers/build_all/README.txt10
-rw-r--r--tests/drivers/build_all/sensors_a_m.conf (renamed from tests/drivers/build_all/sensors.conf)15
-rw-r--r--tests/drivers/build_all/sensors_n_z.conf16
-rw-r--r--tests/drivers/build_all/testcase.ini15
4 files changed, 38 insertions, 18 deletions
diff --git a/tests/drivers/build_all/README.txt b/tests/drivers/build_all/README.txt
index a4247edb7..39a6dd8f5 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
index ec0a46c1a..5ced100fc 100644
--- a/tests/drivers/build_all/sensors.conf
+++ b/tests/drivers/build_all/sensors_a_m.conf
@@ -1,11 +1,11 @@
+CONFIG_GPIO=y
+CONFIG_I2C=y
CONFIG_NANO_TIMEOUTS=y
+CONFIG_SENSOR=y
+CONFIG_SPI=y
CONFIG_SYS_LOG_SENSOR_LEVEL=4
-CONFIG_I2C=y
+
CONFIG_ADC=y
-CONFIG_GPIO=y
-CONFIG_SPI=y
-CONFIG_SENSOR=y
-CONFIG_LSM9DS0_MFD=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 000000000..7e0b463d6
--- /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 e108de445..7c50046da 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