1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Intel Corporation
4 test_sources = files('commands.c',
5 'packet_burst_generator.c',
12 'test_cmdline_cirbuf.c',
13 'test_cmdline_etheraddr.c',
14 'test_cmdline_ipaddr.c',
17 'test_cmdline_portlist.c',
18 'test_cmdline_string.c',
23 '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',
79 'test_service_cores.c',
84 'test_table_combined.c',
85 'test_table_pipeline.c',
87 'test_table_tables.c',
92 'test_timer_racecond.c',
121 'byteorder_autotest',
126 'cryptodev_qat_autotest',
127 'cryptodev_aesni_mb_autotest',
128 'cryptodev_openssl_autotest',
129 'cryptodev_aesni_gcm_autotest',
130 'cryptodev_null_autotest',
131 'cryptodev_sw_snow3g_autotest',
132 'cryptodev_sw_kasumi_autotest',
133 'cryptodev_sw_zuc_autotest',
134 'cryptodev_sw_armv8_autotest',
135 'cryptodev_sw_mrvl_autotest',
136 'cryptodev_dpaa2_sec_autotest',
137 'cryptodev_dpaa_sec_autotest',
141 'distributor_autotest',
142 'distributor_perf_autotest',
143 'eal_flags_autotest',
148 'event_ring_autotest',
149 'eventdev_common_autotest',
150 'eventdev_octeontx_autotest',
151 'eventdev_sw_autotest',
152 'func_reentrancy_autotest',
153 'flow_classify_autotest',
154 'hash_scaling_autotest',
156 'hash_functions_autotest',
157 'hash_multiwriter_autotest',
158 'hash_perf_autotest',
159 'interrupt_autotest',
162 'link_bonding_autotest',
163 'link_bonding_mode4_autotest',
166 'lpm6_perf_autotest',
172 'member_perf_autotest',
174 'memcpy_perf_autotest',
177 'mempool_perf_autotest',
180 'multiprocess_autotest',
181 'per_lcore_autotest',
183 'power_acpi_cpufreq_autotest',
185 'power_kvm_vm_autotest',
192 'ring_perf_autotest',
194 'ring_pmd_perf_autotest',
204 'timer_perf__autotest',
205 'timer_racecond_autotest',
210 if dpdk_conf.has('RTE_LIBRTE_PDUMP')
213 if dpdk_conf.has('RTE_LIBRTE_I40E_PMD')
214 test_deps += 'pmd_i40e'
216 if dpdk_conf.has('RTE_LIBRTE_IXGBE_PMD')
217 test_deps += 'pmd_ixgbe'
219 if dpdk_conf.has('RTE_LIBRTE_BOND_PMD')
220 test_deps += 'pmd_bond'
222 if dpdk_conf.has('RTE_LIBRTE_RING_PMD')
223 test_deps += 'pmd_ring'
228 def_lib = get_option('default_library')
229 test_dep_objs += get_variable(def_lib + '_rte_' + d)
233 if get_option('default_library') == 'static'
234 link_libs = dpdk_drivers
237 if get_option('tests')
238 dpdk_test = executable('dpdk-test',
240 link_whole: link_libs,
241 dependencies: test_dep_objs,
242 c_args: [machine_arg, '-DALLOW_EXPERIMENTAL_API'],
243 install_rpath: driver_install_path,
246 # some perf tests (eg: memcpy perf autotest)take very long
247 # to complete, so timeout to 10 minutes
248 timeout_seconds = 600
252 env : ['DPDK_TEST='+t],
253 timeout : timeout_seconds,