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 39c20e1e54SThomas Huth[spapr_hcall] 40c20e1e54SThomas Huthfile = spapr_hcall.elf 41e3892e10SLaurent Vivier 42e3892e10SLaurent Vivier[rtas-get-time-of-day] 43e3892e10SLaurent Vivierfile = rtas.elf 44e3892e10SLaurent Viviertimeout = 5 45e3892e10SLaurent Vivierextra_params = -append "get-time-of-day date=$(date +%s)" 46e3892e10SLaurent Viviergroups = rtas 47e3892e10SLaurent Vivier 48eaa04bc8SLaurent Vivier[rtas-get-time-of-day-base] 49eaa04bc8SLaurent Vivierfile = rtas.elf 50eaa04bc8SLaurent Viviertimeout = 5 51eaa04bc8SLaurent Vivierextra_params = -rtc base="2006-06-17" -append "get-time-of-day date=$(date --date="2006-06-17 UTC" +%s)" 52eaa04bc8SLaurent Viviergroups = rtas 53eaa04bc8SLaurent Vivier 54e3892e10SLaurent Vivier[rtas-set-time-of-day] 55e3892e10SLaurent Vivierfile = rtas.elf 56e3892e10SLaurent Vivierextra_params = -append "set-time-of-day" 57e3892e10SLaurent Viviertimeout = 5 58e3892e10SLaurent Viviergroups = rtas 59be9b007bSLaurent Vivier 60be9b007bSLaurent Vivier[emulator] 61be9b007bSLaurent Vivierfile = emulator.elf 62adb87bc4SSuraj Jitindar Singh 63adb87bc4SSuraj Jitindar Singh[h_cede_tm] 64adb87bc4SSuraj Jitindar Singhfile = tm.elf 65adb87bc4SSuraj Jitindar Singhsmp = 2,threads=2 66ac44b32aSDavid Gibsonextra_params = -machine cap-htm=on -append "h_cede_tm" 67aa3a3a9eSSuraj Jitindar Singhgroups = h_cede_tm 68ee30cf14SThomas Huth 69ee30cf14SThomas Huth[sprs] 70ee30cf14SThomas Huthfile = sprs.elf 71*ef67d213SNicholas Piggin 72*ef67d213SNicholas Piggin[sprs-migration] 73*ef67d213SNicholas Pigginfile = sprs.elf 74ee30cf14SThomas Huthextra_params = -append '-w' 75ee30cf14SThomas Huthgroups = migration 76