xref: /kvm-unit-tests/arm/unittests.cfg (revision 1d0f08f40d53daa39566842ec46a112db5f7e524)
1##############################################################################
2# unittest configuration
3#
4# [unittest_name]
5# file = <name>.flat		# Name of the flat file to be used.
6# smp  = <num>			# Number of processors the VM will use
7#				# during this test. Use $MAX_SMP to use
8#				# the maximum the host supports. Defaults
9#				# to one.
10# extra_params = -append <params...>	# Additional parameters used.
11# arch = arm|arm64			# Select one if the test case is
12#					# specific to only one.
13# groups = <group_name1> <group_name2> ...	# Used to identify test cases
14#						# with run_tests -g ...
15#						# Specify group_name=nodefault
16#						# to have test not run by
17#						# default
18# accel = kvm|tcg		# Optionally specify if test must run with
19#				# kvm or tcg. If not specified, then kvm will
20#				# be used when available.
21# timeout = <duration>		# Optionally specify a timeout.
22# check = <path>=<value> # check a file for a particular value before running
23#                        # a test. The check line can contain multiple files
24#                        # to check separated by a space but each check
25#                        # parameter needs to be of the form <path>=<value>
26##############################################################################
27
28#
29# Test that the configured number of processors (smp = <num>), and
30# that the configured amount of memory (-m <MB>) are correctly setup
31# by the framework.
32#
33[selftest-setup]
34file = selftest.flat
35smp = 2
36extra_params = -m 256 -append 'setup smp=2 mem=256'
37groups = selftest
38
39# Test vector setup and exception handling (kernel mode).
40[selftest-vectors-kernel]
41file = selftest.flat
42extra_params = -append 'vectors-kernel'
43groups = selftest
44
45# Test vector setup and exception handling (user mode).
46[selftest-vectors-user]
47file = selftest.flat
48extra_params = -append 'vectors-user'
49groups = selftest
50
51# Test SMP support
52[selftest-smp]
53file = selftest.flat
54smp = $MAX_SMP
55extra_params = -append 'smp'
56groups = selftest
57
58# Test PCI emulation
59[pci-test]
60file = pci-test.flat
61groups = pci
62
63# Test PMU support
64[pmu-cycle-counter]
65file = pmu.flat
66groups = pmu
67extra_params = -append 'cycle-counter 0'
68
69[pmu-event-introspection]
70file = pmu.flat
71groups = pmu
72arch = arm64
73extra_params = -append 'pmu-event-introspection'
74
75[pmu-event-counter-config]
76file = pmu.flat
77groups = pmu
78arch = arm64
79extra_params = -append 'pmu-event-counter-config'
80
81[pmu-basic-event-count]
82file = pmu.flat
83groups = pmu
84arch = arm64
85extra_params = -append 'pmu-basic-event-count'
86
87[pmu-mem-access]
88file = pmu.flat
89groups = pmu
90arch = arm64
91extra_params = -append 'pmu-mem-access'
92
93[pmu-mem-access-reliability]
94file = pmu.flat
95groups = pmu
96arch = arm64
97extra_params = -append 'pmu-mem-access-reliability'
98
99[pmu-sw-incr]
100file = pmu.flat
101groups = pmu
102arch = arm64
103extra_params = -append 'pmu-sw-incr'
104
105[pmu-chained-counters]
106file = pmu.flat
107groups = pmu
108arch = arm64
109extra_params = -append 'pmu-chained-counters'
110
111[pmu-chained-sw-incr]
112file = pmu.flat
113groups = pmu
114arch = arm64
115extra_params = -append 'pmu-chained-sw-incr'
116
117[pmu-chain-promotion]
118file = pmu.flat
119groups = pmu
120arch = arm64
121extra_params = -append 'pmu-chain-promotion'
122
123[pmu-overflow-interrupt]
124file = pmu.flat
125groups = pmu
126arch = arm64
127extra_params = -append 'pmu-overflow-interrupt'
128
129# Test PMU support (TCG) with -icount IPC=1
130#[pmu-tcg-icount-1]
131#file = pmu.flat
132#extra_params = -icount 0 -append 'cycle-counter 1'
133#groups = pmu
134#accel = tcg
135
136# Test PMU support (TCG) with -icount IPC=256
137#[pmu-tcg-icount-256]
138#file = pmu.flat
139#extra_params = -icount 8 -append 'cycle-counter 256'
140#groups = pmu
141#accel = tcg
142
143# Test GIC emulation
144[gicv2-ipi]
145file = gic.flat
146smp = $((($MAX_SMP < 8)?$MAX_SMP:8))
147extra_params = -machine gic-version=2 -append 'ipi'
148groups = gic
149
150[gicv2-mmio]
151file = gic.flat
152smp = $((($MAX_SMP < 8)?$MAX_SMP:8))
153extra_params = -machine gic-version=2 -append 'mmio'
154groups = gic
155
156[gicv2-mmio-up]
157file = gic.flat
158smp = 1
159extra_params = -machine gic-version=2 -append 'mmio'
160groups = gic
161
162[gicv2-mmio-3p]
163file = gic.flat
164smp = $((($MAX_SMP < 3)?$MAX_SMP:3))
165extra_params = -machine gic-version=2 -append 'mmio'
166groups = gic
167
168[gicv3-ipi]
169file = gic.flat
170smp = $MAX_SMP
171extra_params = -machine gic-version=3 -append 'ipi'
172groups = gic
173
174[gicv2-active]
175file = gic.flat
176smp = $((($MAX_SMP < 8)?$MAX_SMP:8))
177extra_params = -machine gic-version=2 -append 'active'
178groups = gic
179
180[gicv3-active]
181file = gic.flat
182smp = $MAX_SMP
183extra_params = -machine gic-version=3 -append 'active'
184groups = gic
185
186[its-introspection]
187file = gic.flat
188smp = $MAX_SMP
189extra_params = -machine gic-version=3 -append 'its-introspection'
190groups = its
191arch = arm64
192
193[its-trigger]
194file = gic.flat
195smp = $MAX_SMP
196extra_params = -machine gic-version=3 -append 'its-trigger'
197groups = its
198arch = arm64
199
200[its-migration]
201file = gic.flat
202smp = $MAX_SMP
203extra_params = -machine gic-version=3 -append 'its-migration'
204groups = its migration
205arch = arm64
206
207[its-pending-migration]
208file = gic.flat
209smp = $MAX_SMP
210extra_params = -machine gic-version=3 -append 'its-pending-migration'
211groups = its migration
212arch = arm64
213
214[its-migrate-unmapped-collection]
215file = gic.flat
216smp = $MAX_SMP
217extra_params = -machine gic-version=3 -append 'its-migrate-unmapped-collection'
218groups = its migration
219arch = arm64
220
221# Test PSCI emulation
222[psci]
223file = psci.flat
224smp = $MAX_SMP
225groups = psci
226
227# Timer tests
228[timer]
229file = timer.flat
230groups = timer
231timeout = 10s
232arch = arm64
233
234# Exit tests
235[micro-bench]
236file = micro-bench.flat
237smp = 2
238groups = nodefault micro-bench
239accel = kvm
240arch = arm64
241
242# Cache emulation tests
243[cache]
244file = cache.flat
245arch = arm64
246groups = cache
247
248# Debug tests
249[debug-bp]
250file = debug.flat
251arch = arm64
252extra_params = -append 'bp'
253groups = debug
254
255[debug-bp-migration]
256file = debug.flat
257arch = arm64
258extra_params = -append 'bp-migration'
259groups = debug migration
260
261[debug-wp]
262file = debug.flat
263arch = arm64
264extra_params = -append 'wp'
265groups = debug
266
267[debug-wp-migration]
268file = debug.flat
269arch = arm64
270extra_params = -append 'wp-migration'
271groups = debug migration
272
273[debug-sstep]
274file = debug.flat
275arch = arm64
276extra_params = -append 'ss'
277groups = debug
278
279[debug-sstep-migration]
280file = debug.flat
281arch = arm64
282extra_params = -append 'ss-migration'
283groups = debug migration
284