aboutsummaryrefslogtreecommitdiff
path: root/tests/lcitool/refresh
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2024-06-03 18:53:27 +0100
committerAlex Bennée <alex.bennee@linaro.org>2024-06-06 10:26:13 +0100
commit1417704564a50457fcef9f4ed11afbd9e9050bc4 (patch)
tree56715addf48c5697330f15584dc3484119858bb1 /tests/lcitool/refresh
parent61d1e3cbde0e6e84de4edc1b944a61f352f95d57 (diff)
downloadqemu-1417704564a50457fcef9f4ed11afbd9e9050bc4.zip
qemu-1417704564a50457fcef9f4ed11afbd9e9050bc4.tar.gz
qemu-1417704564a50457fcef9f4ed11afbd9e9050bc4.tar.bz2
tests/lcitool: generate package lists for ansible
With the new ability to output YAML we can build the package list for our ansible setup scripts. We will integrate them in the next commit. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20240603175328.3823123-12-alex.bennee@linaro.org>
Diffstat (limited to 'tests/lcitool/refresh')
-rwxr-xr-xtests/lcitool/refresh16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/lcitool/refresh b/tests/lcitool/refresh
index 9d8e9c6..b25e3ac 100755
--- a/tests/lcitool/refresh
+++ b/tests/lcitool/refresh
@@ -80,7 +80,7 @@ def generate_dockerfile(host, target, project="qemu", cross=None, trailer=None):
def generate_cirrus(target, trailer=None):
filename = Path(src_dir, ".gitlab-ci.d", "cirrus", target + ".vars")
- cmd = lcitool_cmd + ["variables", target, "qemu"]
+ cmd = lcitool_cmd + ["variables", "--format", "shell", target, "qemu"]
generate(filename, cmd, trailer)
@@ -90,6 +90,13 @@ def generate_pkglist(vm, target):
generate(filename, cmd, None)
+def generate_yaml(os, target, arch, trailer=None):
+ filename = Path(src_dir, "scripts", "ci", "setup", os, f"{target}-{arch}.yaml")
+ cmd = lcitool_cmd + ["variables", "--format", "yaml", "-a",
+ arch, target, "qemu"]
+ generate(filename, cmd, trailer)
+
+
# Netmap still needs to be manually built as it is yet to be packaged
# into a distro. We also add cscope and gtags which are used in the CI
# test
@@ -209,6 +216,13 @@ try:
#
generate_pkglist("freebsd", "freebsd-13")
+ #
+ # Ansible package lists
+ #
+ generate_yaml("ubuntu", "ubuntu-2204", "aarch64")
+ generate_yaml("ubuntu", "ubuntu-2204", "s390x")
+
+
sys.exit(0)
except Exception as ex:
print(str(ex), file=sys.stderr)