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_external_mem.c',
44 'test_func_reentrancy.c',
45 'test_flow_classify.c',
47 'test_hash_functions.c',
48 'test_hash_multiwriter.c',
49 'test_hash_readwrite.c',
51 'test_hash_readwrite_lf.c',
55 'test_link_bonding.c',
56 'test_link_bonding_mode4.c',
70 'test_mempool_perf.c',
74 'test_mp_secondary.c',
78 'test_pmd_ring_perf.c',
80 'test_power_acpi_cpufreq.c',
81 'test_power_kvm_vm.c',
83 'test_reciprocal_division.c',
84 'test_reciprocal_division_perf.c',
91 'test_service_cores.c',
96 'test_table_combined.c',
97 'test_table_pipeline.c',
99 'test_table_tables.c',
104 'test_timer_racecond.c',
135 'byteorder_autotest',
140 'cryptodev_qat_autotest',
141 'cryptodev_aesni_mb_autotest',
142 'cryptodev_openssl_autotest',
143 'cryptodev_openssl_asym_autotest',
144 'cryptodev_aesni_gcm_autotest',
145 'cryptodev_null_autotest',
146 'cryptodev_sw_snow3g_autotest',
147 'cryptodev_sw_kasumi_autotest',
148 'cryptodev_sw_zuc_autotest',
149 'cryptodev_sw_armv8_autotest',
150 'cryptodev_sw_mvsam_autotest',
151 'cryptodev_dpaa2_sec_autotest',
152 'cryptodev_dpaa_sec_autotest',
153 'cryptodev_octeontx_autotest',
156 'delay_us_sleep_autotest',
157 'distributor_autotest',
158 'distributor_perf_autotest',
159 'eal_flags_autotest',
164 'event_crypto_adapter_autotest',
165 'event_eth_rx_adapter_autotest',
166 'event_eth_rx_intr_adapter_autotest',
167 'event_ring_autotest',
168 'event_eth_tx_adapter_autotest',
169 'event_timer_adapter_autotest',
170 'eventdev_common_autotest',
171 'eventdev_octeontx_autotest',
172 'eventdev_sw_autotest',
173 'external_mem_autotest',
175 'func_reentrancy_autotest',
176 'flow_classify_autotest',
178 'hash_functions_autotest',
179 'hash_multiwriter_autotest',
180 'hash_perf_autotest',
181 'hash_readwrite_autotest',
182 'hash_readwrite_lf_autotest',
183 'interrupt_autotest',
186 'link_bonding_autotest',
187 'link_bonding_mode4_autotest',
190 'lpm6_perf_autotest',
196 'member_perf_autotest',
198 'memcpy_perf_autotest',
201 'mempool_perf_autotest',
205 'multiprocess_autotest',
206 'per_lcore_autotest',
208 'power_acpi_cpufreq_autotest',
210 'power_kvm_vm_autotest',
212 'reciprocal_division',
213 'reciprocal_division_perf',
219 'ring_perf_autotest',
221 'ring_pmd_perf_autotest',
231 'timer_perf__autotest',
232 'timer_racecond_autotest',
237 if dpdk_conf.has('RTE_LIBRTE_PDUMP')
240 if dpdk_conf.has('RTE_LIBRTE_I40E_PMD')
241 test_deps += 'pmd_i40e'
243 if dpdk_conf.has('RTE_LIBRTE_IXGBE_PMD')
244 test_deps += 'pmd_ixgbe'
246 if dpdk_conf.has('RTE_LIBRTE_BOND_PMD')
247 test_deps += 'pmd_bond'
249 if dpdk_conf.has('RTE_LIBRTE_RING_PMD')
250 test_deps += 'pmd_ring'
252 if dpdk_conf.has('RTE_LIBRTE_POWER')
255 if dpdk_conf.has('RTE_LIBRTE_KNI')
259 cflags = machine_args
260 if cc.has_argument('-Wno-format-truncation')
261 cflags += '-Wno-format-truncation'
264 # specify -D_GNU_SOURCE unconditionally
265 cflags += '-D_GNU_SOURCE'
268 compress_test_dep = dependency('zlib', required: false)
269 if compress_test_dep.found()
270 test_dep_objs += compress_test_dep
271 test_sources += 'test_compressdev.c'
272 test_deps += 'compressdev'
273 test_names += 'compressdev_autotest'
277 def_lib = get_option('default_library')
278 test_dep_objs += get_variable(def_lib + '_rte_' + d)
280 test_dep_objs += cc.find_library('execinfo', required: false)
283 if get_option('default_library') == 'static'
284 link_libs = dpdk_drivers
287 if get_option('tests')
288 dpdk_test = executable('dpdk-test',
290 link_whole: link_libs,
291 dependencies: test_dep_objs,
292 c_args: [cflags, '-DALLOW_EXPERIMENTAL_API'],
293 install_rpath: driver_install_path,
296 # some perf tests (eg: memcpy perf autotest)take very long
297 # to complete, so timeout to 10 minutes
298 timeout_seconds = 600
302 env : ['DPDK_TEST='+t],
303 timeout : timeout_seconds,