From: Michael Santana <msant...@redhat.com>

Currently many unit tests fail when running tests under shared builds.
This happens because of missing driver dependencies. This is fixed by
explicitly linking in missing drivers for the test application.

before and after (clang):
https://travis-ci.com/Maickii/dpdk-2/jobs/212329160#L623
https://travis-ci.com/Maickii/dpdk-2/jobs/212335912#L620

Suggested-by: Bruce Richardson <bruce.richard...@intel.com>
Suggested-by: David Marchand <david.march...@redhat.com>
Signed-off-by: Michael Santana <msant...@redhat.com>
Signed-off-by: Aaron Conole <acon...@redhat.com>
---
 app/test/meson.build | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/app/test/meson.build b/app/test/meson.build
index c50b20275..7bf700f29 100644
--- a/app/test/meson.build
+++ b/app/test/meson.build
@@ -297,6 +297,15 @@ dump_test_names = [
         'dump_memzone',
 ]
 
+if dpdk_conf.has('RTE_LIBRTE_RING_MEMPOOL')
+       test_deps += 'mempool_ring'
+endif
+if dpdk_conf.has('RTE_LIBRTE_STACK_MEMPOOL')
+       test_deps += 'mempool_stack'
+endif
+if dpdk_conf.has('RTE_LIBRTE_SKELETON_EVENTDEV_PMD')
+       test_deps += 'pmd_skeleton_event'
+endif
 if dpdk_conf.has('RTE_LIBRTE_PDUMP')
        test_deps += 'pdump'
 endif
-- 
2.21.0

Reply via email to