18c85a478SAndrew Jones############################################################################## 28c85a478SAndrew Jones# unittest configuration 38c85a478SAndrew Jones# 48c85a478SAndrew Jones# [unittest_name] 58c85a478SAndrew Jones# file = <name>.flat # Name of the flat file to be used. 68c85a478SAndrew Jones# smp = <num> # Number of processors the VM will use 78c85a478SAndrew Jones# # during this test. Use $MAX_SMP to use 88c85a478SAndrew Jones# # the maximum the host supports. Defaults 98c85a478SAndrew Jones# # to one. 108c85a478SAndrew Jones# extra_params = -append <params...> # Additional parameters used. 118c85a478SAndrew Jones# arch = ppc64 # Select one if the test case is 128c85a478SAndrew Jones# # specific to only one. 138c85a478SAndrew Jones# groups = <group_name1> <group_name2> ... # Used to identify test cases 148c85a478SAndrew 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 188c85a478SAndrew Jones# accel = kvm|tcg # Optionally specify if test must run with 198c85a478SAndrew Jones# # kvm or tcg. If not specified, then kvm will 208c85a478SAndrew Jones# # be used when available. 218c85a478SAndrew 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> 268c85a478SAndrew Jones############################################################################## 278c85a478SAndrew Jones 288c85a478SAndrew Jones# 298c85a478SAndrew Jones# Test that the configured number of processors (smp = <num>), and 308c85a478SAndrew Jones# that the configured amount of memory (-m <MB>) are correctly setup 318c85a478SAndrew Jones# by the framework. 328c85a478SAndrew Jones# 338c85a478SAndrew Jones[selftest-setup] 348c85a478SAndrew Jonesfile = selftest.elf 358c85a478SAndrew Jonessmp = 2 368c85a478SAndrew Jonesextra_params = -m 256 -append 'setup smp=2 mem=256' 378c85a478SAndrew Jonesgroups = selftest 38c20e1e54SThomas Huth 392990abeaSNicholas Piggin[selftest-migration] 402990abeaSNicholas Pigginfile = selftest-migration.elf 412990abeaSNicholas Piggingroups = selftest migration 422990abeaSNicholas Piggin# TODO: Remove accel=kvm once the following TCG migration fix has been merged: 432990abeaSNicholas Piggin# https://lore.kernel.org/qemu-devel/20240219061731.232570-1-npiggin@gmail.com/ 442990abeaSNicholas Pigginaccel = kvm 452990abeaSNicholas Piggin 46fa8914bcSNicholas Piggin[selftest-migration-skip] 47fa8914bcSNicholas Pigginfile = selftest-migration.elf 48fa8914bcSNicholas Pigginmachine = pseries 49fa8914bcSNicholas Piggingroups = selftest migration 50fa8914bcSNicholas Pigginextra_params = -append "skip" 51fa8914bcSNicholas Piggin 52*fe151b46SNicholas Piggin# This fails due to a QEMU TCG bug so KVM-only until QEMU is fixed upstream 53*fe151b46SNicholas Piggin[migration-memory] 54*fe151b46SNicholas Pigginfile = memory-verify.elf 55*fe151b46SNicholas Pigginaccel = kvm 56*fe151b46SNicholas Pigginmachine = pseries 57*fe151b46SNicholas Piggingroups = migration 58*fe151b46SNicholas Piggin 59c20e1e54SThomas Huth[spapr_hcall] 60c20e1e54SThomas Huthfile = spapr_hcall.elf 61e3892e10SLaurent Vivier 62e7324a48SNicholas Piggin[spapr_vpa] 63e7324a48SNicholas Pigginfile = spapr_vpa.elf 64e7324a48SNicholas Piggin 65e3892e10SLaurent Vivier[rtas-get-time-of-day] 66e3892e10SLaurent Vivierfile = rtas.elf 67e3892e10SLaurent Viviertimeout = 5 68e3892e10SLaurent Vivierextra_params = -append "get-time-of-day date=$(date +%s)" 69e3892e10SLaurent Viviergroups = rtas 70e3892e10SLaurent Vivier 71eaa04bc8SLaurent Vivier[rtas-get-time-of-day-base] 72eaa04bc8SLaurent Vivierfile = rtas.elf 73eaa04bc8SLaurent Viviertimeout = 5 74eaa04bc8SLaurent Vivierextra_params = -rtc base="2006-06-17" -append "get-time-of-day date=$(date --date="2006-06-17 UTC" +%s)" 75eaa04bc8SLaurent Viviergroups = rtas 76eaa04bc8SLaurent Vivier 77e3892e10SLaurent Vivier[rtas-set-time-of-day] 78e3892e10SLaurent Vivierfile = rtas.elf 79e3892e10SLaurent Vivierextra_params = -append "set-time-of-day" 80e3892e10SLaurent Viviertimeout = 5 81e3892e10SLaurent Viviergroups = rtas 82be9b007bSLaurent Vivier 83be9b007bSLaurent Vivier[emulator] 84be9b007bSLaurent Vivierfile = emulator.elf 85adb87bc4SSuraj Jitindar Singh 86adb87bc4SSuraj Jitindar Singh[h_cede_tm] 87adb87bc4SSuraj Jitindar Singhfile = tm.elf 88ccb1ac25SNicholas Pigginaccel = kvm 89adb87bc4SSuraj Jitindar Singhsmp = 2,threads=2 90ac44b32aSDavid Gibsonextra_params = -machine cap-htm=on -append "h_cede_tm" 91aa3a3a9eSSuraj Jitindar Singhgroups = h_cede_tm 92ee30cf14SThomas Huth 93ee30cf14SThomas Huth[sprs] 94ee30cf14SThomas Huthfile = sprs.elf 95ef67d213SNicholas Piggin 96ef67d213SNicholas Piggin[sprs-migration] 97ef67d213SNicholas Pigginfile = sprs.elf 98ee30cf14SThomas Huthextra_params = -append '-w' 99ee30cf14SThomas Huthgroups = migration 100