1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Intel Corporation
4 test_sources = files('commands.c',
5 'packet_burst_generator.c',
14 'test_cmdline_cirbuf.c',
15 'test_cmdline_etheraddr.c',
16 'test_cmdline_ipaddr.c',
19 'test_cmdline_portlist.c',
20 'test_cmdline_string.c',
25 'test_cryptodev_asym.c',
26 'test_cryptodev_blockcipher.c',
30 'test_distributor_perf.c',
36 'test_event_crypto_adapter.c',
37 'test_event_eth_rx_adapter.c',
39 'test_event_eth_tx_adapter.c',
40 'test_event_timer_adapter.c',
42 'test_func_reentrancy.c',
43 'test_flow_classify.c',
45 'test_hash_functions.c',
46 'test_hash_multiwriter.c',
48 'test_hash_scaling.c',
52 'test_link_bonding.c',
53 'test_link_bonding_mode4.c',
67 'test_mempool_perf.c',
70 'test_mp_secondary.c',
74 'test_pmd_ring_perf.c',
76 'test_power_acpi_cpufreq.c',
77 'test_power_kvm_vm.c',
79 'test_reciprocal_division.c',
80 'test_reciprocal_division_perf.c',
87 'test_service_cores.c',
92 'test_table_combined.c',
93 'test_table_pipeline.c',
95 'test_table_tables.c',
100 'test_timer_racecond.c',
130 'byteorder_autotest',
135 'cryptodev_qat_autotest',
136 'cryptodev_aesni_mb_autotest',
137 'cryptodev_openssl_autotest',
138 'cryptodev_openssl_asym_autotest',
139 'cryptodev_aesni_gcm_autotest',
140 'cryptodev_null_autotest',
141 'cryptodev_sw_snow3g_autotest',
142 'cryptodev_sw_kasumi_autotest',
143 'cryptodev_sw_zuc_autotest',
144 'cryptodev_sw_armv8_autotest',
145 'cryptodev_sw_mvsam_autotest',
146 'cryptodev_dpaa2_sec_autotest',
147 'cryptodev_dpaa_sec_autotest',
151 'distributor_autotest',
152 'distributor_perf_autotest',
153 'eal_flags_autotest',
158 'event_crypto_adapter_autotest',
159 'event_eth_rx_adapter_autotest',
160 'event_eth_rx_intr_adapter_autotest',
161 'event_ring_autotest',
162 'event_eth_tx_adapter_autotest',
163 'event_timer_adapter_autotest',
164 'eventdev_common_autotest',
165 'eventdev_octeontx_autotest',
166 'eventdev_sw_autotest',
167 'external_mem_autotest',
168 'func_reentrancy_autotest',
169 'flow_classify_autotest',
170 'hash_scaling_autotest',
172 'hash_functions_autotest',
173 'hash_multiwriter_autotest',
174 'hash_perf_autotest',
175 'interrupt_autotest',
178 'link_bonding_autotest',
179 'link_bonding_mode4_autotest',
182 'lpm6_perf_autotest',
188 'member_perf_autotest',
190 'memcpy_perf_autotest',
193 'mempool_perf_autotest',
196 'multiprocess_autotest',
197 'per_lcore_autotest',
199 'power_acpi_cpufreq_autotest',
201 'power_kvm_vm_autotest',
203 'reciprocal_division',
204 'reciprocal_division_perf',
210 'ring_perf_autotest',
212 'ring_pmd_perf_autotest',
222 'timer_perf__autotest',
223 'timer_racecond_autotest',
228 if dpdk_conf.has('RTE_LIBRTE_PDUMP')
231 if dpdk_conf.has('RTE_LIBRTE_I40E_PMD')
232 test_deps += 'pmd_i40e'
234 if dpdk_conf.has('RTE_LIBRTE_IXGBE_PMD')
235 test_deps += 'pmd_ixgbe'
237 if dpdk_conf.has('RTE_LIBRTE_BOND_PMD')
238 test_deps += 'pmd_bond'
240 if dpdk_conf.has('RTE_LIBRTE_RING_PMD')
241 test_deps += 'pmd_ring'
243 if dpdk_conf.has('RTE_LIBRTE_POWER')
246 if dpdk_conf.has('RTE_LIBRTE_KNI')
250 cflags = machine_args
251 if cc.has_argument('-Wno-format-truncation')
252 cflags += '-Wno-format-truncation'
256 compress_test_dep = dependency('zlib', required: false)
257 if compress_test_dep.found()
258 test_dep_objs += compress_test_dep
259 test_sources += 'test_compressdev.c'
260 test_deps += 'compressdev'
261 test_names += 'compressdev_autotest'
265 def_lib = get_option('default_library')
266 test_dep_objs += get_variable(def_lib + '_rte_' + d)
268 test_dep_objs += cc.find_library('execinfo', required: false)
271 if get_option('default_library') == 'static'
272 link_libs = dpdk_drivers
275 if get_option('tests')
276 dpdk_test = executable('dpdk-test',
278 link_whole: link_libs,
279 dependencies: test_dep_objs,
280 c_args: [cflags, '-DALLOW_EXPERIMENTAL_API'],
281 install_rpath: driver_install_path,
284 # some perf tests (eg: memcpy perf autotest)take very long
285 # to complete, so timeout to 10 minutes
286 timeout_seconds = 600
290 env : ['DPDK_TEST='+t],
291 timeout : timeout_seconds,