mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-24 07:50:26 +00:00
d62dd8b0cb
Take one step towards sharing code between the LAVA and non-LAVA jobs, with the goals of reducing maintenance burden and use of computational resources. The env var DEQP_NO_SAVE_RESULTS allows us to skip the procesing of the XML result files, which can take a long time and is not useful in the LAVA case as we are not uploading artifacts anywhere at the moment. Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Reviewed-by: Eric Anholt <eric@anholt.net>
81 lines
2.7 KiB
Python
Executable File
81 lines
2.7 KiB
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
from jinja2 import Environment, FileSystemLoader
|
|
import argparse
|
|
|
|
device_types = {
|
|
"sun50i-h6-pine-h64": {
|
|
"gpu_version": "panfrost-t720",
|
|
"boot_method": "u-boot",
|
|
"lava_device_type": "sun50i-h6-pine-h64",
|
|
"kernel_image_type": "type: image",
|
|
"tags": [],
|
|
},
|
|
"rk3288-veyron-jaq": {
|
|
"gpu_version": "panfrost-t760",
|
|
"boot_method": "depthcharge",
|
|
"lava_device_type": "rk3288-veyron-jaq",
|
|
"kernel_image_type": "",
|
|
"tags": [],
|
|
},
|
|
"rk3399-gru-kevin": {
|
|
"gpu_version": "panfrost-t860",
|
|
"boot_method": "depthcharge",
|
|
"lava_device_type": "rk3399-gru-kevin",
|
|
"kernel_image_type": "",
|
|
"tags": [],
|
|
},
|
|
"sun8i-h3-libretech-all-h3-cc": {
|
|
"gpu_version": "lima",
|
|
"boot_method": "u-boot",
|
|
"lava_device_type": "sun8i-h3-libretech-all-h3-cc",
|
|
"kernel_image_type": "type: zimage",
|
|
"tags": [],
|
|
},
|
|
"meson-gxl-s905x-libretech-cc": {
|
|
"gpu_version": "lima",
|
|
"boot_method": "u-boot",
|
|
"lava_device_type": "meson-gxl-s905x-libretech-cc",
|
|
"kernel_image_type": "type: image",
|
|
"tags": [],
|
|
},
|
|
"meson-gxm-khadas-vim2": {
|
|
"gpu_version": "panfrost-t820",
|
|
"boot_method": "u-boot",
|
|
"lava_device_type": "meson-gxm-khadas-vim2",
|
|
"kernel_image_type": "type: image",
|
|
"tags": ["panfrost"],
|
|
},
|
|
}
|
|
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument("--template")
|
|
parser.add_argument("--base-artifacts-url")
|
|
parser.add_argument("--arch")
|
|
parser.add_argument("--device-types", nargs="+")
|
|
parser.add_argument("--kernel-image-name")
|
|
args = parser.parse_args()
|
|
|
|
env = Environment(loader = FileSystemLoader('.'), trim_blocks=True, lstrip_blocks=True)
|
|
template = env.get_template(args.template)
|
|
|
|
for device_type in args.device_types:
|
|
values = {}
|
|
values['base_artifacts_url'] = args.base_artifacts_url
|
|
values['arch'] = args.arch
|
|
values['device_type'] = device_type
|
|
values['kernel_image_name'] = args.kernel_image_name
|
|
values['lava_device_type'] = device_types[device_type]['lava_device_type']
|
|
values['gpu_version'] = device_types[device_type]['gpu_version']
|
|
values['boot_method'] = device_types[device_type]['boot_method']
|
|
values['kernel_image_type'] = device_types[device_type]['kernel_image_type']
|
|
values['tags'] = device_types[device_type]['tags']
|
|
values['fails_file'] = 'deqp-%s-fails.txt' % device_types[device_type]['gpu_version']
|
|
values['skips_file'] = 'deqp-%s-skips.txt' % device_types[device_type]['gpu_version']
|
|
values['deqp_version'] = 'gles2'
|
|
|
|
f = open('results/lava-deqp-%s.yml' % device_type, "w")
|
|
f.write(template.render(values))
|
|
f.close()
|
|
|