diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-07-11 16:49:22 +0200 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2023-07-18 09:36:28 +0200 |
commit | ca2a07f6c3630d5d39af24651987256a705ac500 (patch) | |
tree | 0221940636dd83f752cc66507d56e3e4893e92cf /tests/vm/freebsd | |
parent | 4cd57671b777632be2dc20bc2f5a0410e258e3dc (diff) | |
download | qemu-ca2a07f6c3630d5d39af24651987256a705ac500.zip qemu-ca2a07f6c3630d5d39af24651987256a705ac500.tar.gz qemu-ca2a07f6c3630d5d39af24651987256a705ac500.tar.bz2 |
tests/vm/freebsd: Get up-to-date package list from lcitool vars file
Get an up-to-date package list from lcitool, that way we
don't need to manually keep this array in sync.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Inspired-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20230711144922.67491-5-philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/vm/freebsd')
-rwxr-xr-x | tests/vm/freebsd | 42 |
1 files changed, 2 insertions, 40 deletions
diff --git a/tests/vm/freebsd b/tests/vm/freebsd index 11de647..ac51376 100755 --- a/tests/vm/freebsd +++ b/tests/vm/freebsd @@ -31,45 +31,6 @@ class FreeBSDVM(basevm.BaseVM): link = "https://download.freebsd.org/releases/CI-IMAGES/13.2-RELEASE/amd64/Latest/FreeBSD-13.2-RELEASE-amd64-BASIC-CI.raw.xz" csum = "a4fb3b6c7b75dd4d58fb0d75e4caf72844bffe0ca00e66459c028b198ffb3c0e" size = "20G" - pkgs = [ - # build tools - "git", - "pkgconf", - "bzip2", - "python39", - "ninja", - - # gnu tools - "bash", - "gmake", - "gsed", - "gettext", - - # libs: crypto - "gnutls", - - # libs: images - "jpeg-turbo", - "png", - - # libs: ui - "sdl2", - "gtk3", - "libxkbcommon", - - # libs: opengl - "libepoxy", - "mesa-libs", - - # libs: migration - "zstd", - - # libs: networking - "libslirp", - - # libs: sndio - "sndio", - ] BUILD_SCRIPT = """ set -e; @@ -151,8 +112,9 @@ class FreeBSDVM(basevm.BaseVM): self.console_wait(prompt) self.console_send("echo 'chmod 666 /dev/vtbd1' >> /etc/rc.local\n") + pkgs = self.get_qemu_packages_from_lcitool_json() self.print_step("Installing packages") - self.ssh_root_check("pkg install -y %s\n" % " ".join(self.pkgs)) + self.ssh_root_check("pkg install -y %s\n" % " ".join(pkgs)) # shutdown self.ssh_root(self.poweroff) |