xref: /kvm-unit-tests/arm/unittests.cfg (revision 6163f75d09a0a96a5c3db82dd768b13f79629c00)
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]
65file = pmu.flat
66groups = pmu
67
68# Test PMU support (TCG) with -icount IPC=1
69#[pmu-tcg-icount-1]
70#file = pmu.flat
71#extra_params = -icount 0 -append '1'
72#groups = pmu
73#accel = tcg
74
75# Test PMU support (TCG) with -icount IPC=256
76#[pmu-tcg-icount-256]
77#file = pmu.flat
78#extra_params = -icount 8 -append '256'
79#groups = pmu
80#accel = tcg
81
82# Test GIC emulation
83[gicv2-ipi]
84file = gic.flat
85smp = $((($MAX_SMP < 8)?$MAX_SMP:8))
86extra_params = -machine gic-version=2 -append 'ipi'
87groups = gic
88
89[gicv2-mmio]
90file = gic.flat
91smp = $((($MAX_SMP < 8)?$MAX_SMP:8))
92extra_params = -machine gic-version=2 -append 'mmio'
93groups = gic
94
95[gicv2-mmio-up]
96file = gic.flat
97smp = 1
98extra_params = -machine gic-version=2 -append 'mmio'
99groups = gic
100
101[gicv2-mmio-3p]
102file = gic.flat
103smp = $((($MAX_SMP < 3)?$MAX_SMP:3))
104extra_params = -machine gic-version=2 -append 'mmio'
105groups = gic
106
107[gicv3-ipi]
108file = gic.flat
109smp = $MAX_SMP
110extra_params = -machine gic-version=3 -append 'ipi'
111groups = gic
112
113[gicv2-active]
114file = gic.flat
115smp = $((($MAX_SMP < 8)?$MAX_SMP:8))
116extra_params = -machine gic-version=2 -append 'active'
117groups = gic
118
119[gicv3-active]
120file = gic.flat
121smp = $MAX_SMP
122extra_params = -machine gic-version=3 -append 'active'
123groups = gic
124
125# Test PSCI emulation
126[psci]
127file = psci.flat
128smp = $MAX_SMP
129groups = psci
130
131# Timer tests
132[timer]
133file = timer.flat
134groups = timer
135timeout = 2s
136arch = arm64
137
138# Exit tests
139[micro-bench]
140file = micro-bench.flat
141smp = 2
142groups = nodefault,micro-bench
143accel = kvm
144arch = arm64
145
146# Cache emulation tests
147[cache]
148file = cache.flat
149arch = arm64
150groups = cache
151