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 ... 158c85a478SAndrew Jones# accel = kvm|tcg # Optionally specify if test must run with 168c85a478SAndrew Jones# # kvm or tcg. If not specified, then kvm will 178c85a478SAndrew Jones# # be used when available. 188c85a478SAndrew Jones# timeout = <duration> # Optionally specify a timeout. 197019e650SLaurent Vivier# check = <path>=<value> # check a file for a particular value before running 207019e650SLaurent Vivier# # a test. The check line can contain multiple files 217019e650SLaurent Vivier# # to check separated by a space but each check 227019e650SLaurent Vivier# # parameter needs to be of the form <path>=<value> 238c85a478SAndrew Jones############################################################################## 248c85a478SAndrew Jones 258c85a478SAndrew Jones# 268c85a478SAndrew Jones# Test that the configured number of processors (smp = <num>), and 278c85a478SAndrew Jones# that the configured amount of memory (-m <MB>) are correctly setup 288c85a478SAndrew Jones# by the framework. 298c85a478SAndrew Jones# 308c85a478SAndrew Jones[selftest-setup] 318c85a478SAndrew Jonesfile = selftest.elf 328c85a478SAndrew Jonessmp = 2 338c85a478SAndrew Jonesextra_params = -m 256 -append 'setup smp=2 mem=256' 348c85a478SAndrew Jonesgroups = selftest 35c20e1e54SThomas Huth 36c20e1e54SThomas Huth[spapr_hcall] 37c20e1e54SThomas Huthfile = spapr_hcall.elf 38e3892e10SLaurent Vivier 39e3892e10SLaurent Vivier[rtas-get-time-of-day] 40e3892e10SLaurent Vivierfile = rtas.elf 41e3892e10SLaurent Viviertimeout = 5 42e3892e10SLaurent Vivierextra_params = -append "get-time-of-day date=$(date +%s)" 43e3892e10SLaurent Viviergroups = rtas 44e3892e10SLaurent Vivier 45e3892e10SLaurent Vivier[rtas-set-time-of-day] 46e3892e10SLaurent Vivierfile = rtas.elf 47e3892e10SLaurent Vivierextra_params = -append "set-time-of-day" 48e3892e10SLaurent Viviertimeout = 5 49e3892e10SLaurent Viviergroups = rtas 50*be9b007bSLaurent Vivier 51*be9b007bSLaurent Vivier[emulator] 52*be9b007bSLaurent Vivierfile = emulator.elf 53