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',
38 'test_func_reentrancy.c',
39 'test_flow_classify.c',
41 'test_hash_functions.c',
42 'test_hash_multiwriter.c',
44 'test_hash_scaling.c',
48 'test_link_bonding.c',
49 'test_link_bonding_mode4.c',
63 'test_mempool_perf.c',
66 'test_mp_secondary.c',
70 'test_pmd_ring_perf.c',
72 'test_power_acpi_cpufreq.c',
73 'test_power_kvm_vm.c',
75 'test_reciprocal_division.c',
76 'test_reciprocal_division_perf.c',
83 'test_service_cores.c',
88 'test_table_combined.c',
89 'test_table_pipeline.c',
91 'test_table_tables.c',
96 'test_timer_racecond.c',
126 'byteorder_autotest',
131 'cryptodev_qat_autotest',
132 'cryptodev_aesni_mb_autotest',
133 'cryptodev_openssl_autotest',
134 'cryptodev_openssl_asym_autotest',
135 'cryptodev_aesni_gcm_autotest',
136 'cryptodev_null_autotest',
137 'cryptodev_sw_snow3g_autotest',
138 'cryptodev_sw_kasumi_autotest',
139 'cryptodev_sw_zuc_autotest',
140 'cryptodev_sw_armv8_autotest',
141 'cryptodev_sw_mvsam_autotest',
142 'cryptodev_dpaa2_sec_autotest',
143 'cryptodev_dpaa_sec_autotest',
147 'distributor_autotest',
148 'distributor_perf_autotest',
149 'eal_flags_autotest',
154 'event_ring_autotest',
155 'eventdev_common_autotest',
156 'eventdev_octeontx_autotest',
157 'eventdev_sw_autotest',
158 'func_reentrancy_autotest',
159 'flow_classify_autotest',
160 'hash_scaling_autotest',
162 'hash_functions_autotest',
163 'hash_multiwriter_autotest',
164 'hash_perf_autotest',
165 'interrupt_autotest',
168 'link_bonding_autotest',
169 'link_bonding_mode4_autotest',
172 'lpm6_perf_autotest',
178 'member_perf_autotest',
180 'memcpy_perf_autotest',
183 'mempool_perf_autotest',
186 'multiprocess_autotest',
187 'per_lcore_autotest',
189 'power_acpi_cpufreq_autotest',
191 'power_kvm_vm_autotest',
193 'reciprocal_division',
194 'reciprocal_division_perf',
200 'ring_perf_autotest',
202 'ring_pmd_perf_autotest',
212 'timer_perf__autotest',
213 'timer_racecond_autotest',
218 if dpdk_conf.has('RTE_LIBRTE_PDUMP')
221 if dpdk_conf.has('RTE_LIBRTE_I40E_PMD')
222 test_deps += 'pmd_i40e'
224 if dpdk_conf.has('RTE_LIBRTE_IXGBE_PMD')
225 test_deps += 'pmd_ixgbe'
227 if dpdk_conf.has('RTE_LIBRTE_BOND_PMD')
228 test_deps += 'pmd_bond'
230 if dpdk_conf.has('RTE_LIBRTE_RING_PMD')
231 test_deps += 'pmd_ring'
233 if dpdk_conf.has('RTE_LIBRTE_POWER')
236 if dpdk_conf.has('RTE_LIBRTE_KNI')
240 cflags = machine_args
241 if cc.has_argument('-Wno-format-truncation')
242 cflags += '-Wno-format-truncation'
246 compress_test_dep = dependency('zlib', required: false)
247 if compress_test_dep.found()
248 test_dep_objs += compress_test_dep
249 test_sources += 'test_compressdev.c'
250 test_deps += 'compressdev'
251 test_names += 'compressdev_autotest'
255 def_lib = get_option('default_library')
256 test_dep_objs += get_variable(def_lib + '_rte_' + d)
258 test_dep_objs += cc.find_library('execinfo', required: false)
261 if get_option('default_library') == 'static'
262 link_libs = dpdk_drivers
265 if get_option('tests')
266 dpdk_test = executable('dpdk-test',
268 link_whole: link_libs,
269 dependencies: test_dep_objs,
270 c_args: [cflags, '-DALLOW_EXPERIMENTAL_API'],
271 install_rpath: driver_install_path,
274 # some perf tests (eg: memcpy perf autotest)take very long
275 # to complete, so timeout to 10 minutes
276 timeout_seconds = 600
280 env : ['DPDK_TEST='+t],
281 timeout : timeout_seconds,