The pcapng test requires the net_null driver to create a virtual
device. If the null driver is excluded from the build, the test
fails with:

 RTE>>pcapng_autotest
  + ------------------------------------------------------- +
  + Test Suite : Test Pcapng Unit Test Suite
 Failed to create vdev 'net_null0'

Add net_null to the meson build dependency list for the test so
that it is automatically skipped when the driver is not available.

Fixes: 0c614a0fa6c6 ("test/pcapng: cleanup")
Cc: [email protected]

Signed-off-by: Stephen Hemminger <[email protected]>
---
 app/test/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/test/meson.build b/app/test/meson.build
index 48874037eb..4fd8670e05 100644
--- a/app/test/meson.build
+++ b/app/test/meson.build
@@ -135,7 +135,7 @@ source_file_deps = {
     'test_mp_secondary.c': ['hash'],
     'test_net_ether.c': ['net'],
     'test_net_ip6.c': ['net'],
-    'test_pcapng.c': ['ethdev', 'net', 'pcapng', 'bus_vdev'],
+    'test_pcapng.c': ['net_null', 'net', 'ethdev', 'pcapng', 'bus_vdev'],
     'test_pdcp.c': ['eventdev', 'pdcp', 'net', 'timer', 'security'],
     'test_pdump.c': ['pdump'] + sample_packet_forward_deps,
     'test_per_lcore.c': [],
-- 
2.51.0

Reply via email to