summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarcus Shawcroft <marcus.shawcroft@arm.com>2016-10-11 10:40:44 +0100
committerAnas Nashif <nashif@linux.intel.com>2016-10-15 16:44:07 +0000
commitf163e110343f1c273fc387a7d743bcd0ece6d3e0 (patch)
tree3029f6851b7dcebe14d73ede7ec78b93af72d9be /tests
parent14aa67cbd1f2870580ac3fea859c839bbdc24b7f (diff)
tests: Add ethernet drivers to drivers/build_all
Extend the driver build_all tests to include a test for ethernet drivers. Change-Id: I2b01d547001d3fae45cda3bc95a74c35fd75ab2b Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/drivers/build_all/ethernet.conf11
-rw-r--r--tests/drivers/build_all/testcase.ini5
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/drivers/build_all/ethernet.conf b/tests/drivers/build_all/ethernet.conf
new file mode 100644
index 000000000..720adbcf5
--- /dev/null
+++ b/tests/drivers/build_all/ethernet.conf
@@ -0,0 +1,11 @@
+CONFIG_NETWORKING=y
+CONFIG_ETHERNET=y
+
+# No board will enable the generic SPI hosted enc28j60 driver by
+# default, force it on:
+CONFIG_SPI=y
+CONFIG_ETH_ENC28J60=y
+CONFIG_ETH_ENC28J60_0=y
+CONFIG_ETH_ENC28J60_0_MAC2=0x02
+CONFIG_ETH_ENC28J60_0_MAC3=0xde
+CONFIG_ETH_ENC28J60_0_MAC4=0xad
diff --git a/tests/drivers/build_all/testcase.ini b/tests/drivers/build_all/testcase.ini
index b7873fccc..8b16d49eb 100644
--- a/tests/drivers/build_all/testcase.ini
+++ b/tests/drivers/build_all/testcase.ini
@@ -11,3 +11,8 @@ extra_args = CONF_FILE=sensors.conf
build_only = true
tags = drivers footprint
extra_args = CONF_FILE=sensors_trigger.conf
+
+[test_build_ethernet]
+build_only = true
+tags = drivers footprint
+extra_args = CONF_FILE=ethernet.conf