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# Test PMU support (TCG) with -icount IPC=1 94#[pmu-tcg-icount-1] 95#file = pmu.flat 96#extra_params = -icount 0 -append 'cycle-counter 1' 97#groups = pmu 98#accel = tcg 99 100# Test PMU support (TCG) with -icount IPC=256 101#[pmu-tcg-icount-256] 102#file = pmu.flat 103#extra_params = -icount 8 -append 'cycle-counter 256' 104#groups = pmu 105#accel = tcg 106 107# Test GIC emulation 108[gicv2-ipi] 109file = gic.flat 110smp = $((($MAX_SMP < 8)?$MAX_SMP:8)) 111extra_params = -machine gic-version=2 -append 'ipi' 112groups = gic 113 114[gicv2-mmio] 115file = gic.flat 116smp = $((($MAX_SMP < 8)?$MAX_SMP:8)) 117extra_params = -machine gic-version=2 -append 'mmio' 118groups = gic 119 120[gicv2-mmio-up] 121file = gic.flat 122smp = 1 123extra_params = -machine gic-version=2 -append 'mmio' 124groups = gic 125 126[gicv2-mmio-3p] 127file = gic.flat 128smp = $((($MAX_SMP < 3)?$MAX_SMP:3)) 129extra_params = -machine gic-version=2 -append 'mmio' 130groups = gic 131 132[gicv3-ipi] 133file = gic.flat 134smp = $MAX_SMP 135extra_params = -machine gic-version=3 -append 'ipi' 136groups = gic 137 138[gicv2-active] 139file = gic.flat 140smp = $((($MAX_SMP < 8)?$MAX_SMP:8)) 141extra_params = -machine gic-version=2 -append 'active' 142groups = gic 143 144[gicv3-active] 145file = gic.flat 146smp = $MAX_SMP 147extra_params = -machine gic-version=3 -append 'active' 148groups = gic 149 150# Test PSCI emulation 151[psci] 152file = psci.flat 153smp = $MAX_SMP 154groups = psci 155 156# Timer tests 157[timer] 158file = timer.flat 159groups = timer 160timeout = 10s 161arch = arm64 162 163# Exit tests 164[micro-bench] 165file = micro-bench.flat 166smp = 2 167groups = nodefault,micro-bench 168accel = kvm 169arch = arm64 170 171# Cache emulation tests 172[cache] 173file = cache.flat 174arch = arm64 175groups = cache 176