-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathvm_data.py-dist
68 lines (60 loc) · 2.41 KB
/
vm_data.py-dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# All values below are left empty on purpose, for you to fill them with your VM references.
# The VM references will be passed over by jobs.py to pytest through pytest's --vm parameter.
# Consult README.md for accepted values.
# Example value: "http://somewhere/images/small_vm.xva"
# The "single" element contains 1 entry per VM filename:
# "small_vm": "alpine-minimal-3.12.0.xva",
# "small_vm_unix_tools": "centos7-64-created_8.0-zstd.xva",
# If a vm is meant to be used only on a given host version, the version can be specified
# through a tuple entry with (vm_filename, host_version) as:
# "small_vm": ("alpine-minimal-3.12.0.xva", r"8\.3\.")
# The host version specified for a vm is matched using re.match(), so valid patterns
# must be defined as raw strings: r"8\.2\.1", r"8\.[23]\.", or r"(9\.0|8\.2)".
# If host version is not specified, the vm filename will be used whatever the host version
# The "multi" element contains a list of VMs per entry
# "all": ["alpine-minimal-3.12.0.xva",
# "alpine-uefi-minimal-efitools-3.12.0.xva",
# ...],
# Same as "single", a vm can be bound to a given host version:
# "all": ["alpine-minimal-3.12.0.xva",
# ("alpine-uefi-minimal-efitools-3.12.0.xva", r"8\.2\."),
# ...],
VMS = {
"single": {
# basic small VM
"small_vm": "",
# small VM on which the guest tools are installable. Excludes alpine currently.
"small_vm_unix_tools": "",
# small UEFI VM on which efitools is installed, for some uefistored/varstored tests
"small_vm_efitools": "",
# "small" Windows VM (UEFI)
"small_vm_windows": "",
# Debian VM (UEFI, no GUI)
"debian_uefi_vm": "",
},
"multi": {
# all VMs we want to run "multi_vms" tests on
"all": [],
# VMs which support the installation of our unix guest tools from the ISO
"tools_unix": [],
# UEFI unix/linux Vms
"uefi_unix": [],
# UEFI Windows VMs
"uefi_windows": [],
}
}
# Example of use for a common XVA_LOCATION
#
# XVA_LOCATION="http://somewhere/"
#
# def prepend_xva_location(vm):
# if type(vm) is tuple:
# return (XVA_LOCATION + vm[0], vm[1])
#
# return XVA_LOCATION + vm
#
# for key, vm in dict(VMS["single"]).items():
# VMS["single"][key] = prepend_xva_location(vm)
#
# for key, vms in dict(VMS["multi"]).items():
# VMS["multi"][key] = [prepend_xva_location(vm) for vm in vms]