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',
26 'test_distributor_perf.c',
34 'test_func_reentrancy.c',
36 'test_hash_functions.c',
37 'test_hash_multiwriter.c',
39 'test_hash_scaling.c',
54 'test_mempool_perf.c',
57 'test_mp_secondary.c',
61 'test_power_acpi_cpufreq.c',
62 'test_power_kvm_vm.c',
70 'test_service_cores.c',
75 'test_table_combined.c',
76 'test_table_pipeline.c',
78 'test_table_tables.c',
83 'test_timer_racecond.c',
110 'byteorder_autotest',
118 'distributor_autotest',
119 'distributor_perf_autotest',
120 'eal_flags_autotest',
125 'event_ring_autotest',
126 'eventdev_common_autotest',
127 'eventdev_octeontx_autotest',
128 'eventdev_sw_autotest',
129 'func_reentrancy_autotest',
130 'hash_scaling_autotest',
132 'hash_functions_autotest',
133 'hash_multiwriter_autotest',
134 'hash_perf_autotest',
135 'interrupt_autotest',
140 'lpm6_perf_autotest',
146 'memcpy_perf_autotest',
149 'mempool_perf_autotest',
152 'multiprocess_autotest',
153 'per_lcore_autotest',
155 'power_acpi_cpufreq_autotest',
157 'power_kvm_vm_autotest',
164 'ring_perf_autotest',
173 'timer_perf__autotest',
174 'timer_racecond_autotest',
179 if dpdk_conf.has('RTE_LIBRTE_PDUMP')
182 if dpdk_conf.has('RTE_LIBRTE_I40E_PMD')
183 test_deps += 'pmd_i40e'
185 if dpdk_conf.has('RTE_LIBRTE_IXGBE_PMD')
186 test_deps += 'pmd_ixgbe'
191 def_lib = get_option('default_library')
192 test_dep_objs += get_variable(def_lib + '_rte_' + d)
196 if get_option('default_library') == 'static'
197 link_libs = dpdk_drivers
200 if get_option('tests')
201 dpdk_test = executable('dpdk-test',
203 link_whole: link_libs,
204 dependencies: test_dep_objs,
205 c_args: [machine_arg, '-DALLOW_EXPERIMENTAL_API'],
206 install_rpath: driver_install_path,
209 # some perf tests (eg: memcpy perf autotest)take very long
210 # to complete, so timeout to 10 minutes
211 timeout_seconds = 600
215 env : ['DPDK_TEST='+t],
216 timeout : timeout_seconds,