5 # Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
8 # Redistribution and use in source and binary forms, with or without
9 # modification, are permitted provided that the following conditions
12 # * Redistributions of source code must retain the above copyright
13 # notice, this list of conditions and the following disclaimer.
14 # * Redistributions in binary form must reproduce the above copyright
15 # notice, this list of conditions and the following disclaimer in
16 # the documentation and/or other materials provided with the
18 # * Neither the name of Intel Corporation nor the names of its
19 # contributors may be used to endorse or promote products derived
20 # from this software without specific prior written permission.
22 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 # Test data for autotests
37 from autotest_test_funcs import *
40 # quick and dirty function to find out number of sockets
42 result = len(glob("/sys/devices/system/node/node*"))
48 # Assign given number to each socket
49 # e.g. 32 becomes 32,32 or 32,32,32,32
51 return ",".join([str(num)] * num_sockets())
53 # groups of tests that can be run in parallel
54 # the grouping has been found largely empirically
55 parallel_test_group_list = [
58 "Memory": per_sockets(8),
62 "Name": "Cycles autotest",
63 "Command": "cycles_autotest",
64 "Func": default_autotest,
68 "Name": "Timer autotest",
69 "Command": "timer_autotest",
70 "Func": timer_autotest,
74 "Name": "Debug autotest",
75 "Command": "debug_autotest",
76 "Func": default_autotest,
80 "Name": "Errno autotest",
81 "Command": "errno_autotest",
82 "Func": default_autotest,
86 "Name": "Meter autotest",
87 "Command": "meter_autotest",
88 "Func": default_autotest,
92 "Name": "Common autotest",
93 "Command": "common_autotest",
94 "Func": default_autotest,
98 "Name": "Resource autotest",
99 "Command": "resource_autotest",
100 "Func": default_autotest,
111 "Name": "Memory autotest",
112 "Command": "memory_autotest",
113 "Func": memory_autotest,
117 "Name": "Read/write lock autotest",
118 "Command": "rwlock_autotest",
119 "Func": rwlock_autotest,
123 "Name": "Logs autotest",
124 "Command": "logs_autotest",
125 "Func": logs_autotest,
129 "Name": "CPU flags autotest",
130 "Command": "cpuflags_autotest",
131 "Func": default_autotest,
135 "Name": "Version autotest",
136 "Command": "version_autotest",
137 "Func": default_autotest,
141 "Name": "EAL filesystem autotest",
142 "Command": "eal_fs_autotest",
143 "Func": default_autotest,
147 "Name": "EAL flags autotest",
148 "Command": "eal_flags_autotest",
149 "Func": default_autotest,
153 "Name": "Hash autotest",
154 "Command": "hash_autotest",
155 "Func": default_autotest,
162 "Memory": per_sockets(512),
166 "Name": "LPM autotest",
167 "Command": "lpm_autotest",
168 "Func": default_autotest,
172 "Name": "LPM6 autotest",
173 "Command": "lpm6_autotest",
174 "Func": default_autotest,
178 "Name": "Memcpy autotest",
179 "Command": "memcpy_autotest",
180 "Func": default_autotest,
184 "Name": "Memzone autotest",
185 "Command": "memzone_autotest",
186 "Func": default_autotest,
190 "Name": "String autotest",
191 "Command": "string_autotest",
192 "Func": default_autotest,
196 "Name": "Alarm autotest",
197 "Command": "alarm_autotest",
198 "Func": default_autotest,
205 "Memory": per_sockets(128),
209 "Name": "PCI autotest",
210 "Command": "pci_autotest",
211 "Func": default_autotest,
215 "Name": "Malloc autotest",
216 "Command": "malloc_autotest",
217 "Func": default_autotest,
221 "Name": "Multi-process autotest",
222 "Command": "multiprocess_autotest",
223 "Func": default_autotest,
227 "Name": "Mbuf autotest",
228 "Command": "mbuf_autotest",
229 "Func": default_autotest,
233 "Name": "Per-lcore autotest",
234 "Command": "per_lcore_autotest",
235 "Func": default_autotest,
239 "Name": "Ring autotest",
240 "Command": "ring_autotest",
241 "Func": default_autotest,
252 "Name": "Spinlock autotest",
253 "Command": "spinlock_autotest",
254 "Func": spinlock_autotest,
258 "Name": "Byte order autotest",
259 "Command": "byteorder_autotest",
260 "Func": default_autotest,
264 "Name": "TAILQ autotest",
265 "Command": "tailq_autotest",
266 "Func": default_autotest,
270 "Name": "Command-line autotest",
271 "Command": "cmdline_autotest",
272 "Func": default_autotest,
276 "Name": "Interrupts autotest",
277 "Command": "interrupt_autotest",
278 "Func": default_autotest,
285 "Memory": per_sockets(512),
289 "Name": "Function reentrancy autotest",
290 "Command": "func_reentrancy_autotest",
291 "Func": default_autotest,
295 "Name": "Mempool autotest",
296 "Command": "mempool_autotest",
297 "Func": default_autotest,
301 "Name": "Atomics autotest",
302 "Command": "atomic_autotest",
303 "Func": default_autotest,
307 "Name": "Prefetch autotest",
308 "Command": "prefetch_autotest",
309 "Func": default_autotest,
313 "Name": "Red autotest",
314 "Command": "red_autotest",
315 "Func": default_autotest,
326 "Name": "PMD ring autotest",
327 "Command": "ring_pmd_autotest",
328 "Func": default_autotest,
332 "Name": "Access list control autotest",
333 "Command": "acl_autotest",
334 "Func": default_autotest,
338 "Name": "Sched autotest",
339 "Command": "sched_autotest",
340 "Func": default_autotest,
347 # tests that should not be run when any other tests are running
348 non_parallel_test_group_list = [
356 "Name": "KNI autotest",
357 "Command": "kni_autotest",
358 "Func": default_autotest,
364 "Prefix": "mempool_perf",
365 "Memory": per_sockets(256),
369 "Name": "Mempool performance autotest",
370 "Command": "mempool_perf_autotest",
371 "Func": default_autotest,
377 "Prefix": "memcpy_perf",
378 "Memory": per_sockets(512),
382 "Name": "Memcpy performance autotest",
383 "Command": "memcpy_perf_autotest",
384 "Func": default_autotest,
390 "Prefix": "hash_perf",
391 "Memory": per_sockets(512),
395 "Name": "Hash performance autotest",
396 "Command": "hash_perf_autotest",
397 "Func": default_autotest,
408 "Name": "Power autotest",
409 "Command": "power_autotest",
410 "Func": default_autotest,
416 "Prefix": "power_acpi_cpufreq",
421 "Name": "Power ACPI cpufreq autotest",
422 "Command": "power_acpi_cpufreq_autotest",
423 "Func": default_autotest,
429 "Prefix": "power_kvm_vm",
434 "Name": "Power KVM VM autotest",
435 "Command": "power_kvm_vm_autotest",
436 "Func": default_autotest,
442 "Prefix": "timer_perf",
443 "Memory": per_sockets(512),
447 "Name": "Timer performance autotest",
448 "Command": "timer_perf_autotest",
449 "Func": default_autotest,
456 # Please always make sure that ring_perf is the last test!
459 "Prefix": "ring_perf",
460 "Memory": per_sockets(512),
464 "Name": "Ring performance autotest",
465 "Command": "ring_perf_autotest",
466 "Func": default_autotest,