xref: /kvm-unit-tests/arm/unittests.cfg (revision 6afb94812d924a754e2d44f6c5de9e1859b2df28)
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-sw-incr]
94file = pmu.flat
95groups = pmu
96arch = arm64
97extra_params = -append 'pmu-sw-incr'
98
99[pmu-chained-counters]
100file = pmu.flat
101groups = pmu
102arch = arm64
103extra_params = -append 'pmu-chained-counters'
104
105[pmu-chained-sw-incr]
106file = pmu.flat
107groups = pmu
108arch = arm64
109extra_params = -append 'pmu-chained-sw-incr'
110
111[pmu-chain-promotion]
112file = pmu.flat
113groups = pmu
114arch = arm64
115extra_params = -append 'pmu-chain-promotion'
116
117[pmu-overflow-interrupt]
118file = pmu.flat
119groups = pmu
120arch = arm64
121extra_params = -append 'pmu-overflow-interrupt'
122
123# Test PMU support (TCG) with -icount IPC=1
124#[pmu-tcg-icount-1]
125#file = pmu.flat
126#extra_params = -icount 0 -append 'cycle-counter 1'
127#groups = pmu
128#accel = tcg
129
130# Test PMU support (TCG) with -icount IPC=256
131#[pmu-tcg-icount-256]
132#file = pmu.flat
133#extra_params = -icount 8 -append 'cycle-counter 256'
134#groups = pmu
135#accel = tcg
136
137# Test GIC emulation
138[gicv2-ipi]
139file = gic.flat
140smp = $((($MAX_SMP < 8)?$MAX_SMP:8))
141extra_params = -machine gic-version=2 -append 'ipi'
142groups = gic
143
144[gicv2-mmio]
145file = gic.flat
146smp = $((($MAX_SMP < 8)?$MAX_SMP:8))
147extra_params = -machine gic-version=2 -append 'mmio'
148groups = gic
149
150[gicv2-mmio-up]
151file = gic.flat
152smp = 1
153extra_params = -machine gic-version=2 -append 'mmio'
154groups = gic
155
156[gicv2-mmio-3p]
157file = gic.flat
158smp = $((($MAX_SMP < 3)?$MAX_SMP:3))
159extra_params = -machine gic-version=2 -append 'mmio'
160groups = gic
161
162[gicv3-ipi]
163file = gic.flat
164smp = $MAX_SMP
165extra_params = -machine gic-version=3 -append 'ipi'
166groups = gic
167
168[gicv2-active]
169file = gic.flat
170smp = $((($MAX_SMP < 8)?$MAX_SMP:8))
171extra_params = -machine gic-version=2 -append 'active'
172groups = gic
173
174[gicv3-active]
175file = gic.flat
176smp = $MAX_SMP
177extra_params = -machine gic-version=3 -append 'active'
178groups = gic
179
180[its-introspection]
181file = gic.flat
182smp = $MAX_SMP
183extra_params = -machine gic-version=3 -append 'its-introspection'
184groups = its
185arch = arm64
186
187[its-trigger]
188file = gic.flat
189smp = $MAX_SMP
190extra_params = -machine gic-version=3 -append 'its-trigger'
191groups = its
192arch = arm64
193
194[its-migration]
195file = gic.flat
196smp = $MAX_SMP
197extra_params = -machine gic-version=3 -append 'its-migration'
198groups = its migration
199arch = arm64
200
201[its-pending-migration]
202file = gic.flat
203smp = $MAX_SMP
204extra_params = -machine gic-version=3 -append 'its-pending-migration'
205groups = its migration
206arch = arm64
207
208[its-migrate-unmapped-collection]
209file = gic.flat
210smp = $MAX_SMP
211extra_params = -machine gic-version=3 -append 'its-migrate-unmapped-collection'
212groups = its migration
213arch = arm64
214
215# Test PSCI emulation
216[psci]
217file = psci.flat
218smp = $MAX_SMP
219groups = psci
220
221# Timer tests
222[timer]
223file = timer.flat
224groups = timer
225timeout = 10s
226arch = arm64
227
228# Exit tests
229[micro-bench]
230file = micro-bench.flat
231smp = 2
232groups = nodefault micro-bench
233accel = kvm
234arch = arm64
235
236# Cache emulation tests
237[cache]
238file = cache.flat
239arch = arm64
240groups = cache
241
242# Debug tests
243[debug-bp]
244file = debug.flat
245arch = arm64
246extra_params = -append 'bp'
247groups = debug
248
249[debug-bp-migration]
250file = debug.flat
251arch = arm64
252extra_params = -append 'bp-migration'
253groups = debug migration
254
255[debug-wp]
256file = debug.flat
257arch = arm64
258extra_params = -append 'wp'
259groups = debug
260
261[debug-wp-migration]
262file = debug.flat
263arch = arm64
264extra_params = -append 'wp-migration'
265groups = debug migration
266
267[debug-sstep]
268file = debug.flat
269arch = arm64
270extra_params = -append 'ss'
271groups = debug
272
273[debug-sstep-migration]
274file = debug.flat
275arch = arm64
276extra_params = -append 'ss-migration'
277groups = debug migration
278