From patchwork Tue Jul 11 14:49:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 701525 Delivered-To: patch@linaro.org Received: by 2002:adf:fcc5:0:0:0:0:0 with SMTP id f5csp5762020wrs; Tue, 11 Jul 2023 07:51:06 -0700 (PDT) X-Google-Smtp-Source: APBJJlFP+iGvGSjXryR1ighQSCcz8Lo21WBmZLhrlE7bqoGBuC6YDEiFMZplOg+jRWWnoxdrEG7v X-Received: by 2002:a05:622a:14d0:b0:401:e0d8:25f with SMTP id u16-20020a05622a14d000b00401e0d8025fmr18109076qtx.10.1689087066742; Tue, 11 Jul 2023 07:51:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689087066; cv=none; d=google.com; s=arc-20160816; b=HSiFmKI8hRvLveEWoK8wtLijj00QBGLlXrhnXl9pgaqNM5e5Gp8asLjltfo3zEI+re Fk4zdCPBBQ8owBHpqylUKwUC5lev+yBG25uOpyLGz8iWnq6Zi2x/cOzHw8jrCkT1KQ7p OZmK0JI+uNBPPa/1CuXo3LIq4SWlxbiDXkCBR5+G0uc/Hi2cQ7IHZEPOJFVOLr4qsMpA WNFLdKlSyTr25QWsbHKN2Pn12dP4g6D+eiYZU2kca2qK25Z810ZxnGKfTbR/a30x1vD9 Hcy1x05InTz60FLNJeN5dZd3k5lHy38PZd25lCllvb2yAwzY+Z3xQ7tEg2n+rrEkgyzw zwPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2C3ulhpGXegeRpApeYEbk/7DUySfSH+Hku3qJHK2GJw=; fh=rN/eMtQuTlvWYS5S98Qlg+9zwvtNKB2+ClDmDM0vn/w=; b=logWNDuFDJ5PVTDT8bIEheCl5Wgx1E00271Lg4cZ/0KsK/dYaohxeqVE4ZuxkZptj+ ZgGiGdSMcKlBsQMERk7VwJ9rf1Nu9S8R0R4Z+UF/qmsjPdPDlMlVllwEG6u/zrwPwBPC hBDiY2Q/cuTXzwy8uIz0AEDD6kGX6bOSZg8WSMEc3GyEdIUVqVZ4f6c91V+PiYUohGFX Yi3TfNr+iJH8+IdNBlNjKQjoHuBkROx78qdoJFP+RnHZ3JeGrxypoKT5yeqsu+nLBlb/ RcE7O7gfnZltplL0kmbKUOvx9OFhImnAGwY9oY2XQxBfAXawu16HyNHLNRGlCIK73Iq9 Fh5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i6XEWJ65; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id c12-20020ac87d8c000000b004034c41f427si864833qtd.97.2023.07.11.07.51.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 11 Jul 2023 07:51:06 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i6XEWJ65; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qJEgc-0001HF-7l; Tue, 11 Jul 2023 10:49:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qJEgb-0001H7-5e for qemu-devel@nongnu.org; Tue, 11 Jul 2023 10:49:53 -0400 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qJEgZ-0002og-FZ for qemu-devel@nongnu.org; Tue, 11 Jul 2023 10:49:52 -0400 Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-993a37b79e2so733097666b.1 for ; Tue, 11 Jul 2023 07:49:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689086989; x=1691678989; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2C3ulhpGXegeRpApeYEbk/7DUySfSH+Hku3qJHK2GJw=; b=i6XEWJ65wcJd9ZSZQpN7XjgapelcMRwQaGuqQw12NcxWXiLWX53oReXCxb115XYy9i o0aQ8pApGP/33HrryPU5ySGhq7DUTFHNIn9lOT6rCMh6Mkvhox0+y4coWZ2BwxzON+WF +Qn8ZyXYhx9s0oS64ACFGuX13lQxnR4Av+3qHuc4FqQYlrhBDU47n783gtYHpFqBHpmR ij6vy97y4n3Z4OEzrsHoedEvaEzj8qVehq3mKWdWereUTSIB1nAQ0g4AChIoQQh8kPVu VTjfmtC0PqTMRmuEHcQbd1paDB34titoVzWi/pZ79wRLMV1nxYcn6xu8oa8jTygYWgSi 78Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689086989; x=1691678989; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2C3ulhpGXegeRpApeYEbk/7DUySfSH+Hku3qJHK2GJw=; b=T2lmDR6v2s0Oudxd+fD0wX+UVg6Z3/+OofWf+WfcgUVe/YCSvdQtQkYHbffS4zTsEs IxgGQML+lOcmr084YwOFhzIvjiqc8oYK5lmjTpPpl/ZPfC+tTW6MZezCYKGCZcmm+/9T QHXmKe/a6U2FVj/VC2CfdtjsSE+lrt7z5Xrd/JcXUsikDkOqPCRIg5MIAc1lND3KOPmH TcI6icAbaVegDFjS3wMHyt2mqJ1Riaqw9OcJxQ3Z/vluMUBN+obqcS8zw52JZ7fOFxLt BIpxzFz6r54gyzwsngpCf48bFQh1nkRC4hCO2S/vHcI06tknOch/4gssVtvMzs/KzEMI p3UQ== X-Gm-Message-State: ABy/qLYbYkegeRM3xVCvNGhZqFs/bAJbtlccmSzXUDcKoeaZY85ni20J whiE5kLA7aAaocQsTdbaUvgQX7rfMddz/J4+nvQ= X-Received: by 2002:a17:907:908e:b0:96f:e5af:ac5f with SMTP id ge14-20020a170907908e00b0096fe5afac5fmr15865334ejb.47.1689086989778; Tue, 11 Jul 2023 07:49:49 -0700 (PDT) Received: from m1x-phil.lan ([176.187.194.156]) by smtp.gmail.com with ESMTPSA id qt25-20020a170906ecf900b00992ab0262c9sm1258292ejb.147.2023.07.11.07.49.48 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 11 Jul 2023 07:49:49 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, Thomas Huth Cc: Warner Losh , =?utf-8?q?Alex_Benn=C3=A9e?= , Ed Maste , =?utf-8?q?Daniel_P_=2E_Berrang=C3=A9?= , =?utf-8?q?Phi?= =?utf-8?q?lippe_Mathieu-Daud=C3=A9?= , Erik Skultety , Wainer dos Santos Moschetta , Kyle Evans , Li-Wen Hsu , Beraldo Leal Subject: [PATCH v3 4/4] tests/vm/freebsd: Get up-to-date package list from lcitool vars file Date: Tue, 11 Jul 2023 16:49:22 +0200 Message-Id: <20230711144922.67491-5-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230711144922.67491-1-philmd@linaro.org> References: <20230711144922.67491-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::632; envelope-from=philmd@linaro.org; helo=mail-ej1-x632.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Get an up-to-date package list from lcitool, that way we don't need to manually keep this array in sync. Inspired-by: Thomas Huth Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Daniel P. Berrangé --- tests/vm/freebsd | 42 ++---------------------------------------- 1 file changed, 2 insertions(+), 40 deletions(-) diff --git a/tests/vm/freebsd b/tests/vm/freebsd index 11de6473f4..ac51376c82 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)