Unit tests to be sure drivers will load
Change-Id: I95cd5c7ffa52727cab409541b7dd0e6d5a8d0bd4
diff --git a/drivers/bti/BUCK b/drivers/bti/BUCK
index 90ab148..b80854c 100644
--- a/drivers/bti/BUCK
+++ b/drivers/bti/BUCK
@@ -8,8 +8,14 @@
'//lib:mibs-net-snmp',
]
+TEST_DEPS = [
+ '//lib:TEST_ADAPTERS',
+ '//core/api:onos-api-tests',
+]
+
osgi_jar_with_tests (
deps = COMPILE_DEPS,
+ test_deps = TEST_DEPS,
resources_root = 'src/main/resources',
resources = glob(['src/main/resources/**']),
)
diff --git a/drivers/bti/src/test/java/org/onosproject/drivers/bti/BtiDriversLoaderTest.java b/drivers/bti/src/test/java/org/onosproject/drivers/bti/BtiDriversLoaderTest.java
new file mode 100644
index 0000000..b90c82e
--- /dev/null
+++ b/drivers/bti/src/test/java/org/onosproject/drivers/bti/BtiDriversLoaderTest.java
@@ -0,0 +1,16 @@
+package org.onosproject.drivers.bti;
+
+
+import org.junit.Before;
+import org.onosproject.net.driver.AbstractDriverLoaderTest;
+
+/**
+ * BTI Drivers loader test.
+ */
+public class BtiDriversLoaderTest extends AbstractDriverLoaderTest {
+
+ @Before
+ public void setUp() {
+ loader = new BtiDriversLoader();
+ }
+}