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',
29 'test_distributor_perf.c',
37 'test_func_reentrancy.c',
38 'test_flow_classify.c',
40 'test_hash_functions.c',
41 'test_hash_multiwriter.c',
43 'test_hash_scaling.c',
47 'test_link_bonding.c',
48 'test_link_bonding_mode4.c',
62 'test_mempool_perf.c',
65 'test_mp_secondary.c',
69 'test_pmd_ring_perf.c',
71 'test_power_acpi_cpufreq.c',
72 'test_power_kvm_vm.c',
74 'test_reciprocal_division.c',
75 'test_reciprocal_division_perf.c',
82 'test_service_cores.c',
87 'test_table_combined.c',
88 'test_table_pipeline.c',
90 'test_table_tables.c',
95 'test_timer_racecond.c',
124 'byteorder_autotest',
129 'cryptodev_qat_autotest',
130 'cryptodev_aesni_mb_autotest',
131 'cryptodev_openssl_autotest',
132 'cryptodev_aesni_gcm_autotest',
133 'cryptodev_null_autotest',
134 'cryptodev_sw_snow3g_autotest',
135 'cryptodev_sw_kasumi_autotest',
136 'cryptodev_sw_zuc_autotest',
137 'cryptodev_sw_armv8_autotest',
138 'cryptodev_sw_mrvl_autotest',
139 'cryptodev_dpaa2_sec_autotest',
140 'cryptodev_dpaa_sec_autotest',
144 'distributor_autotest',
145 'distributor_perf_autotest',
146 'eal_flags_autotest',
151 'event_ring_autotest',
152 'eventdev_common_autotest',
153 'eventdev_octeontx_autotest',
154 'eventdev_sw_autotest',
155 'func_reentrancy_autotest',
156 'flow_classify_autotest',
157 'hash_scaling_autotest',
159 'hash_functions_autotest',
160 'hash_multiwriter_autotest',
161 'hash_perf_autotest',
162 'interrupt_autotest',
165 'link_bonding_autotest',
166 'link_bonding_mode4_autotest',
169 'lpm6_perf_autotest',
175 'member_perf_autotest',
177 'memcpy_perf_autotest',
180 'mempool_perf_autotest',
183 'multiprocess_autotest',
184 'per_lcore_autotest',
186 'power_acpi_cpufreq_autotest',
188 'power_kvm_vm_autotest',
190 'reciprocal_division',
191 'reciprocal_division_perf',
197 'ring_perf_autotest',
199 'ring_pmd_perf_autotest',
209 'timer_perf__autotest',
210 'timer_racecond_autotest',
215 if dpdk_conf.has('RTE_LIBRTE_PDUMP')
218 if dpdk_conf.has('RTE_LIBRTE_I40E_PMD')
219 test_deps += 'pmd_i40e'
221 if dpdk_conf.has('RTE_LIBRTE_IXGBE_PMD')
222 test_deps += 'pmd_ixgbe'
224 if dpdk_conf.has('RTE_LIBRTE_BOND_PMD')
225 test_deps += 'pmd_bond'
227 if dpdk_conf.has('RTE_LIBRTE_RING_PMD')
228 test_deps += 'pmd_ring'
230 if dpdk_conf.has('RTE_LIBRTE_POWER')
233 if dpdk_conf.has('RTE_LIBRTE_KNI')
239 def_lib = get_option('default_library')
240 test_dep_objs += get_variable(def_lib + '_rte_' + d)
242 test_dep_objs += cc.find_library('execinfo', required: false)
245 if get_option('default_library') == 'static'
246 link_libs = dpdk_drivers
249 if get_option('tests')
250 dpdk_test = executable('dpdk-test',
252 link_whole: link_libs,
253 dependencies: test_dep_objs,
254 c_args: [machine_args, '-DALLOW_EXPERIMENTAL_API'],
255 install_rpath: driver_install_path,
258 # some perf tests (eg: memcpy perf autotest)take very long
259 # to complete, so timeout to 10 minutes
260 timeout_seconds = 600
264 env : ['DPDK_TEST='+t],
265 timeout : timeout_seconds,