Debian Codegraph @

tools/xl/check-xl-vcpupin-parse.data-example

raw
1 # WARNING: some of these tests are topology based tests.
2 # Expect failures if the topology is not detected correctly
3 # detected topology: 16 CPUs, 2 nodes, 8 CPUs per node.
4 #
5 # seed used for random number generation: seed=13328.
6 #
7 # Format is as follows:
8 # test-string*expected-return-code*expected-output
9 #
10 # Testing a wrong configuration
11 foo*255*
12 # Testing the 'all' syntax
13 all*0*cpumap: all
14 nodes:all*0*cpumap: all
15 all,nodes:all*0*cpumap: all
16 all,^nodes:0,all*0*cpumap: all
17 # Testing the empty cpumap case
18 ^0*0*cpumap: none
19 # A few attempts of pinning to just one random cpu
20 0*0*cpumap: 0
21 9*0*cpumap: 9
22 6*0*cpumap: 6
23 0*0*cpumap: 0
24 # A few attempts of pinning to all but one random cpu
25 all,^12*0*cpumap: 0-11,13-15
26 all,^6*0*cpumap: 0-5,7-15
27 all,^3*0*cpumap: 0-2,4-15
28 all,^7*0*cpumap: 0-6,8-15
29 # A few attempts of pinning to a random range of cpus
30 13-15*0*cpumap: 13-15
31 7*0*cpumap: 7
32 3-5*0*cpumap: 3-5
33 8-11*0*cpumap: 8-11
34 # A few attempts of pinning to just one random node
35 nodes:1*0*cpumap: 8-15
36 nodes:0*0*cpumap: 0-7
37 nodes:0*0*cpumap: 0-7
38 nodes:0*0*cpumap: 0-7
39 # A few attempts of pinning to all but one random node
40 all,^nodes:0*0*cpumap: 8-15
41 all,^nodes:1*0*cpumap: 0-7
42 all,^nodes:1*0*cpumap: 0-7
43 all,^nodes:0*0*cpumap: 8-15
44 # A few attempts of pinning to a random range of nodes
45 nodes:1-1*0*cpumap: 8-15
46 nodes:1-1*0*cpumap: 8-15
47 nodes:0-1*0*cpumap: all
48 nodes:0-0*0*cpumap: 0-7
49 # A few attempts of pinning to a node but excluding one random cpu
50 nodes:1,^8*0*cpumap: 9-15
51 nodes:0,^6*0*cpumap: 0-5,7
52 nodes:1,^9*0*cpumap: 8,10-15
53 nodes:0,^5*0*cpumap: 0-4,6-7