eventdev: add test for eth Tx adapter
[dpdk.git] / test / test / meson.build
1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2017 Intel Corporation
3
4 test_sources = files('commands.c',
5         'packet_burst_generator.c',
6         'test.c',
7         'test_acl.c',
8         'test_alarm.c',
9         'test_atomic.c',
10         'test_barrier.c',
11         'test_bpf.c',
12         'test_byteorder.c',
13         'test_cmdline.c',
14         'test_cmdline_cirbuf.c',
15         'test_cmdline_etheraddr.c',
16         'test_cmdline_ipaddr.c',
17         'test_cmdline_lib.c',
18         'test_cmdline_num.c',
19         'test_cmdline_portlist.c',
20         'test_cmdline_string.c',
21         'test_common.c',
22         'test_cpuflags.c',
23         'test_crc.c',
24         'test_cryptodev.c',
25         'test_cryptodev_asym.c',
26         'test_cryptodev_blockcipher.c',
27         'test_cycles.c',
28         'test_debug.c',
29         'test_distributor.c',
30         'test_distributor_perf.c',
31         'test_eal_flags.c',
32         'test_eal_fs.c',
33         'test_efd.c',
34         'test_efd_perf.c',
35         'test_errno.c',
36         'test_event_ring.c',
37         'test_event_eth_tx_adapter.c',
38         'test_eventdev.c',
39         'test_func_reentrancy.c',
40         'test_flow_classify.c',
41         'test_hash.c',
42         'test_hash_functions.c',
43         'test_hash_multiwriter.c',
44         'test_hash_perf.c',
45         'test_hash_scaling.c',
46         'test_interrupts.c',
47         'test_kni.c',
48         'test_kvargs.c',
49         'test_link_bonding.c',
50         'test_link_bonding_mode4.c',
51         'test_logs.c',
52         'test_lpm.c',
53         'test_lpm6.c',
54         'test_lpm6_perf.c',
55         'test_lpm_perf.c',
56         'test_malloc.c',
57         'test_mbuf.c',
58         'test_member.c',
59         'test_member_perf.c',
60         'test_memcpy.c',
61         'test_memcpy_perf.c',
62         'test_memory.c',
63         'test_mempool.c',
64         'test_mempool_perf.c',
65         'test_memzone.c',
66         'test_meter.c',
67         'test_mp_secondary.c',
68         'test_per_lcore.c',
69         'test_pmd_perf.c',
70         'test_pmd_ring.c',
71         'test_pmd_ring_perf.c',
72         'test_power.c',
73         'test_power_acpi_cpufreq.c',
74         'test_power_kvm_vm.c',
75         'test_prefetch.c',
76         'test_reciprocal_division.c',
77         'test_reciprocal_division_perf.c',
78         'test_red.c',
79         'test_reorder.c',
80         'test_ring.c',
81         'test_ring_perf.c',
82         'test_rwlock.c',
83         'test_sched.c',
84         'test_service_cores.c',
85         'test_spinlock.c',
86         'test_string_fns.c',
87         'test_table.c',
88         'test_table_acl.c',
89         'test_table_combined.c',
90         'test_table_pipeline.c',
91         'test_table_ports.c',
92         'test_table_tables.c',
93         'test_tailq.c',
94         'test_thash.c',
95         'test_timer.c',
96         'test_timer_perf.c',
97         'test_timer_racecond.c',
98         'test_version.c',
99         'virtual_pmd.c'
100 )
101
102 test_deps = ['acl',
103         'bpf',
104         'cfgfile',
105         'cmdline',
106         'cryptodev',
107         'distributor',
108         'efd',
109         'ethdev',
110         'eventdev',
111         'flow_classify',
112         'hash',
113         'lpm',
114         'member',
115         'pipeline',
116         'port',
117         'reorder',
118         'ring',
119         'timer'
120 ]
121
122 test_names = [
123         'acl_autotest',
124         'alarm_autotest',
125         'atomic_autotest',
126         'barrier_autotest',
127         'byteorder_autotest',
128         'cmdline_autotest',
129         'common_autotest',
130         'cpuflags_autotest',
131         'crc_autotest',
132         'cryptodev_qat_autotest',
133         'cryptodev_aesni_mb_autotest',
134         'cryptodev_openssl_autotest',
135         'cryptodev_openssl_asym_autotest',
136         'cryptodev_aesni_gcm_autotest',
137         'cryptodev_null_autotest',
138         'cryptodev_sw_snow3g_autotest',
139         'cryptodev_sw_kasumi_autotest',
140         'cryptodev_sw_zuc_autotest',
141         'cryptodev_sw_armv8_autotest',
142         'cryptodev_sw_mvsam_autotest',
143         'cryptodev_dpaa2_sec_autotest',
144         'cryptodev_dpaa_sec_autotest',
145         'cycles_autotest',
146         'debug_autotest',
147         'devargs_autotest',
148         'distributor_autotest',
149         'distributor_perf_autotest',
150         'eal_flags_autotest',
151         'eal_fs_autotest',
152         'efd_autotest',
153         'efd_perf_autotest',
154         'errno_autotest',
155         'event_ring_autotest',
156         'event_eth_tx_adapter_autotest',
157         'eventdev_common_autotest',
158         'eventdev_octeontx_autotest',
159         'eventdev_sw_autotest',
160         'func_reentrancy_autotest',
161         'flow_classify_autotest',
162         'hash_scaling_autotest',
163         'hash_autotest',
164         'hash_functions_autotest',
165         'hash_multiwriter_autotest',
166         'hash_perf_autotest',
167         'interrupt_autotest',
168         'kni_autotest',
169         'kvargs_autotest',
170         'link_bonding_autotest',
171         'link_bonding_mode4_autotest',
172         'logs_autotest',
173         'lpm6_autotest',
174         'lpm6_perf_autotest',
175         'lpm_autotest',
176         'lpm_perf_autotest',
177         'malloc_autotest',
178         'mbuf_autotest',
179         'member_autotest',
180         'member_perf_autotest',
181         'memcpy_autotest',
182         'memcpy_perf_autotest',
183         'memory_autotest',
184         'mempool_autotest',
185         'mempool_perf_autotest',
186         'memzone_autotest',
187         'meter_autotest',
188         'multiprocess_autotest',
189         'per_lcore_autotest',
190         'pmd_perf_autotest',
191         'power_acpi_cpufreq_autotest',
192         'power_autotest',
193         'power_kvm_vm_autotest',
194         'prefetch_autotest',
195         'reciprocal_division',
196         'reciprocal_division_perf',
197         'red_all',
198         'red_autotest',
199         'red_perf',
200         'reorder_autotest',
201         'ring_autotest',
202         'ring_perf_autotest',
203         'ring_pmd_autotest',
204         'ring_pmd_perf_autotest',
205         'rwlock_autotest',
206         'sched_autotest',
207         'service_autotest',
208         'spinlock_autotest',
209         'string_autotest',
210         'table_autotest',
211         'tailq_autotest',
212         'thash_autotest',
213         'timer_autotest',
214         'timer_perf__autotest',
215         'timer_racecond_autotest',
216         'user_delay_us',
217         'version_autotest',
218 ]
219
220 if dpdk_conf.has('RTE_LIBRTE_PDUMP')
221         test_deps += 'pdump'
222 endif
223 if dpdk_conf.has('RTE_LIBRTE_I40E_PMD')
224         test_deps += 'pmd_i40e'
225 endif
226 if dpdk_conf.has('RTE_LIBRTE_IXGBE_PMD')
227         test_deps += 'pmd_ixgbe'
228 endif
229 if dpdk_conf.has('RTE_LIBRTE_BOND_PMD')
230         test_deps += 'pmd_bond'
231 endif
232 if dpdk_conf.has('RTE_LIBRTE_RING_PMD')
233         test_deps += 'pmd_ring'
234 endif
235 if dpdk_conf.has('RTE_LIBRTE_POWER')
236         test_deps += 'power'
237 endif
238 if dpdk_conf.has('RTE_LIBRTE_KNI')
239         test_deps += 'kni'
240 endif
241
242 cflags = machine_args
243 if cc.has_argument('-Wno-format-truncation')
244     cflags += '-Wno-format-truncation'
245 endif
246
247 test_dep_objs = []
248 compress_test_dep = dependency('zlib', required: false)
249 if compress_test_dep.found()
250         test_dep_objs += compress_test_dep
251         test_sources += 'test_compressdev.c'
252         test_deps += 'compressdev'
253         test_names += 'compressdev_autotest'
254 endif
255
256 foreach d:test_deps
257         def_lib = get_option('default_library')
258         test_dep_objs += get_variable(def_lib + '_rte_' + d)
259 endforeach
260 test_dep_objs += cc.find_library('execinfo', required: false)
261
262 link_libs = []
263 if get_option('default_library') == 'static'
264         link_libs = dpdk_drivers
265 endif
266
267 if get_option('tests')
268         dpdk_test = executable('dpdk-test',
269                 test_sources,
270                 link_whole: link_libs,
271                 dependencies: test_dep_objs,
272                 c_args: [cflags, '-DALLOW_EXPERIMENTAL_API'],
273                 install_rpath: driver_install_path,
274                 install: false)
275
276         # some perf tests (eg: memcpy perf autotest)take very long
277         # to complete, so timeout to 10 minutes
278         timeout_seconds = 600
279
280         foreach t:test_names
281                 test(t, dpdk_test,
282                         env : ['DPDK_TEST='+t],
283                         timeout : timeout_seconds,
284                         is_parallel : false)
285         endforeach
286 endif