18849e9cbSAndrew Jones############################################################################## 28849e9cbSAndrew Jones# unittest configuration 38849e9cbSAndrew Jones# 45e61cba0SAndrew Jones# [unittest_name] 58849e9cbSAndrew Jones# file = <name>.flat # Name of the flat file to be used. 68849e9cbSAndrew Jones# smp = <num> # Number of processors the VM will use 78849e9cbSAndrew Jones# # during this test. Use $MAX_SMP to use 88849e9cbSAndrew Jones# # the maximum the host supports. Defaults 98849e9cbSAndrew Jones# # to one. 108849e9cbSAndrew Jones# extra_params = -append <params...> # Additional parameters used. 118849e9cbSAndrew Jones# arch = arm|arm64 # Select one if the test case is 128849e9cbSAndrew Jones# # specific to only one. 138849e9cbSAndrew Jones# groups = <group_name1> <group_name2> ... # Used to identify test cases 148849e9cbSAndrew Jones# # with run_tests -g ... 159a008986SSuraj Jitindar Singh# # Specify group_name=nodefault 169a008986SSuraj Jitindar Singh# # to have test not run by 179a008986SSuraj Jitindar Singh# # default 188849e9cbSAndrew Jones# accel = kvm|tcg # Optionally specify if test must run with 198849e9cbSAndrew Jones# # kvm or tcg. If not specified, then kvm will 208849e9cbSAndrew Jones# # be used when available. 21fd149358SAndrew Jones# timeout = <duration> # Optionally specify a timeout. 227019e650SLaurent Vivier# check = <path>=<value> # check a file for a particular value before running 237019e650SLaurent Vivier# # a test. The check line can contain multiple files 247019e650SLaurent Vivier# # to check separated by a space but each check 257019e650SLaurent Vivier# # parameter needs to be of the form <path>=<value> 268849e9cbSAndrew Jones############################################################################## 275e61cba0SAndrew Jones 285e61cba0SAndrew Jones# 295e61cba0SAndrew Jones# Test that the configured number of processors (smp = <num>), and 305e61cba0SAndrew Jones# that the configured amount of memory (-m <MB>) are correctly setup 315e61cba0SAndrew Jones# by the framework. 325e61cba0SAndrew Jones# 3390b91265SAndrew Jones[selftest-setup] 345e61cba0SAndrew Jonesfile = selftest.flat 350415feeaSAndrew Jonessmp = 2 360415feeaSAndrew Jonesextra_params = -m 256 -append 'setup smp=2 mem=256' 375e61cba0SAndrew Jonesgroups = selftest 382edfe428SAndrew Jones 39f052fea1SAndrew Jones# Test vector setup and exception handling (kernel mode). 4090b91265SAndrew Jones[selftest-vectors-kernel] 412edfe428SAndrew Jonesfile = selftest.flat 42f052fea1SAndrew Jonesextra_params = -append 'vectors-kernel' 432edfe428SAndrew Jonesgroups = selftest 442edfe428SAndrew Jones 45f052fea1SAndrew Jones# Test vector setup and exception handling (user mode). 4690b91265SAndrew Jones[selftest-vectors-user] 472edfe428SAndrew Jonesfile = selftest.flat 48f052fea1SAndrew Jonesextra_params = -append 'vectors-user' 492edfe428SAndrew Jonesgroups = selftest 500415feeaSAndrew Jones 510415feeaSAndrew Jones# Test SMP support 5290b91265SAndrew Jones[selftest-smp] 530415feeaSAndrew Jonesfile = selftest.flat 545e78b70dSAndrew Jonessmp = $MAX_SMP 550415feeaSAndrew Jonesextra_params = -append 'smp' 560415feeaSAndrew Jonesgroups = selftest 57f7f81c6aSAlexander Gordeev 58ac4a67b6SAndrew Jones# Test PCI emulation 59f7f81c6aSAlexander Gordeev[pci-test] 60f7f81c6aSAlexander Gordeevfile = pci-test.flat 61f7f81c6aSAlexander Gordeevgroups = pci 624244065bSChristopher Covington 634244065bSChristopher Covington# Test PMU support 644244065bSChristopher Covington[pmu] 654244065bSChristopher Covingtonfile = pmu.flat 664244065bSChristopher Covingtongroups = pmu 678f76a347SChristopher Covington 688f76a347SChristopher Covington# Test PMU support (TCG) with -icount IPC=1 695d01d087SAndrew Jones#[pmu-tcg-icount-1] 705d01d087SAndrew Jones#file = pmu.flat 715d01d087SAndrew Jones#extra_params = -icount 0 -append '1' 725d01d087SAndrew Jones#groups = pmu 735d01d087SAndrew Jones#accel = tcg 748f76a347SChristopher Covington 758f76a347SChristopher Covington# Test PMU support (TCG) with -icount IPC=256 765d01d087SAndrew Jones#[pmu-tcg-icount-256] 775d01d087SAndrew Jones#file = pmu.flat 785d01d087SAndrew Jones#extra_params = -icount 8 -append '256' 795d01d087SAndrew Jones#groups = pmu 805d01d087SAndrew Jones#accel = tcg 81ac4a67b6SAndrew Jones 82ac4a67b6SAndrew Jones# Test GIC emulation 83ac4a67b6SAndrew Jones[gicv2-ipi] 84ac4a67b6SAndrew Jonesfile = gic.flat 85ac4a67b6SAndrew Jonessmp = $((($MAX_SMP < 8)?$MAX_SMP:8)) 86ac4a67b6SAndrew Jonesextra_params = -machine gic-version=2 -append 'ipi' 87ac4a67b6SAndrew Jonesgroups = gic 882e2d471dSAndrew Jones 892e2d471dSAndrew Jones[gicv3-ipi] 902e2d471dSAndrew Jonesfile = gic.flat 912e2d471dSAndrew Jonessmp = $MAX_SMP 922e2d471dSAndrew Jonesextra_params = -machine gic-version=3 -append 'ipi' 932e2d471dSAndrew Jonesgroups = gic 94*bec58c1cSLevente Kurusa 95*bec58c1cSLevente Kurusa# Test PSCI emulation 96*bec58c1cSLevente Kurusa[psci] 97*bec58c1cSLevente Kurusafile = psci.flat 98*bec58c1cSLevente Kurusasmp = $MAX_SMP 99*bec58c1cSLevente Kurusagroups = nodefault,psci 100