1 # SPDX-License-Identifier: BSD-3-Clause
2 # Copyright(c) 2010-2014 Intel Corporation
4 # Test data for autotests
7 from autotest_test_funcs import *
10 # quick and dirty function to find out number of sockets
12 result = len(glob("/sys/devices/system/node/node*"))
18 # Assign given number to each socket
19 # e.g. 32 becomes 32,32 or 32,32,32,32
21 return ",".join([str(num)] * num_sockets())
23 # groups of tests that can be run in parallel
24 # the grouping has been found largely empirically
25 parallel_test_group_list = [
28 "Memory": per_sockets(8),
32 "Name": "Cycles autotest",
33 "Command": "cycles_autotest",
34 "Func": default_autotest,
38 "Name": "Timer autotest",
39 "Command": "timer_autotest",
40 "Func": timer_autotest,
44 "Name": "Debug autotest",
45 "Command": "debug_autotest",
46 "Func": default_autotest,
50 "Name": "Errno autotest",
51 "Command": "errno_autotest",
52 "Func": default_autotest,
56 "Name": "Meter autotest",
57 "Command": "meter_autotest",
58 "Func": default_autotest,
62 "Name": "Common autotest",
63 "Command": "common_autotest",
64 "Func": default_autotest,
68 "Name": "Resource autotest",
69 "Command": "resource_autotest",
70 "Func": default_autotest,
81 "Name": "Memory autotest",
82 "Command": "memory_autotest",
83 "Func": memory_autotest,
87 "Name": "Read/write lock autotest",
88 "Command": "rwlock_autotest",
89 "Func": rwlock_autotest,
93 "Name": "Logs autotest",
94 "Command": "logs_autotest",
95 "Func": logs_autotest,
99 "Name": "CPU flags autotest",
100 "Command": "cpuflags_autotest",
101 "Func": default_autotest,
105 "Name": "Version autotest",
106 "Command": "version_autotest",
107 "Func": default_autotest,
111 "Name": "EAL filesystem autotest",
112 "Command": "eal_fs_autotest",
113 "Func": default_autotest,
117 "Name": "EAL flags autotest",
118 "Command": "eal_flags_autotest",
119 "Func": default_autotest,
123 "Name": "Hash autotest",
124 "Command": "hash_autotest",
125 "Func": default_autotest,
132 "Memory": per_sockets(512),
136 "Name": "LPM autotest",
137 "Command": "lpm_autotest",
138 "Func": default_autotest,
142 "Name": "LPM6 autotest",
143 "Command": "lpm6_autotest",
144 "Func": default_autotest,
148 "Name": "Memcpy autotest",
149 "Command": "memcpy_autotest",
150 "Func": default_autotest,
154 "Name": "Memzone autotest",
155 "Command": "memzone_autotest",
156 "Func": default_autotest,
160 "Name": "String autotest",
161 "Command": "string_autotest",
162 "Func": default_autotest,
166 "Name": "Alarm autotest",
167 "Command": "alarm_autotest",
168 "Func": default_autotest,
175 "Memory": per_sockets(128),
179 "Name": "PCI autotest",
180 "Command": "pci_autotest",
181 "Func": default_autotest,
185 "Name": "Malloc autotest",
186 "Command": "malloc_autotest",
187 "Func": default_autotest,
191 "Name": "Multi-process autotest",
192 "Command": "multiprocess_autotest",
193 "Func": default_autotest,
197 "Name": "Mbuf autotest",
198 "Command": "mbuf_autotest",
199 "Func": default_autotest,
203 "Name": "Per-lcore autotest",
204 "Command": "per_lcore_autotest",
205 "Func": default_autotest,
209 "Name": "Ring autotest",
210 "Command": "ring_autotest",
211 "Func": default_autotest,
222 "Name": "Spinlock autotest",
223 "Command": "spinlock_autotest",
224 "Func": spinlock_autotest,
228 "Name": "Byte order autotest",
229 "Command": "byteorder_autotest",
230 "Func": default_autotest,
234 "Name": "TAILQ autotest",
235 "Command": "tailq_autotest",
236 "Func": default_autotest,
240 "Name": "Command-line autotest",
241 "Command": "cmdline_autotest",
242 "Func": default_autotest,
246 "Name": "Interrupts autotest",
247 "Command": "interrupt_autotest",
248 "Func": default_autotest,
255 "Memory": per_sockets(512),
259 "Name": "Function reentrancy autotest",
260 "Command": "func_reentrancy_autotest",
261 "Func": default_autotest,
265 "Name": "Mempool autotest",
266 "Command": "mempool_autotest",
267 "Func": default_autotest,
271 "Name": "Atomics autotest",
272 "Command": "atomic_autotest",
273 "Func": default_autotest,
277 "Name": "Prefetch autotest",
278 "Command": "prefetch_autotest",
279 "Func": default_autotest,
283 "Name": "Red autotest",
284 "Command": "red_autotest",
285 "Func": default_autotest,
296 "Name": "PMD ring autotest",
297 "Command": "ring_pmd_autotest",
298 "Func": default_autotest,
302 "Name": "Access list control autotest",
303 "Command": "acl_autotest",
304 "Func": default_autotest,
308 "Name": "Sched autotest",
309 "Command": "sched_autotest",
310 "Func": default_autotest,
317 # tests that should not be run when any other tests are running
318 non_parallel_test_group_list = [
321 "Prefix": "eventdev",
326 "Name": "Eventdev common autotest",
327 "Command": "eventdev_common_autotest",
328 "Func": default_autotest,
334 "Prefix": "eventdev_sw",
339 "Name": "Eventdev sw autotest",
340 "Command": "eventdev_sw_autotest",
341 "Func": default_autotest,
352 "Name": "KNI autotest",
353 "Command": "kni_autotest",
354 "Func": default_autotest,
360 "Prefix": "mempool_perf",
361 "Memory": per_sockets(256),
365 "Name": "Mempool performance autotest",
366 "Command": "mempool_perf_autotest",
367 "Func": default_autotest,
373 "Prefix": "memcpy_perf",
374 "Memory": per_sockets(512),
378 "Name": "Memcpy performance autotest",
379 "Command": "memcpy_perf_autotest",
380 "Func": default_autotest,
386 "Prefix": "hash_perf",
387 "Memory": per_sockets(512),
391 "Name": "Hash performance autotest",
392 "Command": "hash_perf_autotest",
393 "Func": default_autotest,
404 "Name": "Power autotest",
405 "Command": "power_autotest",
406 "Func": default_autotest,
412 "Prefix": "power_acpi_cpufreq",
417 "Name": "Power ACPI cpufreq autotest",
418 "Command": "power_acpi_cpufreq_autotest",
419 "Func": default_autotest,
425 "Prefix": "power_kvm_vm",
430 "Name": "Power KVM VM autotest",
431 "Command": "power_kvm_vm_autotest",
432 "Func": default_autotest,
438 "Prefix": "timer_perf",
439 "Memory": per_sockets(512),
443 "Name": "Timer performance autotest",
444 "Command": "timer_perf_autotest",
445 "Func": default_autotest,
452 # Please always make sure that ring_perf is the last test!
455 "Prefix": "ring_perf",
456 "Memory": per_sockets(512),
460 "Name": "Ring performance autotest",
461 "Command": "ring_perf_autotest",
462 "Func": default_autotest,