1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Intel Corporation
4 test_sources = files('commands.c',
5 'packet_burst_generator.c',
13 'test_cmdline_cirbuf.c',
14 'test_cmdline_etheraddr.c',
15 'test_cmdline_ipaddr.c',
18 'test_cmdline_portlist.c',
19 'test_cmdline_string.c',
24 'test_cryptodev_blockcipher.c',
28 'test_distributor_perf.c',
36 'test_func_reentrancy.c',
37 'test_flow_classify.c',
39 'test_hash_functions.c',
40 'test_hash_multiwriter.c',
42 'test_hash_scaling.c',
46 'test_link_bonding.c',
47 'test_link_bonding_mode4.c',
61 'test_mempool_perf.c',
64 'test_mp_secondary.c',
68 'test_pmd_ring_perf.c',
70 'test_power_acpi_cpufreq.c',
71 'test_power_kvm_vm.c',
73 'test_reciprocal_division.c',
74 'test_reciprocal_division_perf.c',
81 'test_service_cores.c',
86 'test_table_combined.c',
87 'test_table_pipeline.c',
89 'test_table_tables.c',
94 'test_timer_racecond.c',
123 'byteorder_autotest',
128 'cryptodev_qat_autotest',
129 'cryptodev_aesni_mb_autotest',
130 'cryptodev_openssl_autotest',
131 'cryptodev_aesni_gcm_autotest',
132 'cryptodev_null_autotest',
133 'cryptodev_sw_snow3g_autotest',
134 'cryptodev_sw_kasumi_autotest',
135 'cryptodev_sw_zuc_autotest',
136 'cryptodev_sw_armv8_autotest',
137 'cryptodev_sw_mrvl_autotest',
138 'cryptodev_dpaa2_sec_autotest',
139 'cryptodev_dpaa_sec_autotest',
143 'distributor_autotest',
144 'distributor_perf_autotest',
145 'eal_flags_autotest',
150 'event_ring_autotest',
151 'eventdev_common_autotest',
152 'eventdev_octeontx_autotest',
153 'eventdev_sw_autotest',
154 'func_reentrancy_autotest',
155 'flow_classify_autotest',
156 'hash_scaling_autotest',
158 'hash_functions_autotest',
159 'hash_multiwriter_autotest',
160 'hash_perf_autotest',
161 'interrupt_autotest',
164 'link_bonding_autotest',
165 'link_bonding_mode4_autotest',
168 'lpm6_perf_autotest',
174 'member_perf_autotest',
176 'memcpy_perf_autotest',
179 'mempool_perf_autotest',
182 'multiprocess_autotest',
183 'per_lcore_autotest',
185 'power_acpi_cpufreq_autotest',
187 'power_kvm_vm_autotest',
189 'reciprocal_division',
190 'reciprocal_division_perf',
196 'ring_perf_autotest',
198 'ring_pmd_perf_autotest',
208 'timer_perf__autotest',
209 'timer_racecond_autotest',
214 if dpdk_conf.has('RTE_LIBRTE_PDUMP')
217 if dpdk_conf.has('RTE_LIBRTE_I40E_PMD')
218 test_deps += 'pmd_i40e'
220 if dpdk_conf.has('RTE_LIBRTE_IXGBE_PMD')
221 test_deps += 'pmd_ixgbe'
223 if dpdk_conf.has('RTE_LIBRTE_BOND_PMD')
224 test_deps += 'pmd_bond'
226 if dpdk_conf.has('RTE_LIBRTE_RING_PMD')
227 test_deps += 'pmd_ring'
229 if dpdk_conf.has('RTE_LIBRTE_POWER')
232 if dpdk_conf.has('RTE_LIBRTE_KNI')
238 def_lib = get_option('default_library')
239 test_dep_objs += get_variable(def_lib + '_rte_' + d)
241 test_dep_objs += cc.find_library('execinfo', required: false)
244 if get_option('default_library') == 'static'
245 link_libs = dpdk_drivers
248 if get_option('tests')
249 dpdk_test = executable('dpdk-test',
251 link_whole: link_libs,
252 dependencies: test_dep_objs,
253 c_args: [machine_args, '-DALLOW_EXPERIMENTAL_API'],
254 install_rpath: driver_install_path,
257 # some perf tests (eg: memcpy perf autotest)take very long
258 # to complete, so timeout to 10 minutes
259 timeout_seconds = 600
263 env : ['DPDK_TEST='+t],
264 timeout : timeout_seconds,