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
11foo*255*
12# Testing the 'all' syntax
13all*0*cpumap: all
14nodes:all*0*cpumap: all
15all,nodes:all*0*cpumap: all
16all,^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
200*0*cpumap: 0
219*0*cpumap: 9
226*0*cpumap: 6
230*0*cpumap: 0
24# A few attempts of pinning to all but one random cpu
25all,^12*0*cpumap: 0-11,13-15
26all,^6*0*cpumap: 0-5,7-15
27all,^3*0*cpumap: 0-2,4-15
28all,^7*0*cpumap: 0-6,8-15
29# A few attempts of pinning to a random range of cpus
3013-15*0*cpumap: 13-15
317*0*cpumap: 7
323-5*0*cpumap: 3-5
338-11*0*cpumap: 8-11
34# A few attempts of pinning to just one random node
35nodes:1*0*cpumap: 8-15
36nodes:0*0*cpumap: 0-7
37nodes:0*0*cpumap: 0-7
38nodes:0*0*cpumap: 0-7
39# A few attempts of pinning to all but one random node
40all,^nodes:0*0*cpumap: 8-15
41all,^nodes:1*0*cpumap: 0-7
42all,^nodes:1*0*cpumap: 0-7
43all,^nodes:0*0*cpumap: 8-15
44# A few attempts of pinning to a random range of nodes
45nodes:1-1*0*cpumap: 8-15
46nodes:1-1*0*cpumap: 8-15
47nodes:0-1*0*cpumap: all
48nodes:0-0*0*cpumap: 0-7
49# A few attempts of pinning to a node but excluding one random cpu
50nodes:1,^8*0*cpumap: 9-15
51nodes:0,^6*0*cpumap: 0-5,7
52nodes:1,^9*0*cpumap: 8,10-15
53nodes:0,^5*0*cpumap: 0-4,6-7
54