From: Bruce Richardson Date: Fri, 1 May 2020 15:05:49 +0000 (+0100) Subject: test/bonding: allow disabling driver X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7f6ef1664027982e5c8f1290385d25224de19e83;p=dpdk.git test/bonding: allow disabling driver The autotest application build was partially enabled for building with the net/bond driver disabled, but a number of items were missed, leading to build errors when the driver was disabled, e.g. by simply doing "-Ddisable_drivers=net/*" when calling meson. ../app/test/test_link_bonding.c:25:10: fatal error: rte_eth_bond.h: \ No such file or directory With this fix in place, it's possible to build DPDK with meson with all non-bus, non-mempool drivers disabled i.e. using meson option -Ddisable_drivers=baseband/*,compress/*,crypto/*,event/*,net/*,raw/*,vdpa/* Signed-off-by: Bruce Richardson Acked-by: Lukasz Wojciechowski Tested-by: Lukasz Wojciechowski --- diff --git a/app/test/meson.build b/app/test/meson.build index 279457fe42..24acdabcc5 100644 --- a/app/test/meson.build +++ b/app/test/meson.build @@ -65,8 +65,6 @@ test_sources = files('commands.c', 'test_ipsec_sad.c', 'test_kni.c', 'test_kvargs.c', - 'test_link_bonding.c', - 'test_link_bonding_rssconf.c', 'test_logs.c', 'test_lpm.c', 'test_lpm6.c', @@ -138,6 +136,8 @@ test_sources = files('commands.c', ) test_deps = ['acl', + 'bus_pci', + 'bus_vdev', 'bitratestats', 'bpf', 'cfgfile', @@ -310,8 +310,6 @@ driver_test_names = [ 'cryptodev_sw_zuc_autotest', 'eventdev_selftest_octeontx', 'eventdev_selftest_sw', - 'link_bonding_autotest', - 'link_bonding_rssconf_autotest', 'rawdev_autotest', ] @@ -348,6 +346,8 @@ endif # they are used via a driver-specific API. if dpdk_conf.has('RTE_LIBRTE_BOND_PMD') test_deps += 'pmd_bond' + test_sources += ['test_link_bonding.c', 'test_link_bonding_rssconf.c'] + driver_test_names += ['link_bonding_autotest', 'link_bonding_rssconf_autotest'] endif if dpdk_conf.has('RTE_LIBRTE_RING_PMD') test_deps += 'pmd_ring'