]> git.droids-corp.org - dpdk.git/commitdiff
test: fix dependency on pcapng
authorDavid Marchand <david.marchand@redhat.com>
Mon, 8 Nov 2021 10:09:19 +0000 (11:09 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 10 Nov 2021 10:42:34 +0000 (11:42 +0100)
The unit test code should depend on the pcapng library.

Fixes: 7a944656b33f ("test/pcapng: test pcapng library")
Signed-off-by: David Marchand <david.marchand@redhat.com>
app/test/meson.build

index abab3fbb1d8b7202c62de5a96f2dc680230dec42..a968abac76442540b664590621489caa22274b28 100644 (file)
@@ -413,7 +413,10 @@ endif
 
 if dpdk_conf.has('RTE_HAS_LIBPCAP')
     ext_deps += pcap_dep
-    test_sources += 'test_pcapng.c'
+    if dpdk_conf.has('RTE_LIB_PCAPNG')
+        test_deps += 'pcapng'
+        test_sources += 'test_pcapng.c'
+    endif
 endif
 
 if dpdk_conf.has('RTE_LIB_POWER')