From nobody Sun May 5 15:01:05 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1677683850; cv=none; d=zohomail.com; s=zohoarc; b=Sh9E+VWob/xk4djR5Ebw3KiKyBHHbBetPBeNYnhlqz51aKzMe2zqLUkqKwVOR6bvD8j8d+IaZMJSlzDtBtHtffz0sceF4FOy8Lx5LUugNjcpWbQkccq21C/9qv/ojYhRBV5aXrY3pZ7jpTxBQNTKeO1TFWfjj5L8hl7HXAWXO/A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677683850; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=EqFhRBXrn6GPErRi8pyJLWIavaWOiOrxY9yomxuPC6M=; b=izuGV/4uUVL7rnv+fEImL9GpKSa/0TTfy22s+2hXcmDMQ0lt+53vkkc/x7KdcVXJ15DMhP789d9bPQPsWmzkA6EHVQEAE3lqVqrb6ii26+7P77wqAWTF3xyJS+iWzJE41LMbAvesGw7moOKGDQXw4veASgTr5yyy4bVeQH2Vm+k= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1677683850832934.7264082230366; Wed, 1 Mar 2023 07:17:30 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXOBo-0008GX-G9; Wed, 01 Mar 2023 10:16:20 -0500 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 1pXOBh-00087m-M3 for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:16:14 -0500 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXOBb-0007bG-NM for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:16:13 -0500 Received: by mail-wr1-x42c.google.com with SMTP id bx12so10431848wrb.11 for ; Wed, 01 Mar 2023 07:16:07 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id z5-20020a5d6545000000b002c5501a5803sm13049632wrv.65.2023.03.01.07.16.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 07:16:05 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 9C6FD1FFB8; Wed, 1 Mar 2023 15:16:04 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=EqFhRBXrn6GPErRi8pyJLWIavaWOiOrxY9yomxuPC6M=; b=sJKGHSql7XJ01ANn5mmS9Rs7+id4qzzx7rCezAFN9doOmOyuKDc8uxIUYFEp2TLuiB w+OUWfWqcS2y4qKEiL0ZY0d5c+0jsMzDzHod8WXKRpDLAoDi14uLKZXHtmBU1A9i7VUc aT3+/cGo8EWOCiAGcKCujj3WIKh804Bfyb1wroKF8Oky5UfECTiR6Q3TPgxEURixBKXc 5fhCxKxxYSXGc6ossf37w2SJaTwTYBmWW+723dWj2Ol0vI+6hJV3k+KekQC5LY+ZIBe6 OQ/8MYR70JNkr63gfh7Hg8elNVnKqJgiraMk2DF7YkxSbGeQdl95tySqIkOTkNhlqgW4 2fuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=EqFhRBXrn6GPErRi8pyJLWIavaWOiOrxY9yomxuPC6M=; b=dxIHHoYCB+55GRApIZJ7hdldhVzKefynZh2Tjbrpx9Yfm8n6CeKKYB0BHJEGsULxx5 WGkuYr2qKamEFlzFmJXYq6PyO1C8yZgASYcn9PwXwSSE3IMivDrBu6VqBhhSK+ne8i2f oCjlJj64qiL3636pbBfPwwzY77Xz9/I5g4WIDOXVcLt+Q5+Ua1M4kIpZQSfrhRLUO8x9 7T8/0ZU+LhW4PLO+xkilPsaVKam2SJyBYMf6d6SNjKw8NWqVv3lKnEqb2KXiigFNW8m9 YGXmsnfFBQxD1BRKJ9Rs+2901bW5BLCFbIe97dwNr38Imhw6+MKBQv62eF0udkqdcXYk tE6w== X-Gm-Message-State: AO0yUKX2ouhTZ23hV7tmaVxGG6rS/vw2F7NX0BEhi897DHgcZiSv90G2 hKh2LaKuH18TCJykV/Z8W4XLuQ== X-Google-Smtp-Source: AK7set+5J87ErGK0zTiEUhfseV/IZTU0PUty/WZf0AgISYTjQ4LkwSSb05r/nqKmne8yW0HHP7Ul5A== X-Received: by 2002:adf:f789:0:b0:2c7:1319:7b1d with SMTP id q9-20020adff789000000b002c713197b1dmr5167726wrp.39.1677683765652; Wed, 01 Mar 2023 07:16:05 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Subject: [PULL v2 01/24] tests: don't run socat tests on MacOS as well Date: Wed, 1 Mar 2023 15:15:41 +0000 Message-Id: <20230301151604.1948813-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230301151604.1948813-1-alex.bennee@linaro.org> References: <20230301151604.1948813-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42c.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 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1677683851652100003 In preparation for the next patch when we enable socat for our CI images we need to disable this part of the test for MacOS. The bug has been raised here: https://gitlab.com/qemu-project/qemu/-/issues/1495 Once that is fixed we should re-enable the test. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20230228190653.1602033-2-alex.bennee@linaro.org> diff --git a/tests/unit/test-io-channel-command.c b/tests/unit/test-io-chan= nel-command.c index 425e2f5594..04b75ab3b4 100644 --- a/tests/unit/test-io-channel-command.c +++ b/tests/unit/test-io-channel-command.c @@ -31,7 +31,7 @@ =20 static char *socat =3D NULL; =20 -#ifndef _WIN32 +#if !defined(_WIN32) && !defined(CONFIG_DARWIN) static void test_io_channel_command_fifo(bool async) { g_autofree gchar *tmpdir =3D g_dir_make_tmp("qemu-test-io-channel.XXXX= XX", NULL); @@ -128,7 +128,7 @@ int main(int argc, char **argv) =20 socat =3D g_find_program_in_path("socat"); =20 -#ifndef _WIN32 +#if !defined(_WIN32) && !defined(CONFIG_DARWIN) g_test_add_func("/io/channel/command/fifo/sync", test_io_channel_command_fifo_sync); g_test_add_func("/io/channel/command/fifo/async", --=20 2.39.2 From nobody Sun May 5 15:01:05 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1677683863; cv=none; d=zohomail.com; s=zohoarc; b=I95bWQdxkx7dYZ1xYQmpj4PN7UYw3YX3wMGQVkVTWqHbQ+YjVkwv/lRB4eB6KhztB17tO8fyAl7q5Pz3BZUsDE/BhEjfp2OYZOmC4+E4niLyNYX/qNYlAB++Mw6LUjeL5uNxVoweXuy/+aNqnXh24IfH2tQqNzNj8+nKzJhIeiA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677683863; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=t4xDiMJVHqz0QHdQQ6qJENg6O56hGBA8aqrpHDTdGMQ=; b=gkwDmMIpwNr75IpTAQwAqUJdn6bshpCNNGuXZGDHiUdpCVLpFwEKTB5HTSdjaMIbTv777FHjMOItLRp+hr7++2Yg4m/nVsy0PX0XXVk89PgMOHUl1GmbgghqwqyxR2Rkl5sznuyuqnOB7380x8LRifeyM9B3nQ3j2yQ59pifCKc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1677683863384169.03220921755235; Wed, 1 Mar 2023 07:17:43 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXOBo-0008GJ-Cs; Wed, 01 Mar 2023 10:16:20 -0500 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 1pXOBi-00087s-0w for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:16:14 -0500 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXOBd-0007bj-DO for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:16:13 -0500 Received: by mail-wr1-x436.google.com with SMTP id r18so13612431wrx.1 for ; Wed, 01 Mar 2023 07:16:09 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id u3-20020adfed43000000b002c55ec7f661sm13600516wro.5.2023.03.01.07.16.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 07:16:05 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id DF9AF1FFBA; Wed, 1 Mar 2023 15:16:04 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=t4xDiMJVHqz0QHdQQ6qJENg6O56hGBA8aqrpHDTdGMQ=; b=b8EKcGC2la29AAB/q/tdBdMKaGmJyHalQyLN+0Y5qIpj4U8ambOcQbFdH8yueQBaDW cjqruR5LIxO+iKOCZ0H8A5i8nhrmuTz+7CmohFC8GF94w9z+EmB+2ucCydX/DTPx5Rfk ykh3VfWzFzkknBfFccbQbVijK0pb9fxuKDap651lawWK6puDJcQtjj9hiz3YAR3Ocps3 oArVfD1uQrlsVaQ6ZM1kmrwt/oabqIaTExwZ6nxFjX5pYTs1BFHckW9RWP4Nogskh5+Q T4ksfhJJq5YzxiUDCT+1kIBDpNu5SYQLd20l8MtC4pBjSk+Oyu3ziQ1kZfxLMrgcDtyE pKkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=t4xDiMJVHqz0QHdQQ6qJENg6O56hGBA8aqrpHDTdGMQ=; b=yP5idsEtIOkg1uuxnA9qyHRQgES81HBgLKPtnxj78Q6BvhsHVcjVR6937BzTEG9d4I iqthxc7UElK4LuOtdAOVfxjAdbuTXh1zPM6znUUdeQzimo90Rno5cSPeD83pU3kbdhnj k+/SRpk9m0Ub03OmPYfHrG9/yziUgEyV+2afv5GFly6QSv1/Ia007Fcfk56Oi90bnLI3 illFtREti62v8DR6s03c6GEOi6LVUK/x3/t9KKV21dpp4ZZg05D5qo+A1LcT50b5/f8d jTEhqycirIsva7ojzfW1jPq2t4TPNtiGOYRKKQ5sgmzqQ/RBqIPhOMdKkvedp6ITNpnM C4sg== X-Gm-Message-State: AO0yUKU4Ti02Wab1y240n6yE9Sdv3en2SXzYM7Uw3DrLfaPJ/cWNQ51V ZHKEG0VlIqPeBXC96KyZvWpPow== X-Google-Smtp-Source: AK7set9HHsHz/TBzjnQ1qAaFP1hnrnTUQrG507Ls+T5e3leY3DdWd2Gz0LIDsItCkoDS6xXPLoKIcQ== X-Received: by 2002:a05:6000:147:b0:2c7:b34:dece with SMTP id r7-20020a056000014700b002c70b34decemr5331704wrx.4.1677683767745; Wed, 01 Mar 2023 07:16:07 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Ed Maste , Li-Wen Hsu , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL v2 02/24] tests: add socat dependency for tests Date: Wed, 1 Mar 2023 15:15:42 +0000 Message-Id: <20230301151604.1948813-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230301151604.1948813-1-alex.bennee@linaro.org> References: <20230301151604.1948813-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x436.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 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1677683863809100001 We only use it for test-io-channel-command at the moment. Unfortunately bringing socat into CI exposed an existing bug in the test-io-channel-command unit test so we disabled it for MacOS in the previous patch. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Philippe Mathieu-Daud=C3=A9 Cc: Marc-Andr=C3=A9 Lureau Message-Id: <20230228190653.1602033-3-alex.bennee@linaro.org> diff --git a/.gitlab-ci.d/cirrus/freebsd-12.vars b/.gitlab-ci.d/cirrus/free= bsd-12.vars index 8934e5d57f..44d8a2a511 100644 --- a/.gitlab-ci.d/cirrus/freebsd-12.vars +++ b/.gitlab-ci.d/cirrus/freebsd-12.vars @@ -11,6 +11,6 @@ MAKE=3D'/usr/local/bin/gmake' NINJA=3D'/usr/local/bin/ninja' PACKAGING_COMMAND=3D'pkg' PIP3=3D'/usr/local/bin/pip-3.8' -PKGS=3D'alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache cdrkit-geni= soimage cmocka ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 g= ettext git glib gmake gnutls gsed gtk3 json-c libepoxy libffi libgcrypt lib= jpeg-turbo libnfs libslirp libspice-server libssh libtasn1 llvm lzo2 meson = ncurses nettle ninja opencv pixman pkgconf png py39-numpy py39-pillow py39-= pip py39-sphinx py39-sphinx_rtd_theme py39-yaml python3 rpm2cpio sdl2 sdl2_= image snappy sndio spice-protocol tesseract usbredir virglrenderer vte3 zst= d' +PKGS=3D'alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache cdrkit-geni= soimage cmocka ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 g= ettext git glib gmake gnutls gsed gtk3 json-c libepoxy libffi libgcrypt lib= jpeg-turbo libnfs libslirp libspice-server libssh libtasn1 llvm lzo2 meson = ncurses nettle ninja opencv pixman pkgconf png py39-numpy py39-pillow py39-= pip py39-sphinx py39-sphinx_rtd_theme py39-yaml python3 rpm2cpio sdl2 sdl2_= image snappy sndio socat spice-protocol tesseract usbredir virglrenderer vt= e3 zstd' PYPI_PKGS=3D'' PYTHON=3D'/usr/local/bin/python3' diff --git a/.gitlab-ci.d/cirrus/freebsd-13.vars b/.gitlab-ci.d/cirrus/free= bsd-13.vars index 65ce456c48..7622c849b2 100644 --- a/.gitlab-ci.d/cirrus/freebsd-13.vars +++ b/.gitlab-ci.d/cirrus/freebsd-13.vars @@ -11,6 +11,6 @@ MAKE=3D'/usr/local/bin/gmake' NINJA=3D'/usr/local/bin/ninja' PACKAGING_COMMAND=3D'pkg' PIP3=3D'/usr/local/bin/pip-3.8' -PKGS=3D'alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache cdrkit-geni= soimage cmocka ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 g= ettext git glib gmake gnutls gsed gtk3 json-c libepoxy libffi libgcrypt lib= jpeg-turbo libnfs libslirp libspice-server libssh libtasn1 llvm lzo2 meson = ncurses nettle ninja opencv pixman pkgconf png py39-numpy py39-pillow py39-= pip py39-sphinx py39-sphinx_rtd_theme py39-yaml python3 rpm2cpio sdl2 sdl2_= image snappy sndio spice-protocol tesseract usbredir virglrenderer vte3 zst= d' +PKGS=3D'alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache cdrkit-geni= soimage cmocka ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 g= ettext git glib gmake gnutls gsed gtk3 json-c libepoxy libffi libgcrypt lib= jpeg-turbo libnfs libslirp libspice-server libssh libtasn1 llvm lzo2 meson = ncurses nettle ninja opencv pixman pkgconf png py39-numpy py39-pillow py39-= pip py39-sphinx py39-sphinx_rtd_theme py39-yaml python3 rpm2cpio sdl2 sdl2_= image snappy sndio socat spice-protocol tesseract usbredir virglrenderer vt= e3 zstd' PYPI_PKGS=3D'' PYTHON=3D'/usr/local/bin/python3' diff --git a/.gitlab-ci.d/cirrus/macos-12.vars b/.gitlab-ci.d/cirrus/macos-= 12.vars index 65b78fa08f..da6aa6469b 100644 --- a/.gitlab-ci.d/cirrus/macos-12.vars +++ b/.gitlab-ci.d/cirrus/macos-12.vars @@ -11,6 +11,6 @@ MAKE=3D'/opt/homebrew/bin/gmake' NINJA=3D'/opt/homebrew/bin/ninja' PACKAGING_COMMAND=3D'brew' PIP3=3D'/opt/homebrew/bin/pip3' -PKGS=3D'bash bc bison bzip2 capstone ccache cmocka ctags curl dbus diffuti= ls dtc flex gcovr gettext git glib gnu-sed gnutls gtk+3 jemalloc jpeg-turbo= json-c libepoxy libffi libgcrypt libiscsi libnfs libpng libslirp libssh li= btasn1 libusb llvm lzo make meson ncurses nettle ninja pixman pkg-config py= thon3 rpm2cpio sdl2 sdl2_image snappy sparse spice-protocol tesseract usbre= dir vde vte3 zlib zstd' +PKGS=3D'bash bc bison bzip2 capstone ccache cmocka ctags curl dbus diffuti= ls dtc flex gcovr gettext git glib gnu-sed gnutls gtk+3 jemalloc jpeg-turbo= json-c libepoxy libffi libgcrypt libiscsi libnfs libpng libslirp libssh li= btasn1 libusb llvm lzo make meson ncurses nettle ninja pixman pkg-config py= thon3 rpm2cpio sdl2 sdl2_image snappy socat sparse spice-protocol tesseract= usbredir vde vte3 zlib zstd' PYPI_PKGS=3D'PyYAML numpy pillow sphinx sphinx-rtd-theme' PYTHON=3D'/opt/homebrew/bin/python3' diff --git a/tests/docker/dockerfiles/alpine.docker b/tests/docker/dockerfi= les/alpine.docker index 66c499c097..7589f6c6ed 100644 --- a/tests/docker/dockerfiles/alpine.docker +++ b/tests/docker/dockerfiles/alpine.docker @@ -94,6 +94,7 @@ RUN apk update && \ sed \ snappy-dev \ sndio-dev \ + socat \ sparse \ spice-dev \ spice-protocol \ diff --git a/tests/docker/dockerfiles/centos8.docker b/tests/docker/dockerf= iles/centos8.docker index 3c74be09a6..bab67ccd41 100644 --- a/tests/docker/dockerfiles/centos8.docker +++ b/tests/docker/dockerfiles/centos8.docker @@ -103,6 +103,7 @@ RUN dnf distro-sync -y && \ rpm \ sed \ snappy-devel \ + socat \ spice-protocol \ spice-server-devel \ systemd-devel \ diff --git a/tests/docker/dockerfiles/debian-amd64-cross.docker b/tests/doc= ker/dockerfiles/debian-amd64-cross.docker index 5175095a85..856db95100 100644 --- a/tests/docker/dockerfiles/debian-amd64-cross.docker +++ b/tests/docker/dockerfiles/debian-amd64-cross.docker @@ -52,6 +52,7 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ python3-yaml \ rpm2cpio \ sed \ + socat \ sparse \ tar \ tesseract-ocr \ diff --git a/tests/docker/dockerfiles/debian-amd64.docker b/tests/docker/do= ckerfiles/debian-amd64.docker index b61f664ea2..e3dba71ad5 100644 --- a/tests/docker/dockerfiles/debian-amd64.docker +++ b/tests/docker/dockerfiles/debian-amd64.docker @@ -120,6 +120,7 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ python3-yaml \ rpm2cpio \ sed \ + socat \ sparse \ systemtap-sdt-dev \ tar \ diff --git a/tests/docker/dockerfiles/debian-arm64-cross.docker b/tests/doc= ker/dockerfiles/debian-arm64-cross.docker index b69958c69f..b00e9e9bcf 100644 --- a/tests/docker/dockerfiles/debian-arm64-cross.docker +++ b/tests/docker/dockerfiles/debian-arm64-cross.docker @@ -52,6 +52,7 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ python3-yaml \ rpm2cpio \ sed \ + socat \ sparse \ tar \ tesseract-ocr \ diff --git a/tests/docker/dockerfiles/debian-armel-cross.docker b/tests/doc= ker/dockerfiles/debian-armel-cross.docker index 96b524fab6..fb1129f256 100644 --- a/tests/docker/dockerfiles/debian-armel-cross.docker +++ b/tests/docker/dockerfiles/debian-armel-cross.docker @@ -52,6 +52,7 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ python3-yaml \ rpm2cpio \ sed \ + socat \ sparse \ tar \ tesseract-ocr \ diff --git a/tests/docker/dockerfiles/debian-armhf-cross.docker b/tests/doc= ker/dockerfiles/debian-armhf-cross.docker index 08a75cebdb..7a2b864a38 100644 --- a/tests/docker/dockerfiles/debian-armhf-cross.docker +++ b/tests/docker/dockerfiles/debian-armhf-cross.docker @@ -52,6 +52,7 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ python3-yaml \ rpm2cpio \ sed \ + socat \ sparse \ tar \ tesseract-ocr \ diff --git a/tests/docker/dockerfiles/debian-mips64el-cross.docker b/tests/= docker/dockerfiles/debian-mips64el-cross.docker index 5930e6fa5d..5a3340e964 100644 --- a/tests/docker/dockerfiles/debian-mips64el-cross.docker +++ b/tests/docker/dockerfiles/debian-mips64el-cross.docker @@ -52,6 +52,7 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ python3-yaml \ rpm2cpio \ sed \ + socat \ sparse \ tar \ tesseract-ocr \ diff --git a/tests/docker/dockerfiles/debian-mipsel-cross.docker b/tests/do= cker/dockerfiles/debian-mipsel-cross.docker index c65d9830e7..422fdebe8f 100644 --- a/tests/docker/dockerfiles/debian-mipsel-cross.docker +++ b/tests/docker/dockerfiles/debian-mipsel-cross.docker @@ -52,6 +52,7 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ python3-yaml \ rpm2cpio \ sed \ + socat \ sparse \ tar \ tesseract-ocr \ diff --git a/tests/docker/dockerfiles/debian-ppc64el-cross.docker b/tests/d= ocker/dockerfiles/debian-ppc64el-cross.docker index 2ae56c978e..78d7ae6211 100644 --- a/tests/docker/dockerfiles/debian-ppc64el-cross.docker +++ b/tests/docker/dockerfiles/debian-ppc64el-cross.docker @@ -52,6 +52,7 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ python3-yaml \ rpm2cpio \ sed \ + socat \ sparse \ tar \ tesseract-ocr \ diff --git a/tests/docker/dockerfiles/debian-s390x-cross.docker b/tests/doc= ker/dockerfiles/debian-s390x-cross.docker index 0db86a0fcd..d06ea3605a 100644 --- a/tests/docker/dockerfiles/debian-s390x-cross.docker +++ b/tests/docker/dockerfiles/debian-s390x-cross.docker @@ -52,6 +52,7 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ python3-yaml \ rpm2cpio \ sed \ + socat \ sparse \ tar \ tesseract-ocr \ diff --git a/tests/docker/dockerfiles/fedora-win32-cross.docker b/tests/doc= ker/dockerfiles/fedora-win32-cross.docker index 41769fc94a..5b66b0e256 100644 --- a/tests/docker/dockerfiles/fedora-win32-cross.docker +++ b/tests/docker/dockerfiles/fedora-win32-cross.docker @@ -52,6 +52,7 @@ exec "$@"' > /usr/bin/nosync && \ python3-sphinx_rtd_theme \ rpm \ sed \ + socat \ sparse \ spice-protocol \ tar \ diff --git a/tests/docker/dockerfiles/fedora-win64-cross.docker b/tests/doc= ker/dockerfiles/fedora-win64-cross.docker index 46d5d05763..b94fd63cca 100644 --- a/tests/docker/dockerfiles/fedora-win64-cross.docker +++ b/tests/docker/dockerfiles/fedora-win64-cross.docker @@ -52,6 +52,7 @@ exec "$@"' > /usr/bin/nosync && \ python3-sphinx_rtd_theme \ rpm \ sed \ + socat \ sparse \ spice-protocol \ tar \ diff --git a/tests/docker/dockerfiles/fedora.docker b/tests/docker/dockerfi= les/fedora.docker index 5d60a96141..8e06d080b8 100644 --- a/tests/docker/dockerfiles/fedora.docker +++ b/tests/docker/dockerfiles/fedora.docker @@ -113,6 +113,7 @@ exec "$@"' > /usr/bin/nosync && \ rpm \ sed \ snappy-devel \ + socat \ sparse \ spice-protocol \ spice-server-devel \ diff --git a/tests/docker/dockerfiles/opensuse-leap.docker b/tests/docker/d= ockerfiles/opensuse-leap.docker index 5b8dbf2b83..9bf9b50dad 100644 --- a/tests/docker/dockerfiles/opensuse-leap.docker +++ b/tests/docker/dockerfiles/opensuse-leap.docker @@ -97,6 +97,7 @@ RUN zypper update -y && \ sed \ snappy-devel \ sndio-devel \ + socat \ sparse \ spice-protocol-devel \ systemd-devel \ diff --git a/tests/docker/dockerfiles/ubuntu2004.docker b/tests/docker/dock= erfiles/ubuntu2004.docker index 5b27b89f1c..936e4f9b2e 100644 --- a/tests/docker/dockerfiles/ubuntu2004.docker +++ b/tests/docker/dockerfiles/ubuntu2004.docker @@ -119,6 +119,7 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ python3-yaml \ rpm2cpio \ sed \ + socat \ sparse \ systemtap-sdt-dev \ tar \ diff --git a/tests/lcitool/projects/qemu.yml b/tests/lcitool/projects/qemu.= yml index 6467bcf08a..2854748f49 100644 --- a/tests/lcitool/projects/qemu.yml +++ b/tests/lcitool/projects/qemu.yml @@ -101,6 +101,7 @@ packages: - sed - snappy - sndio + - socat - sparse - spice-protocol - spice-server --=20 2.39.2 From nobody Sun May 5 15:01:05 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1677683967; cv=none; d=zohomail.com; s=zohoarc; b=fo38Zd8INIIJCRFVOZkhsOvLLT4UT0Vh6hQgksPQZjp3v4i0VFD1HTS20gSZ3AlPtFzRVGmNTU1ZVe0QIPUnmvcq0/KL+W5V8QBUTp9JraIY28YZ1ov/fUL4TGRnMHLDWEzv1N4ZLWQbsIf1GINauR7hAJSkVz9Wl9B6R/Wb5f4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677683967; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=gLoSAqw2g9SSYzDjVUbVFG04TNYZLvZZTMSrfeOd4FU=; b=oF/OGC78DoIDVD8dsznEBP+Q5i8kSUcPb5fsi01m8m3hKY2QoeMRUqXLEZv56NTlTcHOqDhnuCQnltuyPc6vVLuPO9VPorXFdGYKUpQbMoL5lNHCHc/khJs03oYczY5cmjCoEcjRDJuGVq6fxhftDJ9nh2j6EGEaltPVShr2yWI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1677683967014265.35288901877675; Wed, 1 Mar 2023 07:19:27 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXOCK-0000Iz-3F; Wed, 01 Mar 2023 10:16:52 -0500 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 1pXOBh-00087p-OH for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:16:14 -0500 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXOBb-0007bQ-V7 for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:16:13 -0500 Received: by mail-wr1-x435.google.com with SMTP id l25so13607689wrb.3 for ; Wed, 01 Mar 2023 07:16:07 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id k10-20020adfd84a000000b002c55551e6e9sm13082916wrl.108.2023.03.01.07.16.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 07:16:05 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 034AB1FFBB; Wed, 1 Mar 2023 15:16:05 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=gLoSAqw2g9SSYzDjVUbVFG04TNYZLvZZTMSrfeOd4FU=; b=yrLjFlmT9gma5NA+2rSx0JYNqUrwRbL7Tly037x7+tF7sbg23KeJA6Yt3EdxFijx0g Txmhjh+1z60PMCnnVtHLN4+vJAwiT5isENsDjI9kJ4h8AI/Ly10LBzrsLu/Gikp+Rfdr TKGhKJlCH0pYD24JkdGSDW2vkihHwXJ5OVo0vhqcJabRiBRzhQ0FjNg31HpfqZHy4kT3 Vr6xTpJQEFkp5ueBQq8kTpVgnkvC0ixB3m8R0TdwMuHKNWfeZ0mhYl0rvNU5xNUjqo9/ ODIoqbWvBN3yBEVFTtXAW13dXk5XLCWyQNKD15YBuNPHh8XeOw5KDefA7O0qeQtnK8aJ 4wog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=gLoSAqw2g9SSYzDjVUbVFG04TNYZLvZZTMSrfeOd4FU=; b=I3O1puaT9opZI4BbMWiJlhUDI1rV/p7YHJ5xFOQVOrLBmOGtm/nbUOy3R4PuRPNNvm iCUjMXh4C8dgShx9vjxnqxiDxQ7CBEisRuvGvs729fAKYIXqi4tT9JuDTda9yYmP7sAe eBcigSVOs+7PSkSH75ziPjfWlhIJc0zMStxQC4nbOXiDuwFbMJIBsEX2RdX1IiOrni6v FHCOo7VspLKB40hlKZHv8cKIpWn2p2qLdQ/1g3z8+f8j7VIDJ9/KjutqUEoKyK8Tnm/A ZcP2td6tVqjO3Qb4WAJLU4aixIAum95AT2VUHGE93QjmEsVyQhxS+PidzsvRjDYlzTKq kElA== X-Gm-Message-State: AO0yUKXihE4NtYSPUIAqwbvD0Waf5mz4Ycg8JIrWX+VA9cyeBtWyribf BHjR5v7xq1ajEnXFhNBg7Bt/9Q== X-Google-Smtp-Source: AK7set8y5k+ttcVn6a4plaFskrLVHVcPGfqHDWguIFhSz2pKjezyFLoFGofDLPFb4b/oSDQ6iXCcgw== X-Received: by 2002:a5d:468e:0:b0:2c7:1b42:1cec with SMTP id u14-20020a5d468e000000b002c71b421cecmr5000464wrq.23.1677683766517; Wed, 01 Mar 2023 07:16:06 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Thomas Huth , Richard Henderson , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Subject: [PULL v2 03/24] tests: be a bit more strict cleaning up fifos Date: Wed, 1 Mar 2023 15:15:43 +0000 Message-Id: <20230301151604.1948813-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230301151604.1948813-1-alex.bennee@linaro.org> References: <20230301151604.1948813-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x435.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 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1677683968463100007 When we re-factored we dropped the unlink() step which turns out to be required for rmdir to do its thing. If we had been checking the return value we would have noticed so lets do that with this fix. Fixes: 68406d1085 (tests/unit: cleanups for test-io-channel-command) Signed-off-by: Alex Benn=C3=A9e Suggested-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson Message-Id: <20230228190653.1602033-4-alex.bennee@linaro.org> diff --git a/tests/unit/test-io-channel-command.c b/tests/unit/test-io-chan= nel-command.c index 04b75ab3b4..c6e66a8c33 100644 --- a/tests/unit/test-io-channel-command.c +++ b/tests/unit/test-io-channel-command.c @@ -42,6 +42,7 @@ static void test_io_channel_command_fifo(bool async) g_auto(GStrv) dstargv =3D g_strsplit(dstargs, " ", -1); QIOChannel *src, *dst; QIOChannelTest *test; + int err; =20 if (mkfifo(fifo, 0600)) { g_error("mkfifo: %s", strerror(errno)); @@ -61,7 +62,10 @@ static void test_io_channel_command_fifo(bool async) object_unref(OBJECT(src)); object_unref(OBJECT(dst)); =20 - g_rmdir(tmpdir); + err =3D g_unlink(fifo); + g_assert(err =3D=3D 0); + err =3D g_rmdir(tmpdir); + g_assert(err =3D=3D 0); } =20 static void test_io_channel_command_fifo_async(void) --=20 2.39.2 From nobody Sun May 5 15:01:05 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1677683816; cv=none; d=zohomail.com; s=zohoarc; b=NJqdUT3O4QYTs9YB7jRiSqqe1/opBa/hNUFGN2WbKsUS6/9EiibIRsdFb0B9pPde1DTXeFDAq/pfIXmrUL8EmohhW0riX7+1fBAliHqwpu3gmrcjQ+3njG0A7rX1Gt6LT1X06yecC8ExAFzPd4bzf2G19BcbS7qmHZMeBpvj1v4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677683816; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=jrpKaOFJWkJoO+xUUwZmjGHPgIS1O//HocxWyw4nUaQ=; b=Vkrdk6OKmrCTLKtf9KETBzARFI0s9w8Fe0r/fj76jJsxyTLRTG7AP/sFeJ9JcOTEM5rYXaUiTkBmeqvcvLmGP+owngpP9KBt0ftJKJYaulbzdsTF+mFHpzIdR+71PJ8wrzVAuhWDQM0cC+wwzvfVgTOc+wTEuwBhQDTfhxEKRuE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1677683816481174.8407806309924; Wed, 1 Mar 2023 07:16:56 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXOBk-0008Aw-Mk; Wed, 01 Mar 2023 10:16:16 -0500 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 1pXOBh-00087o-Ms for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:16:14 -0500 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXOBc-0007bU-6j for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:16:13 -0500 Received: by mail-wr1-x436.google.com with SMTP id l25so13607708wrb.3 for ; Wed, 01 Mar 2023 07:16:07 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id k18-20020a056000005200b002c54c7153f0sm13128116wrx.1.2023.03.01.07.16.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 07:16:05 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 1DF411FFBC; Wed, 1 Mar 2023 15:16:05 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=jrpKaOFJWkJoO+xUUwZmjGHPgIS1O//HocxWyw4nUaQ=; b=AckvEHT7KPdDOo5jdS6dNBCHdYx96tTeaxufK8+uQUFZ0m/6iucvjmp1yjl6+76lfG K7+YApECe+52E1UuHPE2Cf/1rHl0iUt+aCw9hotAH2O1LgtCEKe4HKhnNXfhmr2Y9MjF zS+FuHj2H/tVNqzx38WAokcHkJL5BK0c8/Ryu8d8+kgXvKOXB7dzLyPRNRiIydfkHWT5 R+fa8sa3sLMskNo1UyQTIPvPCQWmwrcfygIjHz2/r0eSFM48jg2I+ui5Flj2c5X09LXk 4SWHdS44eZjkSzPHBKCXzBEF1j2//9gfH7OXODlrhpGTzQrw07g6cGGp927zo0dpA1c8 DW8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=jrpKaOFJWkJoO+xUUwZmjGHPgIS1O//HocxWyw4nUaQ=; b=RdN/xO6M9v0pZFO3ydrpN2HlSIrQq9BoMKSN1jZ+q99VnEe36+wD3HdRV4+3TgqhPL thsPzjdgkN+JiP4tjo+FMPGlhb37fSsDlrNk69KV/4C5+32WuOAK5Y088PctHv1ckUHe UKDCeiTE4NFniXCJLeueCHdeG1epQB5Gk1mBgyHg4Cj0Ce/DXSxxDvT1A1vtzxJPmLub IDoC2jdx0XRyUIkEmSFjX1EpI5DCJqbWgLq6obJY2s/ktqOuxOjOiT19j6J0ll0aSRHl Ql5hVdBP6M+m2bf+azY7+R8tJZoGvPp68E+nYMTUbfGhh1r6z9f2bAC9akauPN1eAsQL APnw== X-Gm-Message-State: AO0yUKXZyUZycPuYyPDDkpvEtRUnzfDQEGDbG57lBlyX98Q8v/8mVqH8 nJNQF46+zPe4aPOiFwHVlArTHQ== X-Google-Smtp-Source: AK7set/0+FwEG2+5OnzuEDiQDAUYsSqnmmXCRsdvAE1rhjFSny5fJkiCNjtgko+Sw94CKq4nrWGmAA== X-Received: by 2002:a5d:648b:0:b0:2c5:532a:98c4 with SMTP id o11-20020a5d648b000000b002c5532a98c4mr12256772wri.33.1677683766810; Wed, 01 Mar 2023 07:16:06 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Thomas Huth , Richard Henderson , Aurelien Jarno Subject: [PULL v2 04/24] tests: make fp-test less chatty when running from test suite Date: Wed, 1 Mar 2023 15:15:44 +0000 Message-Id: <20230301151604.1948813-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230301151604.1948813-1-alex.bennee@linaro.org> References: <20230301151604.1948813-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x436.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 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1677683817674100003 As we like to run tests under CI with V=3D1 flags the softfloat tests can add up to a fair amount of extra log lines. With an update to the testfloat library we can now call fp-test with the -q flag and reduce the output to a terse one line per function tested. make check-softfloat V=3D1 | wc -l 759 Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Thomas Huth Reviewed-by: Richard Henderson Message-Id: <20230228190653.1602033-5-alex.bennee@linaro.org> diff --git a/tests/fp/fp-test.c b/tests/fp/fp-test.c index 35829ad5f7..36b5712cda 100644 --- a/tests/fp/fp-test.c +++ b/tests/fp/fp-test.c @@ -106,7 +106,8 @@ static const char commands_string[] =3D " -l =3D thoroughness level (1 (default), 2)\n" " -r =3D rounding mode (even (default), zero, down, up, tieaway, odd)\= n" " Set to 'all' to test all rounding modes, if applicable\n" - " -s =3D stop when a test fails"; + " -s =3D stop when a test fails\n" + " -q =3D minimise noise when testing, just show each function being te= sted"; =20 static void usage_complete(int argc, char *argv[]) { @@ -190,9 +191,11 @@ static void do_testfloat(int op, int rmode, bool exact) ab_f128M_z_bool true_ab_f128M_z_bool; ab_f128M_z_bool subj_ab_f128M_z_bool; =20 - fputs(">> Testing ", stderr); - verCases_writeFunctionName(stderr); - fputs("\n", stderr); + if (verCases_verbosity) { + fputs(">> Testing ", stderr); + verCases_writeFunctionName(stderr); + fputs("\n", stderr); + } =20 if (!is_allowed(op, rmode)) { not_implemented(); @@ -837,7 +840,7 @@ static void parse_args(int argc, char *argv[]) int c; =20 for (;;) { - c =3D getopt(argc, argv, "he:f:l:r:s"); + c =3D getopt(argc, argv, "he:f:l:r:sq"); if (c < 0) { break; } @@ -874,9 +877,15 @@ static void parse_args(int argc, char *argv[]) } } break; + /* + * The following flags are declared in testfloat/source/verCases_c= ommon.c + */ case 's': verCases_errorStop =3D true; break; + case 'q': + verCases_verbosity =3D 0; + break; case '?': /* invalid option or missing argument; getopt prints error inf= o */ exit(EXIT_FAILURE); diff --git a/tests/fp/berkeley-testfloat-3 b/tests/fp/berkeley-testfloat-3 index 5a59dcec19..40619cbb3b 160000 --- a/tests/fp/berkeley-testfloat-3 +++ b/tests/fp/berkeley-testfloat-3 @@ -1 +1 @@ -Subproject commit 5a59dcec19327396a011a17fd924aed4fec416b3 +Subproject commit 40619cbb3bf32872df8c53cc457039229428a263 diff --git a/tests/fp/meson.build b/tests/fp/meson.build index 312a4d301f..f9ca6a93b4 100644 --- a/tests/fp/meson.build +++ b/tests/fp/meson.build @@ -609,7 +609,7 @@ softfloat_tests =3D { # The full test suite can take a bit of time, default to a quick run # "-l 2 -r all" can take more than a day for some operations and is best # run manually -fptest_args =3D ['-s', '-l', '1'] +fptest_args =3D ['-q', '-s', '-l', '1'] fptest_rounding_args =3D ['-r', 'all'] =20 # Conversion Routines: --=20 2.39.2 From nobody Sun May 5 15:01:05 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1677683838; cv=none; d=zohomail.com; s=zohoarc; b=D1JjCVWb2bB1M4PPFWselnAypQXbSsc+dfhzt+R0pbiFLLQtpIbZy6ZtjMDXZFe7Vu6Levt50POncC3kuXtKRk37/kYXyokcsUmhQOv+aPGXC8wjnhbSWDa1G+Pi91fD2FXlXKkFYIHed4r3xSFtiUOPFcpIp869V8fR4RJkK/Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677683838; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=JbykLvpPl5/hixH9ogfK/P0Luf51vXufeBGBbBQlZ/g=; b=D4FU4qyPr7nJH5yOi7N8F+ZSbAJBjpCBSUkk5q4O274kLSakbBbFrB/zhh74oD0Z8cMMA27YSoLYMg0Ciou4d5SBLEg8+hSHI7qeBZwu2Mn0EXInknBLvXHkFCRiNXYbRX6iOCyqnl4yWOqiUHUdClQeyIOI+N2F+VwarDiq8XY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1677683838968752.7075605537508; Wed, 1 Mar 2023 07:17:18 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXOBl-0008Cw-Qu; Wed, 01 Mar 2023 10:16:18 -0500 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 1pXOBh-00087n-MZ for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:16:14 -0500 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXOBd-0007bl-Dc for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:16:13 -0500 Received: by mail-wr1-x432.google.com with SMTP id g3so4716252wri.6 for ; Wed, 01 Mar 2023 07:16:09 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id c18-20020adfed92000000b002c54c9bd71fsm13238487wro.93.2023.03.01.07.16.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 07:16:06 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 335FF1FFBD; Wed, 1 Mar 2023 15:16:05 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=JbykLvpPl5/hixH9ogfK/P0Luf51vXufeBGBbBQlZ/g=; b=YYMyazvfdxunNJCuDGPxbbhondTnCvBTAUF+tAvM7n9WKIYw5qHGa/IeSY5xmOXBDn EOT4mK5OoVcdhknVhzPcZIPRGkv3slMvSVN1Lvs0FwjpTnlFGrGsFmtSWWFZ5J4bLnkG oFsxLaAw1/ccn0lTNmvzH9+J4eu5ohbvSaobDSyU2uoFX5D0zHAMsURWAR3nEtpNBcAx MDRg3hCL2/+QLldYo4G0//s1vggsgqynImuERERKF7b15C1iil8p0pki28Na2Xgv/m+S GAz9AzNl8QIxXewJ07SOetkftjjM9yxL34KUiot+VfgpC86p6m2JxaycaKQT8co6GbMt 4RVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=JbykLvpPl5/hixH9ogfK/P0Luf51vXufeBGBbBQlZ/g=; b=567AmSz/rO9oQWSCe3SJlEmvojADLbqQDLrbxq5aNvffyBBODpaByZviPWdzfvWlti n+qCf1oBejZ5PoAGTSpJ6WuFqJMF5uaj6mT+N04MdpmQfeWPTRZEZZwgRhuzwvaylWC5 vg0MsUiPmuY9DmACZnL0YvSK8aFxzHa9zTzuIwXqNrXswbbkI3ampiD3Jecy/B9xfSB0 AOU/MBV+0axHeG62/jwRcKURIrV/IBwQU5KwEmFxuq7LzSIBMGxtnR0KaRxvA3IIGYOk aYIJRbMlWtI7M2KTGo7armLcXzfZUNLaT/gynHMEgNypRv587kPNodZrpREJg6m+0eMn THnA== X-Gm-Message-State: AO0yUKVgClK1A63hpao6f2DyYw7y1Fd+h0ciWse0y6AaQQGu5ONRwmpO TH2sO/0qYhCcqs045+0D9gOg1A== X-Google-Smtp-Source: AK7set9/ajKJIBIUMa9rJJy5fUr5UgGq+WwU+R/Bp+h/VAPi8KiPwGI+meZFkKZv+W3NdG+ukALruw== X-Received: by 2002:a05:6000:81e:b0:2c4:489:fe93 with SMTP id bt30-20020a056000081e00b002c40489fe93mr11546664wrb.21.1677683768081; Wed, 01 Mar 2023 07:16:08 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, Thomas Huth , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL v2 05/24] gitlab-ci: Use artifacts instead of dumping logs in the Cirrus-CI jobs Date: Wed, 1 Mar 2023 15:15:45 +0000 Message-Id: <20230301151604.1948813-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230301151604.1948813-1-alex.bennee@linaro.org> References: <20230301151604.1948813-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x432.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 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1677683839572100001 From: Thomas Huth The meson log files can get very big, especially if running the tests in verbose mode. So dumping those logs to the console was a bad idea, since gitlab truncates the output if it is getting too big. Let's publish the logs as artifacts instead. This has the disadvantage that you have to look up the logs on cirrus-ci.com now instead, but that's still better than not having the important part of the log at all since it got truncated. Fixes: 998f334722 ("gitlab: show testlog.txt contents ...") Signed-off-by: Thomas Huth Reviewed-by: Daniel P. Berrang=C3=A9 Message-Id: <20230215142503.90660-1-thuth@redhat.com> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20230228190653.1602033-6-alex.bennee@linaro.org> diff --git a/.gitlab-ci.d/cirrus/build.yml b/.gitlab-ci.d/cirrus/build.yml index 7ef6af8d33..a9444902ec 100644 --- a/.gitlab-ci.d/cirrus/build.yml +++ b/.gitlab-ci.d/cirrus/build.yml @@ -32,6 +32,9 @@ build_task: - $MAKE -j$(sysctl -n hw.ncpu) - for TARGET in $TEST_TARGETS ; do - $MAKE -j$(sysctl -n hw.ncpu) $TARGET V=3D1 - || { cat meson-logs/testlog.txt; exit 1; } ; + $MAKE -j$(sysctl -n hw.ncpu) $TARGET V=3D1 ; done + always: + build_result_artifacts: + path: build/meson-logs/*log.txt + type: text/plain --=20 2.39.2 From nobody Sun May 5 15:01:05 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1677683915; cv=none; d=zohomail.com; s=zohoarc; b=AQLvfALwZ+9bSWBO6fPH81gaxkQyDp7IIlPJP3HMG6ZUSvLO7NhKB8clAsshW09YU2BB7rK4sQ/2aRvLGA7eFJGM/wpic5SwhUQEbqPHVLD1H1m/Gfew5QZiJ+N+xt6H8bBBdo+rCZ+iaJUeF0SibzdxPqRGt7Yys4kY6FRn2Co= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677683915; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=070PzUrZfVxXqhDV3BT8grkHDt8Ezv1S71HCy6H1uh4=; b=IbTUqH1YwVeCorVLZKG5uuCbNGPyhE2H355cOvmFF34N8yQcK8+IsAnJ35IBUXPQz4hjLsjRL3/zn4xkRvGw9D8sVNFaJY1TsDS7UcwwkWzJ8uQ7PLiKe8dgujLGqGBeLj/s86TY9eYKSvWgsmItA82ZDY6laq2fRO3X76kiCqU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1677683915870768.8523866682523; Wed, 1 Mar 2023 07:18:35 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXOBp-0008Gm-47; Wed, 01 Mar 2023 10:16:21 -0500 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 1pXOBj-00089I-2N for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:16:15 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXOBf-0007c8-Be for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:16:14 -0500 Received: by mail-wm1-x331.google.com with SMTP id j19-20020a05600c1c1300b003e9b564fae9so12107013wms.2 for ; Wed, 01 Mar 2023 07:16:10 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id i13-20020a1c540d000000b003db06224953sm16421465wmb.41.2023.03.01.07.16.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 07:16:07 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 51F2D1FFBE; Wed, 1 Mar 2023 15:16:05 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=070PzUrZfVxXqhDV3BT8grkHDt8Ezv1S71HCy6H1uh4=; b=QvXBuH+kUPThItsAcy8oxZOLtrKZE8FMKnoRrRYsjjI4HZlACnBPOyHGEBvHheph9q Pq0VLGHgQ77KDsMHbe2qwV2Zfhmh8jpglJAg6DIjIDGXWpJoorYmRc4yKuvml6ZP+pET rePPlzU2dw7gfb+V/e5UpHJedWrOwC4y24ok5nooknXZ+2RkVStyq09fG2h7/CuBfsJu lUp1aKQno7Vb+f8LEbjdDyLiX4Fl7+7sx9ma6OcvH1v3n2r32l7NnaQrMc0dOyhoby7F OP17SRKbquNVvPcFKE79KgJBo/bFwmKsWY3vEXp9YpnutoZAc1P/XiADZOx7AxnuNVvN 3uOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=070PzUrZfVxXqhDV3BT8grkHDt8Ezv1S71HCy6H1uh4=; b=OT1vGjTHm/YfPhyjNklhS/nnr0M88LesYr4C9wbKox8IYTPUSI+75SwKGBBDOq5wyI cENkVANVyr3/iNoypvG7XNdftm8TOgNyz0tHiS2z62SJLdaGy418zq5kC5AIGOPu8qXx gBIADzTxX2BV0nLs+YTFzIF6y2yOEUyJRYKTlGnVXzKOmkJiWdR4fvwldXiKN4GtT2T+ uHjOyzajhqtja+YIWtV6UlM/rEAHMZ3lFOw4s3ZplFu8sZ9crQYAd7+Xb2X5a6C26Kw/ WlYjop5ukZ+n085wFdlmG1cxyBFNRt4KIT/GRc6HgcwnzELS+5jQyE2Z21eXqY0FuJpU tHUQ== X-Gm-Message-State: AO0yUKX+W3ZirYxqyCg2+f4K6AfFfTiVFAYgZpHNkMi2SIpyBY+4aaCM 2B5RQGmjSlK+C8skBsgtyhZMqA== X-Google-Smtp-Source: AK7set+va159WcfhvXMGiGp6M8pJTxwnn4m2Yg0Zf5zi72Z7l9jIZ3XRuKZc+9iq/sKJamrU4cqEtg== X-Received: by 2002:a05:600c:713:b0:3ea:f883:4ce with SMTP id i19-20020a05600c071300b003eaf88304cemr5180206wmn.20.1677683769795; Wed, 01 Mar 2023 07:16:09 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Thomas Huth , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL v2 06/24] gitlab: extend custom runners with base_job_template Date: Wed, 1 Mar 2023 15:15:46 +0000 Message-Id: <20230301151604.1948813-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230301151604.1948813-1-alex.bennee@linaro.org> References: <20230301151604.1948813-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x331.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 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1677683916361100001 The base job template is responsible for controlling how we kick off testing on our various branches. Rename and extend the custom_runner_template so we can take advantage of all that control. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Thomas Huth Message-Id: <20230228190653.1602033-7-alex.bennee@linaro.org> diff --git a/.gitlab-ci.d/custom-runners.yml b/.gitlab-ci.d/custom-runners.= yml index 9fdc476c48..34a1e6f327 100644 --- a/.gitlab-ci.d/custom-runners.yml +++ b/.gitlab-ci.d/custom-runners.yml @@ -15,7 +15,8 @@ variables: =20 # All custom runners can extend this template to upload the testlog # data as an artifact and also feed the junit report -.custom_artifacts_template: +.custom_runner_template: + extends: .base_job_template artifacts: name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG" expire_in: 7 days diff --git a/.gitlab-ci.d/custom-runners/ubuntu-20.04-s390x.yml b/.gitlab-c= i.d/custom-runners/ubuntu-20.04-s390x.yml index f512eaeaa3..cdae6c5212 100644 --- a/.gitlab-ci.d/custom-runners/ubuntu-20.04-s390x.yml +++ b/.gitlab-ci.d/custom-runners/ubuntu-20.04-s390x.yml @@ -3,7 +3,7 @@ # "Install basic packages to build QEMU on Ubuntu 20.04/20.04" =20 ubuntu-20.04-s390x-all-linux-static: - extends: .custom_artifacts_template + extends: .custom_runner_template needs: [] stage: build tags: @@ -24,7 +24,7 @@ ubuntu-20.04-s390x-all-linux-static: - make --output-sync -j`nproc` check =20 ubuntu-20.04-s390x-all: - extends: .custom_artifacts_template + extends: .custom_runner_template needs: [] stage: build tags: @@ -43,7 +43,7 @@ ubuntu-20.04-s390x-all: - make --output-sync -j`nproc` check =20 ubuntu-20.04-s390x-alldbg: - extends: .custom_artifacts_template + extends: .custom_runner_template needs: [] stage: build tags: @@ -66,7 +66,7 @@ ubuntu-20.04-s390x-alldbg: - make --output-sync -j`nproc` check =20 ubuntu-20.04-s390x-clang: - extends: .custom_artifacts_template + extends: .custom_runner_template needs: [] stage: build tags: @@ -108,7 +108,7 @@ ubuntu-20.04-s390x-tci: - make --output-sync -j`nproc` =20 ubuntu-20.04-s390x-notcg: - extends: .custom_artifacts_template + extends: .custom_runner_template needs: [] stage: build tags: diff --git a/.gitlab-ci.d/custom-runners/ubuntu-22.04-aarch32.yml b/.gitlab= -ci.d/custom-runners/ubuntu-22.04-aarch32.yml index 42137aaf2a..50e5646a44 100644 --- a/.gitlab-ci.d/custom-runners/ubuntu-22.04-aarch32.yml +++ b/.gitlab-ci.d/custom-runners/ubuntu-22.04-aarch32.yml @@ -3,7 +3,7 @@ # "Install basic packages to build QEMU on Ubuntu 20.04" =20 ubuntu-22.04-aarch32-all: - extends: .custom_artifacts_template + extends: .custom_runner_template needs: [] stage: build tags: diff --git a/.gitlab-ci.d/custom-runners/ubuntu-22.04-aarch64.yml b/.gitlab= -ci.d/custom-runners/ubuntu-22.04-aarch64.yml index 8ba85be440..13e14a0f87 100644 --- a/.gitlab-ci.d/custom-runners/ubuntu-22.04-aarch64.yml +++ b/.gitlab-ci.d/custom-runners/ubuntu-22.04-aarch64.yml @@ -3,7 +3,7 @@ # "Install basic packages to build QEMU on Ubuntu 20.04" =20 ubuntu-22.04-aarch64-all-linux-static: - extends: .custom_artifacts_template + extends: .custom_runner_template needs: [] stage: build tags: @@ -24,7 +24,7 @@ ubuntu-22.04-aarch64-all-linux-static: - make --output-sync -j`nproc --ignore=3D40` check =20 ubuntu-22.04-aarch64-all: - extends: .custom_artifacts_template + extends: .custom_runner_template needs: [] stage: build tags: @@ -46,7 +46,7 @@ ubuntu-22.04-aarch64-all: - make --output-sync -j`nproc --ignore=3D40` check =20 ubuntu-22.04-aarch64-alldbg: - extends: .custom_artifacts_template + extends: .custom_runner_template needs: [] stage: build tags: @@ -65,7 +65,7 @@ ubuntu-22.04-aarch64-alldbg: - make --output-sync -j`nproc --ignore=3D40` check =20 ubuntu-22.04-aarch64-clang: - extends: .custom_artifacts_template + extends: .custom_runner_template needs: [] stage: build tags: @@ -107,7 +107,7 @@ ubuntu-22.04-aarch64-tci: - make --output-sync -j`nproc --ignore=3D40` =20 ubuntu-22.04-aarch64-notcg: - extends: .custom_artifacts_template + extends: .custom_runner_template needs: [] stage: build tags: --=20 2.39.2 From nobody Sun May 5 15:01:05 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1677683845; cv=none; d=zohomail.com; s=zohoarc; b=bBj/+HPBsiwX67L3I+xqKmTeKkxcs24CSGSvAwVigTR8bGpEpde0OiOE0UdalkW/oSiMtnL2jtW5M8Zdxw+T66Kyq54GDOQIC3AklrzJE0TcJUMlWxuTBh3ikqjA22LLuIhE0qM0+rzmnzzTkRiCP/QySByf8oLMRXqgIInObF0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677683845; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Je6tHmMsXrx/D8pW2bDpgfBjKMVcTzo9CyJE47d842I=; b=IXHDjTu0mfpmcaT8Hv/dBeK++tZgUAbY1Cwx16AQSAFUkiSLteTzCIHvmUUq9C58HzZlKSdTVHtw6k35w/72SyKDri/CY9fDZ+4h/EFNDiVv4SuACItrxeekraa6PifQnF3bp+Lt9veUFKlCV0AQ0Ehc2x7Y6hAHYzqgPm8ws70= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 16776838453671021.2287959309209; Wed, 1 Mar 2023 07:17:25 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXOCG-0000Ew-Lw; Wed, 01 Mar 2023 10:16:49 -0500 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 1pXOBk-0008B6-5J for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:16:16 -0500 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXOBh-0007cj-BE for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:16:15 -0500 Received: by mail-wm1-x32d.google.com with SMTP id k37so8847651wms.0 for ; Wed, 01 Mar 2023 07:16:12 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id o25-20020a05600c511900b003dfe549da4fsm21962851wms.18.2023.03.01.07.16.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 07:16:07 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 6819A1FFBF; Wed, 1 Mar 2023 15:16:05 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=Je6tHmMsXrx/D8pW2bDpgfBjKMVcTzo9CyJE47d842I=; b=a40aRi47JeD+hkOWZHV4njEIrarvuldyqEyTgCl4bfRu7Nbm522jqAESZfC+mGzgJo 4bq6msVaHEs7ROuSLlSP/Vwxq9yS4WK2Y4aGj9D9DCJLmrcUbKBYbkOXBpYU98sAY7Vf ijXEYPzts/aNPndlyBfJTB0JUNjZKzFiT1BQsqZ7hl7tTp5mXLxQNg4X9Esp1UDIYOPI aYObWG+wBSdfOmE41Fp5idOELzXQ/wsMOAdMAmJSnrS4JpBiAvyYVCGUXvjIpvY6aCIX gi+qfO4oQKRzY77lcUvT+4CiCc0aJ3geQjVIP9/o3GadKoG+/LcYIKKJVJ4nz38weAYO Qg/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=Je6tHmMsXrx/D8pW2bDpgfBjKMVcTzo9CyJE47d842I=; b=CBOM35BMv45AOkl9Jl3cmT0zG6yanJ9aw9Rcfz+sOI0tKQ34r3aY9yjfQ5Um/lFl5R uY6yvyYRIGuTK4/h3BavhI1SfBX2kNJYfbbi0xSdNfkjlepZXohujkm5Po5BQxh9pgUb q10VRnMwggCbsSXPGgZWR6fqyymxZepcszMgrLnTwCoaND+unSQFD/C+buMh0svFEnEM AuG1CgjA9cTvDCIL5eP7z7cwEFFByZbj3NZdwFchDoD7epvbJ7eqAC7f1YEEEzXJxmIH 9/GT62id7gl6T8felXBH/VRSnV9qI5pQ7Vx9/F1w+u+jel8khwa/HWfbGpKV9IlwcX3h XzYQ== X-Gm-Message-State: AO0yUKXIs2U4Iys3iZ0J6QwGthHY9QMCA3CmpHQ9SNwoUAFX23hrrryx TQLd/RFg6bzdQ0reXILb5fkfLw== X-Google-Smtp-Source: AK7set9Q31FDXZh5Pc/jZEtnBs2VV0elbVameADO1pU1fs/Qba472TOYU63rkNikRG0CVPNhQhhslQ== X-Received: by 2002:a05:600c:444f:b0:3eb:1ba8:7cfc with SMTP id v15-20020a05600c444f00b003eb1ba87cfcmr5518288wmn.30.1677683771732; Wed, 01 Mar 2023 07:16:11 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Thomas Huth , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL v2 07/24] tests: don't run benchmarks for the tsan build Date: Wed, 1 Mar 2023 15:15:47 +0000 Message-Id: <20230301151604.1948813-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230301151604.1948813-1-alex.bennee@linaro.org> References: <20230301151604.1948813-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32d.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 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1677683845642100001 All we are really doing here is checking that TSAN builds compile and are therefor a tool available to developers. The benchmarks are not representative of QEMU's actual threading behaviour and they burn precious CI time. Indeed switching to check-unit reveals many unaddressed issues which have been logged at: https://gitlab.com/qemu-project/qemu/-/issues/1496 So for now disable the make check and make this a build only test. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Thomas Huth Reviewed-by: Richard Henderson Message-Id: <20230228190653.1602033-8-alex.bennee@linaro.org> diff --git a/.gitlab-ci.d/buildtest.yml b/.gitlab-ci.d/buildtest.yml index d903c42798..7b92767689 100644 --- a/.gitlab-ci.d/buildtest.yml +++ b/.gitlab-ci.d/buildtest.yml @@ -463,7 +463,6 @@ tsan-build: CONFIGURE_ARGS: --enable-tsan --cc=3Dclang-10 --cxx=3Dclang++-10 --enable-trace-backends=3Dust --disable-slirp TARGETS: x86_64-softmmu ppc64-softmmu riscv64-softmmu x86_64-linux-user - MAKE_CHECK_ARGS: bench V=3D1 =20 # gcov is a GCC features gcov: --=20 2.39.2 From nobody Sun May 5 15:01:05 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1677683926; cv=none; d=zohomail.com; s=zohoarc; b=oGON/uZUT09AwbkFBcWp8sB0QO+yta8OphvKzDoyHiEf62Ai7Mw6gzZ/OX/hwjnisea8PDDu7CHAbk+I870nqrM/Kjub3kHjUwqOKBhcvUWhLFC+ZTXlr9xTb17MwutesPuDb9yNILPj42nXc43VlhZcnAfywmAiBU25hFUQjW0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677683926; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=XbpSqhbRv7I2lcqBMt2IcN3y9fWWu0vzAbFmhDdtK/c=; b=MJ1GGKaSmPoKBGotU27MZwRWqRIyPHMLjqqsUmy76aZ8SJ/9Cgqz10tngpI7uqGm35llpxUh2AjktZYK9O/OTrMpz8DmDzj11gvSrxxw1BuW6fqcsBYdSHip0tQHERAcNLFmBKr8NFm3+ZqulrRIsfnhgMiSKQ13w6Hs5Ew9yfA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1677683926564421.94322051551364; Wed, 1 Mar 2023 07:18:46 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXOBp-0008Gl-3C; Wed, 01 Mar 2023 10:16:21 -0500 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 1pXOBj-00089X-IP for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:16:15 -0500 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXOBe-0007c5-TX for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:16:15 -0500 Received: by mail-wm1-x330.google.com with SMTP id j19-20020a05600c1c1300b003e9b564fae9so12107003wms.2 for ; Wed, 01 Mar 2023 07:16:10 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id j24-20020a05600c1c1800b003e22508a343sm17530694wms.12.2023.03.01.07.16.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 07:16:07 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 90AC51FFB7; Wed, 1 Mar 2023 15:16:05 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=XbpSqhbRv7I2lcqBMt2IcN3y9fWWu0vzAbFmhDdtK/c=; b=SLIO2zmi0zic0bmj6MgbdB6qYtW61Yql5M8mo5CEKD9XrC79QkrQKFo+jvYluSQsQw /j6ItAAQLD3vJmxVeD9v/vf3RNzm5UVYH7mLka6SeqEJOHQd0914APz0+JdNjuphzV/5 /VMPcv9twfUHy/5OD5AtEwYcFS/Uv7zBMahNfZRncGtL/S7JJO/BtClqafZ5QDTD4eHx wKpOskw4k1H7foZtNfkMtecsyEbe7BbgS2rKZjiW1G0d7Ri4FfRnPjGoH1sBbMo9SswY HG5h5VKA6O9sLFhWYA8Sf+qh3Jy0d4ttDKHP8VSnEKk++Ia1cAQwVix21ECgkfaMr+IZ fDGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=XbpSqhbRv7I2lcqBMt2IcN3y9fWWu0vzAbFmhDdtK/c=; b=l0xcm8O3XEFHxGLdZz9vlaSGBtKvYPhk5kVcP2kA9fZVXIuSBB64wLPzDFNVFEUXvm CNZPfak5G8yq4jiz0Wy6BFcm0PrvSCto1pcbbMce6ek1+wiHkRqtCfrhVttwsds2+7V+ drgj8gxW9GZiC9k1p6ulh4FX3/fRCDhcPnRIO9CAfKjNOO3A2z5F7sd2Dy4qCW1U8ANU G7X5uUPCXJEhmfLPaqeqLfIoDO27LpvCINnbMtofbhfbW8ztu2v/cUhKgE+G7vE0r05l /4HcN0+j65wlqiHFY1MyV/i3IwypmsHJRb7eDuL0XRlY8pNCXhbYJGJW8vLL/8qM5BHf xzpA== X-Gm-Message-State: AO0yUKUBEtFpuTYWGJWrGEd4fRuzvQgkYNdXgRpg8ZMf3Z65PcL9HG73 cz3L7RhWZ8VoIOxqWAftL1QJyw== X-Google-Smtp-Source: AK7set9JDaVGJ/0BNZ3JTkHrCle3Hj5fsQiwV9ctNhJ9NF8g9e+CAa1ls5HttRxNyo0fxcSzFtNVpQ== X-Received: by 2002:a05:600c:43ca:b0:3ea:f883:4f5 with SMTP id f10-20020a05600c43ca00b003eaf88304f5mr5261220wmn.17.1677683769510; Wed, 01 Mar 2023 07:16:09 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , John Snow , Thomas Huth , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL v2 08/24] testing: update ubuntu2004 to ubuntu2204 Date: Wed, 1 Mar 2023 15:15:48 +0000 Message-Id: <20230301151604.1948813-9-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230301151604.1948813-1-alex.bennee@linaro.org> References: <20230301151604.1948813-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x330.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 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1677683928394100003 The 22.04 LTS release has been out for almost a year now so its time to update all the remaining images to the current LTS. We can also drop some hacks we need for older clang TSAN support. We will keep the ubuntu2004 container around for those who wish to test builds on the currently still supported baseline. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: John Snow Reviewed-by: Thomas Huth Message-Id: <20230228190653.1602033-9-alex.bennee@linaro.org> diff --git a/docs/devel/testing.rst b/docs/devel/testing.rst index 362a26698b..4071e72710 100644 --- a/docs/devel/testing.rst +++ b/docs/devel/testing.rst @@ -588,13 +588,13 @@ https://github.com/google/sanitizers/wiki/ThreadSanit= izerCppManual =20 Thread Sanitizer in Docker ~~~~~~~~~~~~~~~~~~~~~~~~~~ -TSan is currently supported in the ubuntu2004 docker. +TSan is currently supported in the ubuntu2204 docker. =20 The test-tsan test will build using TSan and then run make check. =20 .. code:: =20 - make docker-test-tsan@ubuntu2004 + make docker-test-tsan@ubuntu2204 =20 TSan warnings under docker are placed in files located at build/tsan/. =20 diff --git a/.gitlab-ci.d/buildtest.yml b/.gitlab-ci.d/buildtest.yml index 7b92767689..43f9e4a81d 100644 --- a/.gitlab-ci.d/buildtest.yml +++ b/.gitlab-ci.d/buildtest.yml @@ -38,9 +38,9 @@ avocado-system-alpine: build-system-ubuntu: extends: .native_build_job_template needs: - job: amd64-ubuntu2004-container + job: amd64-ubuntu2204-container variables: - IMAGE: ubuntu2004 + IMAGE: ubuntu2204 CONFIGURE_ARGS: --enable-docs TARGETS: alpha-softmmu cris-softmmu hppa-softmmu microblazeel-softmmu mips64el-softmmu @@ -56,7 +56,7 @@ check-system-ubuntu: - job: build-system-ubuntu artifacts: true variables: - IMAGE: ubuntu2004 + IMAGE: ubuntu2204 MAKE_CHECK_ARGS: check =20 avocado-system-ubuntu: @@ -65,7 +65,7 @@ avocado-system-ubuntu: - job: build-system-ubuntu artifacts: true variables: - IMAGE: ubuntu2004 + IMAGE: ubuntu2204 MAKE_CHECK_ARGS: check-avocado =20 build-system-debian: @@ -457,10 +457,10 @@ avocado-cfi-x86_64: tsan-build: extends: .native_build_job_template needs: - job: amd64-ubuntu2004-container + job: amd64-ubuntu2204-container variables: - IMAGE: ubuntu2004 - CONFIGURE_ARGS: --enable-tsan --cc=3Dclang-10 --cxx=3Dclang++-10 + IMAGE: ubuntu2204 + CONFIGURE_ARGS: --enable-tsan --cc=3Dclang --cxx=3Dclang++ --enable-trace-backends=3Dust --disable-slirp TARGETS: x86_64-softmmu ppc64-softmmu riscv64-softmmu x86_64-linux-user =20 @@ -468,10 +468,10 @@ tsan-build: gcov: extends: .native_build_job_template needs: - job: amd64-ubuntu2004-container + job: amd64-ubuntu2204-container timeout: 80m variables: - IMAGE: ubuntu2004 + IMAGE: ubuntu2204 CONFIGURE_ARGS: --enable-gcov TARGETS: aarch64-softmmu ppc64-softmmu s390x-softmmu x86_64-softmmu MAKE_CHECK_ARGS: check diff --git a/.gitlab-ci.d/containers.yml b/.gitlab-ci.d/containers.yml index 96d2a3b58b..8637a13d86 100644 --- a/.gitlab-ci.d/containers.yml +++ b/.gitlab-ci.d/containers.yml @@ -13,10 +13,10 @@ amd64-debian-container: variables: NAME: debian-amd64 =20 -amd64-ubuntu2004-container: +amd64-ubuntu2204-container: extends: .container_job_template variables: - NAME: ubuntu2004 + NAME: ubuntu2204 =20 amd64-opensuse-leap-container: extends: .container_job_template diff --git a/tests/docker/dockerfiles/ubuntu2004.docker b/tests/docker/dock= erfiles/ubuntu2004.docker index 936e4f9b2e..95d951953f 100644 --- a/tests/docker/dockerfiles/ubuntu2004.docker +++ b/tests/docker/dockerfiles/ubuntu2004.docker @@ -146,6 +146,3 @@ ENV LANG "en_US.UTF-8" ENV MAKE "/usr/bin/make" ENV NINJA "/usr/bin/ninja" ENV PYTHON "/usr/bin/python3" -# Apply patch https://reviews.llvm.org/D75820 -# This is required for TSan in clang-10 to compile with QEMU. -RUN sed -i 's/^const/static const/g' /usr/lib/llvm-10/lib/clang/10.0.0/inc= lude/sanitizer/tsan_interface.h diff --git a/tests/docker/dockerfiles/ubuntu2204.docker b/tests/docker/dock= erfiles/ubuntu2204.docker new file mode 100644 index 0000000000..30b9e56793 --- /dev/null +++ b/tests/docker/dockerfiles/ubuntu2204.docker @@ -0,0 +1,147 @@ +# THIS FILE WAS AUTO-GENERATED +# +# $ lcitool dockerfile --layers all ubuntu-2204 qemu +# +# https://gitlab.com/libvirt/libvirt-ci + +FROM docker.io/library/ubuntu:22.04 + +RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ + apt-get update && \ + apt-get install -y eatmydata && \ + eatmydata apt-get dist-upgrade -y && \ + eatmydata apt-get install --no-install-recommends -y \ + bash \ + bc \ + bison \ + bsdextrautils \ + bzip2 \ + ca-certificates \ + ccache \ + clang \ + dbus \ + debianutils \ + diffutils \ + exuberant-ctags \ + findutils \ + flex \ + g++ \ + gcc \ + gcovr \ + genisoimage \ + gettext \ + git \ + hostname \ + libaio-dev \ + libasan5 \ + libasound2-dev \ + libattr1-dev \ + libbpf-dev \ + libbrlapi-dev \ + libbz2-dev \ + libc6-dev \ + libcacard-dev \ + libcap-ng-dev \ + libcapstone-dev \ + libcmocka-dev \ + libcurl4-gnutls-dev \ + libdaxctl-dev \ + libdrm-dev \ + libepoxy-dev \ + libfdt-dev \ + libffi-dev \ + libfuse3-dev \ + libgbm-dev \ + libgcrypt20-dev \ + libglib2.0-dev \ + libglusterfs-dev \ + libgnutls28-dev \ + libgtk-3-dev \ + libibumad-dev \ + libibverbs-dev \ + libiscsi-dev \ + libjemalloc-dev \ + libjpeg-turbo8-dev \ + libjson-c-dev \ + liblttng-ust-dev \ + liblzo2-dev \ + libncursesw5-dev \ + libnfs-dev \ + libnuma-dev \ + libpam0g-dev \ + libpcre2-dev \ + libpixman-1-dev \ + libpmem-dev \ + libpng-dev \ + libpulse-dev \ + librbd-dev \ + librdmacm-dev \ + libsasl2-dev \ + libsdl2-dev \ + libsdl2-image-dev \ + libseccomp-dev \ + libselinux1-dev \ + libslirp-dev \ + libsnappy-dev \ + libsndio-dev \ + libspice-protocol-dev \ + libspice-server-dev \ + libssh-dev \ + libsystemd-dev \ + libtasn1-6-dev \ + libubsan1 \ + libudev-dev \ + liburing-dev \ + libusb-1.0-0-dev \ + libusbredirhost-dev \ + libvdeplug-dev \ + libvirglrenderer-dev \ + libvte-2.91-dev \ + libxen-dev \ + libzstd-dev \ + llvm \ + locales \ + make \ + meson \ + multipath-tools \ + ncat \ + nettle-dev \ + ninja-build \ + openssh-client \ + pkgconf \ + python3 \ + python3-numpy \ + python3-opencv \ + python3-pillow \ + python3-pip \ + python3-sphinx \ + python3-sphinx-rtd-theme \ + python3-venv \ + python3-yaml \ + rpm2cpio \ + sed \ + socat \ + sparse \ + systemtap-sdt-dev \ + tar \ + tesseract-ocr \ + tesseract-ocr-eng \ + xfslibs-dev \ + zlib1g-dev && \ + eatmydata apt-get autoremove -y && \ + eatmydata apt-get autoclean -y && \ + sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \ + dpkg-reconfigure locales && \ + dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --sh= ow > /packages.txt && \ + mkdir -p /usr/libexec/ccache-wrappers && \ + ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/c++ && \ + ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \ + ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \ + ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/g++ && \ + ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc + +ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers" +ENV LANG "en_US.UTF-8" +ENV MAKE "/usr/bin/make" +ENV NINJA "/usr/bin/ninja" +ENV PYTHON "/usr/bin/python3" diff --git a/tests/docker/test-tsan b/tests/docker/test-tsan index 53d90d2f79..f6d6590e39 100755 --- a/tests/docker/test-tsan +++ b/tests/docker/test-tsan @@ -21,7 +21,7 @@ setup_tsan() tsan_log_dir=3D"/tmp/qemu-test/build/tsan" mkdir -p $tsan_log_dir > /dev/null || true EXTRA_CONFIGURE_OPTS=3D"${EXTRA_CONFIGURE_OPTS} --enable-tsan \ - --cc=3Dclang-10 --cxx=3Dclang++-10 \ + --cc=3Dclang --cxx=3Dclang++ \ --disable-werror --extra-cflags=3D-O0" # detect deadlocks is false currently simply because # TSan crashes immediately with deadlock detector enabled. diff --git a/tests/lcitool/refresh b/tests/lcitool/refresh index a5ea0efc3b..cc9e34ac87 100755 --- a/tests/lcitool/refresh +++ b/tests/lcitool/refresh @@ -69,13 +69,6 @@ def generate_cirrus(target, trailer=3DNone): generate(filename, cmd, trailer) =20 =20 -ubuntu2004_tsanhack =3D [ - "# Apply patch https://reviews.llvm.org/D75820\n", - "# This is required for TSan in clang-10 to compile with QEMU.\n", - "RUN sed -i 's/^const/static const/g' /usr/lib/llvm-10/lib/clang/10.0.= 0/include/sanitizer/tsan_interface.h\n" -] - - # 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 @@ -113,8 +106,8 @@ try: trailer=3D"".join(debian11_extras)) generate_dockerfile("fedora", "fedora-37") generate_dockerfile("opensuse-leap", "opensuse-leap-153") - generate_dockerfile("ubuntu2004", "ubuntu-2004", - trailer=3D"".join(ubuntu2004_tsanhack)) + generate_dockerfile("ubuntu2004", "ubuntu-2004") + generate_dockerfile("ubuntu2204", "ubuntu-2204") =20 # # Cross compiling builds --=20 2.39.2 From nobody Sun May 5 15:01:05 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1677683808; cv=none; d=zohomail.com; s=zohoarc; b=c7lw3dbYZz9UmcxbDC4rbWLCnTDVALeNLOeVOPfUZ2kfqALKJBFUlPigMPv+o2wj5AboJmXyJ0AdY3JPJZmIOfeZP8Z4tUOXGXfb+Oeb8g/ceh0O5gWFh6L+DHPbO1WCgalDs5d+R9fC6HQPrfqf5bvwQZ3ServKrdzDuHHDjqY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677683808; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=TCGekxGxjU/hmOPy5lL7DhzIR++DazJ3aKr66MQtme0=; b=a7C7Etv/P1N6SK0zmSsu7sIH28u21Tg5Gr1lCtS2TYTf/21tp5msvFw3w1E98S6rRyLNUc4IkBVHBr1ngGzUsdWubvr04GeYe7g9tP7Skm68CnEoVLmA6+8GhrcQH30X2arRpIEULGijy1DhL9RarNN9H30jp4AjpWd3y6ep1mA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1677683808575428.56820851451846; Wed, 1 Mar 2023 07:16:48 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXOBm-0008E3-JT; Wed, 01 Mar 2023 10:16:18 -0500 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 1pXOBj-00089U-81 for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:16:15 -0500 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXOBg-0007cS-MM for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:16:14 -0500 Received: by mail-wr1-x432.google.com with SMTP id v16so10782495wrn.0 for ; Wed, 01 Mar 2023 07:16:12 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id z10-20020a5d44ca000000b002c6e8af1037sm13008036wrr.104.2023.03.01.07.16.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 07:16:08 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id A6CFB1FFC0; Wed, 1 Mar 2023 15:16:05 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=TCGekxGxjU/hmOPy5lL7DhzIR++DazJ3aKr66MQtme0=; b=oR4py4MeLbUsy+vaDGuZ/zjw+hNv1flrrphkqm3bZG9fDjo224p2uxxPthM3A5Wivd zvelD6g9ZTFy+JwuEbEyQhqF172uDmSNoO8L7ZYd2QdjcUDDS5T8RNcO/FrD+vwJwFJT Z6hUEOkwQ/riRPw6QQNfIy+5p1fd/MmxFfzhAHQwDADIU8flq0Lh74trPBpdPCS8BEU+ dLLcP/2IRVvSFYoba1hES/0eTy4AyJtOC34JWMaXo6a8CHb7t1iVWml6oX0+bTB6vkTC 4bz0evXJA8La8hr+PLIUyD/ivMF8QjMpB8jCgDhXRDHhU9nz+kN0ezK/QEJ4XT5mKggt 655g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=TCGekxGxjU/hmOPy5lL7DhzIR++DazJ3aKr66MQtme0=; b=so4rB1Uc4tbyGAdW3kUtUJREakiVHV4MlzfGHU+eJ3Yi95ED7Gs9toUviQd/yPfAj5 Gr2IbA7X01JofF3yyJH6ht6iIX9AxfeblpYiLqy/WtXGol7Oh/Ju0t8+Tf335pbMURlO UJBCCzuIBdXh1ubu3QEHqmMzHm1e9HV5NmbTqPQQXTXk50s+UWef9vbgLrqm/z+NhArE eRVAxDViqlYLLdJ/UtaObr6Ta4E5rZ3nZS35h7KhF/NvPag+FxZWuipC/MdCgpAcS6ax n+fonpzGuvvAf8x+fJ58Vacwdx/QKIP9mdJzbWdM3FXd7l7iM2CAcS0BNj/V4VS9kg0/ k4vQ== X-Gm-Message-State: AO0yUKWP5Y+yWVvzLrmmzyfiKh90JsS5HAitlH1TxIytt+yFw3x6X6ja +j7dbaoX5eAmFLm6cL5THyOfuA== X-Google-Smtp-Source: AK7set8VnYzsGTM0KnOnbpRJiMor9lpBucML5y3Lgof68oK+mzpYx2kihSc1LRm89sYIe6+slzpftA== X-Received: by 2002:adf:f549:0:b0:2c7:ffd:f483 with SMTP id j9-20020adff549000000b002c70ffdf483mr4966027wrp.41.1677683770939; Wed, 01 Mar 2023 07:16:10 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pavel Dovgalyuk , Paolo Bonzini , Cleber Rosa , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL v2 09/24] tests: skip the nios2 replay_kernel test Date: Wed, 1 Mar 2023 15:15:49 +0000 Message-Id: <20230301151604.1948813-10-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230301151604.1948813-1-alex.bennee@linaro.org> References: <20230301151604.1948813-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x432.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 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1677683810281100001 It is buggy and keeps failing. Suggested-by: Peter Maydell Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20230228190653.1602033-10-alex.bennee@linaro.org> diff --git a/tests/avocado/replay_kernel.py b/tests/avocado/replay_kernel.py index 00a26e4a0c..f13456e1ec 100644 --- a/tests/avocado/replay_kernel.py +++ b/tests/avocado/replay_kernel.py @@ -349,6 +349,7 @@ def test_or1k_sim(self): file_path =3D self.fetch_asset(tar_url, asset_hash=3Dtar_hash) self.do_test_advcal_2018(file_path, 'vmlinux') =20 + @skip("nios2 emulation is buggy under record/replay") def test_nios2_10m50(self): """ :avocado: tags=3Darch:nios2 --=20 2.39.2 From nobody Sun May 5 15:01:05 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1677683845; cv=none; d=zohomail.com; s=zohoarc; b=PByrhOUaiplzOED5lNYcf6Dco98oNK9ggrdiyUdkx/KsyKOQbK1YR6WjgcEuxUbIEittXrT4V/ps+Jg9LlIKQsNQ01RCafwOxu+Hcbf2PpFlSbmVLTiXuaAWxEPH6lLgVNBzUkkGEmw6NIRlyygBFQApikh9m48BUwBsrTh4xDA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677683845; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=jiA9yNAAf7X1DUmf+OkwTQ/po6752juuOe9UzFWVsBQ=; b=BTUHfgHMoV1px0p2u62DydY5sv8EDk0W11stteFC9/W7t5nQCtRgMc1WABDZWY5VLj+V88+ZKNcWZxsYj8dqFbXjhI4zlku2AJ4Ky+4m89zvx+QVAor90qz+gDLuxRzlZQhqkEzPZ2w8DVTEnVkrpVsE3MZ0AHuSTbZBEydTJvg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1677683845589397.6087547090642; Wed, 1 Mar 2023 07:17:25 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXOCC-0008T0-34; Wed, 01 Mar 2023 10:16:44 -0500 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 1pXOBk-0008Av-3M for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:16:16 -0500 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXOBg-0007cK-6D for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:16:15 -0500 Received: by mail-wr1-x42d.google.com with SMTP id t15so13594101wrz.7 for ; Wed, 01 Mar 2023 07:16:11 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id h22-20020a05600c351600b003daf6e3bc2fsm2530976wmq.1.2023.03.01.07.16.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 07:16:08 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id C211F1FFB8; Wed, 1 Mar 2023 15:16:05 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=jiA9yNAAf7X1DUmf+OkwTQ/po6752juuOe9UzFWVsBQ=; b=faBoqSRSbqIZ3gLRn2W2PyBWGw9KqhsROfrIlkDrEn97mRuwQq/xwTZxhxzoaj5y3b F/ZdebfZchKM+aP/1EPdcEEnItmX7hrKv7MRe9SgJn+zaUUGNtCVji6PKqecI/wLFtSe 13osSdrcZEusOY2TmBFF6tHJ70FMEl6BMRL+12FOuwHUpvYHjQPW0SzBz4Q3fMh2DTM+ yAuq6KnCKLzcCezlMpOo23nB80wKYIiS36ASVlOPRTxIU6HnKnEUaasdo1UFwANHiPJ5 meiYYzXWqGsxayb09K+2nP9nCy9fdbzfuAC2MLAxpr5qeD7dBcEnVx3FVKMajy1tPk1I TzdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=jiA9yNAAf7X1DUmf+OkwTQ/po6752juuOe9UzFWVsBQ=; b=ybNkOCiw5q79mNfWShDu8LMGMZO3cNsP8u3FVtYPQf1aX+j7Bu4jvj3PaPusOoA0XU qBMNayGpShMjNv01aylJp3HuOXC6q2CknO7UCmZWP6e/saASDViEOHsOhAxhm+qLScsq sqxR++p2R6UYfklyDrkCNkPMSa3/xCISt3nwpWWYTujsK16Va3Ij8sZtRqexL16jGY1K cXOkj/5NU/DCahAaAVwljGgNPudD4jM2UWMWoTTzNq32fFNTiIx+rD0wTnpfUoWrzURS ee7G7EzTx6vVMLappL0TiZjG877O+SLbkd/aXjbNN4BjWiuxdhtoljEG5Lkqhxtq/dRL W3MA== X-Gm-Message-State: AO0yUKWKC9DASP7cfSoWz0kQnsroZ5cATkrO1ttp9KV0FAHwhZwy+E9k ejGi7rmxyYrQ/X9ZXTixO+7Tdg== X-Google-Smtp-Source: AK7set88rbs4u3nTRgNNHBzV502sqxRYBZMV8UIk0j4odJaLGzL1K9a/Q8NrBRatf4i+5/QVxlJ70w== X-Received: by 2002:a5d:59c2:0:b0:2c5:4c5e:412b with SMTP id v2-20020a5d59c2000000b002c54c5e412bmr10583357wry.23.1677683770600; Wed, 01 Mar 2023 07:16:10 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Anders Roxell , Thomas Huth , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Beraldo Leal , Cleber Rosa Subject: [PULL v2 10/24] tests: add tuxrun baseline test to avocado Date: Wed, 1 Mar 2023 15:15:50 +0000 Message-Id: <20230301151604.1948813-11-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230301151604.1948813-1-alex.bennee@linaro.org> References: <20230301151604.1948813-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42d.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 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1677683847716100007 The TuxRun project (www.tuxrun.org) uses QEMU to run tests on a wide variety of kernel configurations on wide range of our emulated platforms. They publish a known good set of images at: https://storage.tuxboot.com/ to help with bisecting regressions in either the kernel, firmware or QEMU itself. The tests are pretty lightweight as they contain just a kernel with a minimal rootfs which boots a lot faster than most of the distros. In time they might be persuaded to version their known good baselines and we can then enable proper checksums. For a couple of tests we currently skip: - mips64, a regression against previous stable release - sh4, very unstable with intermittent oops Total run time: 340s (default) -> 890s (debug) Overall coverage rate (tested targets + disabled tests): lines......: 16.1% (126894 of 789848 lines) functions..: 20.6% (15954 of 77489 functions) branches...: 9.3% (40727 of 439365 branches) Signed-off-by: Alex Benn=C3=A9e Cc: Anders Roxell Acked-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20230228190653.1602033-11-alex.bennee@linaro.org> diff --git a/MAINTAINERS b/MAINTAINERS index e96e9dbfe6..76662969d7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3766,6 +3766,7 @@ F: scripts/ci/ F: tests/docker/ F: tests/vm/ F: tests/lcitool/ +F: tests/avocado/tuxrun_baselines.py F: scripts/archive-source.sh F: docs/devel/testing.rst W: https://gitlab.com/qemu-project/qemu/pipelines diff --git a/tests/avocado/tuxrun_baselines.py b/tests/avocado/tuxrun_basel= ines.py new file mode 100644 index 0000000000..30aaefc1d3 --- /dev/null +++ b/tests/avocado/tuxrun_baselines.py @@ -0,0 +1,423 @@ +# Functional test that boots known good tuxboot images the same way +# that tuxrun (www.tuxrun.org) does. This tool is used by things like +# the LKFT project to run regression tests on kernels. +# +# Copyright (c) 2023 Linaro Ltd. +# +# Author: +# Alex Benn=C3=A9e +# +# SPDX-License-Identifier: GPL-2.0-or-later + +import os +import time + +from avocado import skip, skipIf +from avocado_qemu import QemuSystemTest +from avocado_qemu import exec_command, exec_command_and_wait_for_pattern +from avocado_qemu import wait_for_console_pattern +from avocado.utils import process +from avocado.utils.path import find_command + +class TuxRunBaselineTest(QemuSystemTest): + """ + :avocado: tags=3Daccel:tcg + """ + + KERNEL_COMMON_COMMAND_LINE =3D 'printk.time=3D0' + # Tests are ~10-40s, allow for --debug/--enable-gcov overhead + timeout =3D 100 + + def get_tag(self, tagname, default=3DNone): + """ + Get the metadata tag or return the default. + """ + utag =3D self._get_unique_tag_val(tagname) + print(f"{tagname}/{default} -> {utag}") + if utag: + return utag + + return default + + def setUp(self): + super().setUp() + + # We need zstd for all the tuxrun tests + # See https://github.com/avocado-framework/avocado/issues/5609 + zstd =3D find_command('zstd', False) + if zstd is False: + self.cancel('Could not find "zstd", which is required to ' + 'decompress rootfs') + self.zstd =3D zstd + + # Process the TuxRun specific tags, most machines work with + # reasonable defaults but we sometimes need to tweak the + # config. To avoid open coding everything we store all these + # details in the metadata for each test. + + # The tuxboot tag matches the root directory + self.tuxboot =3D self.get_tag('tuxboot') + + # Most Linux's use ttyS0 for their serial port + self.console =3D self.get_tag('console', "ttyS0") + + # Does the machine shutdown QEMU nicely on "halt" + self.shutdown =3D self.get_tag('shutdown') + + # The name of the kernel Image file + self.image =3D self.get_tag('image', "Image") + + # The block device drive type + self.drive =3D self.get_tag('drive', "virtio-blk-device") + + self.root =3D self.get_tag('root', "vda") + + # Occasionally we need extra devices to hook things up + self.extradev =3D self.get_tag('extradev') + + def wait_for_console_pattern(self, success_message, vm=3DNone): + wait_for_console_pattern(self, success_message, + failure_message=3D'Kernel panic - not syn= cing', + vm=3Dvm) + + def fetch_tuxrun_assets(self, dt=3DNone): + """ + Fetch the TuxBoot assets. They are stored in a standard way so we + use the per-test tags to fetch details. + """ + base_url =3D f"https://storage.tuxboot.com/{self.tuxboot}/" + kernel_image =3D self.fetch_asset(base_url + self.image) + disk_image_zst =3D self.fetch_asset(base_url + "rootfs.ext4.zst") + + cmd =3D f"{self.zstd} -d {disk_image_zst} -o {self.workdir}/rootfs= .ext4" + process.run(cmd) + + if dt: + dtb =3D self.fetch_asset(base_url + dt) + else: + dtb =3D None + + return (kernel_image, self.workdir + "/rootfs.ext4", dtb) + + def prepare_run(self, kernel, disk, dtb=3DNone, console_index=3D0): + """ + Setup to run and add the common parameters to the system + """ + self.vm.set_console(console_index=3Dconsole_index) + + # all block devices are raw ext4's + blockdev =3D "driver=3Draw,file.driver=3Dfile," \ + + f"file.filename=3D{disk},node-name=3Dhd0" + + kcmd_line =3D self.KERNEL_COMMON_COMMAND_LINE + kcmd_line +=3D f" root=3D/dev/{self.root}" + kcmd_line +=3D f" console=3D{self.console}" + + self.vm.add_args('-kernel', kernel, + '-append', kcmd_line, + '-blockdev', blockdev) + + # Sometimes we need extra devices attached + if self.extradev: + self.vm.add_args('-device', self.extradev) + + # Some machines already define a drive device + if self.drive !=3D "none": + self.vm.add_args('-device', + f"{self.drive},drive=3Dhd0") + + # Some machines need an explicit DTB + if dtb: + self.vm.add_args('-dtb', dtb) + + def run_tuxtest_tests(self, haltmsg): + """ + Wait for the system to boot up, wait for the login prompt and + then do a few things on the console. Trigger a shutdown and + wait to exit cleanly. + """ + self.wait_for_console_pattern("Welcome to TuxTest") + time.sleep(0.2) + exec_command(self, 'root') + time.sleep(0.2) + exec_command(self, 'cat /proc/interrupts') + time.sleep(0.1) + exec_command(self, 'cat /proc/self/maps') + time.sleep(0.1) + exec_command(self, 'uname -a') + time.sleep(0.1) + exec_command_and_wait_for_pattern(self, 'halt', haltmsg) + + # Wait for VM to shut down gracefully if it can + if self.shutdown =3D=3D "nowait": + self.vm.shutdown() + else: + self.vm.wait() + + def common_tuxrun(self, dt=3DNone, haltmsg=3D"reboot: System halted", + console_index=3D0): + """ + Common path for LKFT tests. Unless we need to do something + special with the command line we can process most things using + the tag metadata. + """ + (kernel, disk, dtb) =3D self.fetch_tuxrun_assets(dt) + + self.prepare_run(kernel, disk, dtb, console_index) + self.vm.launch() + self.run_tuxtest_tests(haltmsg) + + # + # The tests themselves. The configuration is derived from how + # tuxrun invokes qemu (with minor tweaks like using -blockdev + # consistently). The tuxrun equivalent is something like: + # + # tuxrun --device qemu-{ARCH} \ + # --kernel https://storage.tuxboot.com/{TUXBOOT}/{IMAGE} + # + + def test_arm64(self): + """ + :avocado: tags=3Darch:aarch64 + :avocado: tags=3Dcpu:cortex-a57 + :avocado: tags=3Dmachine:virt + :avocado: tags=3Dtuxboot:arm64 + :avocado: tags=3Dconsole:ttyAMA0 + :avocado: tags=3Dshutdown:nowait + """ + self.common_tuxrun() + + def test_arm64be(self): + """ + :avocado: tags=3Darch:aarch64 + :avocado: tags=3Dcpu:cortex-a57 + :avocado: tags=3Dendian:big + :avocado: tags=3Dmachine:virt + :avocado: tags=3Dtuxboot:arm64be + :avocado: tags=3Dconsole:ttyAMA0 + :avocado: tags=3Dshutdown:nowait + """ + self.common_tuxrun() + + def test_armv5(self): + """ + :avocado: tags=3Darch:arm + :avocado: tags=3Dcpu:arm926 + :avocado: tags=3Dmachine:versatilepb + :avocado: tags=3Dtuxboot:armv5 + :avocado: tags=3Dimage:zImage + :avocado: tags=3Ddrive:virtio-blk-pci + :avocado: tags=3Dconsole:ttyAMA0 + :avocado: tags=3Dshutdown:nowait + """ + self.common_tuxrun(dt=3D"versatile-pb.dtb") + + def test_armv7(self): + """ + :avocado: tags=3Darch:arm + :avocado: tags=3Dcpu:cortex-a15 + :avocado: tags=3Dmachine:virt + :avocado: tags=3Dtuxboot:armv7 + :avocado: tags=3Dimage:zImage + :avocado: tags=3Dconsole:ttyAMA0 + :avocado: tags=3Dshutdown:nowait + """ + self.common_tuxrun() + + def test_armv7be(self): + """ + :avocado: tags=3Darch:arm + :avocado: tags=3Dcpu:cortex-a15 + :avocado: tags=3Dendian:big + :avocado: tags=3Dmachine:virt + :avocado: tags=3Dtuxboot:armv7be + :avocado: tags=3Dimage:zImage + :avocado: tags=3Dconsole:ttyAMA0 + :avocado: tags=3Dshutdown:nowait + """ + self.common_tuxrun() + + def test_i386(self): + """ + :avocado: tags=3Darch:i386 + :avocado: tags=3Dcpu:coreduo + :avocado: tags=3Dmachine:q35 + :avocado: tags=3Dtuxboot:i386 + :avocado: tags=3Dimage:bzImage + :avocado: tags=3Ddrive:virtio-blk-pci + :avocado: tags=3Dshutdown:nowait + """ + self.common_tuxrun() + + def test_mips32(self): + """ + :avocado: tags=3Darch:mips + :avocado: tags=3Dmachine:malta + :avocado: tags=3Dcpu:mips32r6-generic + :avocado: tags=3Dendian:big + :avocado: tags=3Dtuxboot:mips32 + :avocado: tags=3Dimage:vmlinux + :avocado: tags=3Ddrive:driver=3Dide-hd,bus=3Dide.0,unit=3D0 + :avocado: tags=3Droot:sda + :avocado: tags=3Dshutdown:nowait + """ + self.common_tuxrun() + + def test_mips32el(self): + """ + :avocado: tags=3Darch:mipsel + :avocado: tags=3Dmachine:malta + :avocado: tags=3Dcpu:mips32r6-generic + :avocado: tags=3Dtuxboot:mips32el + :avocado: tags=3Dimage:vmlinux + :avocado: tags=3Ddrive:driver=3Dide-hd,bus=3Dide.0,unit=3D0 + :avocado: tags=3Droot:sda + :avocado: tags=3Dshutdown:nowait + """ + self.common_tuxrun() + + @skip("QEMU currently broken") # regression against stable QEMU + def test_mips64(self): + """ + :avocado: tags=3Darch:mips64 + :avocado: tags=3Dmachine:malta + :avocado: tags=3Dtuxboot:mips64 + :avocado: tags=3Dendian:big + :avocado: tags=3Dimage:vmlinux + :avocado: tags=3Ddrive:driver=3Dide-hd,bus=3Dide.0,unit=3D0 + :avocado: tags=3Droot:sda + :avocado: tags=3Dshutdown:nowait + """ + self.common_tuxrun() + + def test_mips64el(self): + """ + :avocado: tags=3Darch:mips64el + :avocado: tags=3Dmachine:malta + :avocado: tags=3Dtuxboot:mips64el + :avocado: tags=3Dimage:vmlinux + :avocado: tags=3Ddrive:driver=3Dide-hd,bus=3Dide.0,unit=3D0 + :avocado: tags=3Droot:sda + :avocado: tags=3Dshutdown:nowait + """ + self.common_tuxrun() + + def test_ppc32(self): + """ + :avocado: tags=3Darch:ppc + :avocado: tags=3Dmachine:ppce500 + :avocado: tags=3Dcpu:e500mc + :avocado: tags=3Dtuxboot:ppc32 + :avocado: tags=3Dimage:uImage + :avocado: tags=3Ddrive:virtio-blk-pci + :avocado: tags=3Dshutdown:nowait + """ + self.common_tuxrun() + + def test_ppc64(self): + """ + :avocado: tags=3Darch:ppc64 + :avocado: tags=3Dmachine:pseries + :avocado: tags=3Dcpu:POWER8 + :avocado: tags=3Dendian:big + :avocado: tags=3Dconsole:hvc0 + :avocado: tags=3Dtuxboot:ppc64 + :avocado: tags=3Dimage:vmlinux + :avocado: tags=3Dextradev:driver=3Dspapr-vscsi + :avocado: tags=3Ddrive:scsi-hd + :avocado: tags=3Droot:sda + """ + self.common_tuxrun() + + def test_ppc64le(self): + """ + :avocado: tags=3Darch:ppc64 + :avocado: tags=3Dmachine:pseries + :avocado: tags=3Dcpu:POWER8 + :avocado: tags=3Dconsole:hvc0 + :avocado: tags=3Dtuxboot:ppc64le + :avocado: tags=3Dimage:vmlinux + :avocado: tags=3Dextradev:driver=3Dspapr-vscsi + :avocado: tags=3Ddrive:scsi-hd + :avocado: tags=3Droot:sda + """ + self.common_tuxrun() + + def test_riscv32(self): + """ + :avocado: tags=3Darch:riscv32 + :avocado: tags=3Dmachine:virt + :avocado: tags=3Dtuxboot:riscv32 + """ + self.common_tuxrun() + + def test_riscv64(self): + """ + :avocado: tags=3Darch:riscv64 + :avocado: tags=3Dmachine:virt + :avocado: tags=3Dtuxboot:riscv64 + """ + self.common_tuxrun() + + def test_s390(self): + """ + :avocado: tags=3Darch:s390x + :avocado: tags=3Dendian:big + :avocado: tags=3Dtuxboot:s390 + :avocado: tags=3Dimage:bzImage + :avocado: tags=3Ddrive:virtio-blk-ccw + :avocado: tags=3Dshutdown:nowait + """ + self.common_tuxrun(haltmsg=3D"Requesting system halt") + + # Note: some segfaults caused by unaligned userspace access + @skipIf(os.getenv('GITLAB_CI'), 'Skipping unstable test on GitLab') + def test_sh4(self): + """ + :avocado: tags=3Darch:sh4 + :avocado: tags=3Dmachine:r2d + :avocado: tags=3Dcpu:sh7785 + :avocado: tags=3Dtuxboot:sh4 + :avocado: tags=3Dimage:zImage + :avocado: tags=3Droot:sda + :avocado: tags=3Ddrive:driver=3Dide-hd,bus=3Dide.0,unit=3D0 + :avocado: tags=3Dconsole:ttySC1 + """ + # The test is currently too unstable to do much in userspace + # so we skip common_tuxrun and do a minimal boot and shutdown. + (kernel, disk, dtb) =3D self.fetch_tuxrun_assets() + + # the console comes on the second serial port + self.prepare_run(kernel, disk, console_index=3D1) + self.vm.launch() + + self.wait_for_console_pattern("Welcome to TuxTest") + time.sleep(0.1) + exec_command(self, 'root') + time.sleep(0.1) + exec_command_and_wait_for_pattern(self, 'halt', + "reboot: System halted") + + def test_sparc64(self): + """ + :avocado: tags=3Darch:sparc64 + :avocado: tags=3Dtuxboot:sparc64 + :avocado: tags=3Dimage:vmlinux + :avocado: tags=3Droot:sda + :avocado: tags=3Ddrive:driver=3Dide-hd,bus=3Dide.0,unit=3D0 + :avocado: tags=3Dshutdown:nowait + """ + self.common_tuxrun() + + def test_x86_64(self): + """ + :avocado: tags=3Darch:x86_64 + :avocado: tags=3Dmachine:q35 + :avocado: tags=3Dcpu:Nehalem + :avocado: tags=3Dtuxboot:x86_64 + :avocado: tags=3Dimage:bzImage + :avocado: tags=3Droot:sda + :avocado: tags=3Ddrive:driver=3Dide-hd,bus=3Dide.0,unit=3D0 + :avocado: tags=3Dshutdown:nowait + """ + self.common_tuxrun() --=20 2.39.2 From nobody Sun May 5 15:01:05 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1677683865; cv=none; d=zohomail.com; s=zohoarc; b=Xz+8vkBB1HqNZSZUk4fif4Xt7rMWTK3ucqMLQU3ddnpi4URL84vmgqOq0Q8I9HVpoj/7j0ShQlC9xqzHRkWKBDKOjywMCAtDn7qRdtuI0kL2rGtBJdGcwq8kNjZMxp0Zkxn8T8c3ny4xGk06RniG8Mzc3QFaYKInlCd1ol09Qso= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677683865; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=M4X95ZwnspHpgdYhEfY3qoUK+TpfRMK73yKGv3Ei+gY=; b=HNPxrwabCjIjt9wxDjQEAArNrPoyy22LxPNmeS2iDc6p4UFPcS7OkXa4bpbaTbRZgUYL+RDMnB9H7/57cYTkX9ZPAEIO/oWZkwWh/sRB2JowpMU/kTIIjE0GZaisc7lqEFtitrrnJcz1qMT7GjLJirRmO2jg4CE2QMBHC/4gCFk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1677683865204736.5108456927486; Wed, 1 Mar 2023 07:17:45 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXOCG-0000BB-It; Wed, 01 Mar 2023 10:16:48 -0500 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 1pXOBj-00089J-3M for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:16:15 -0500 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXOBe-0007c3-ID for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:16:14 -0500 Received: by mail-wm1-x32a.google.com with SMTP id m25-20020a7bcb99000000b003e7842b75f2so8058764wmi.3 for ; Wed, 01 Mar 2023 07:16:10 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id v7-20020a05600c470700b003eb3933ef10sm14679016wmo.46.2023.03.01.07.16.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 07:16:09 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id DDE9D1FFC1; Wed, 1 Mar 2023 15:16:05 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=M4X95ZwnspHpgdYhEfY3qoUK+TpfRMK73yKGv3Ei+gY=; b=vRHUmOpzVa6B682CWBPLJpV7XtE3kEaL7/ONWf1b0FWNxpVVPKvp9k2nCmvlSdbOcU gXJIdp5UFEv1XqOJKy5u22s6luXxOZ79ZPjaOiRdf6psFt9ZeAA5uQ9ZsEYNwKS3mNjI pgL/KwwbqGKdwWHVYGbbu0j2OD6ils4MvhCRX6kPadgC+9sqBOPlvf4FhtDS9e0ilNhO Nc8JqWrsJTjC9j6Wa1Q3kJW0qJ5RB+a2qLkGE+rlq94okvymyDMWljZ2M6E8IAOZmJOr 7AX+oNgQz1uX0xZJ49I/lfEgDVjU2puhayyD5NTk55KIz9ZrFbS+Qe357S+kmzEmNz8S z4jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=M4X95ZwnspHpgdYhEfY3qoUK+TpfRMK73yKGv3Ei+gY=; b=G+NYPv+ruYnk0EldXn010YoqM3su+3UQzOkDhODnTfncwFUM+ZV7YUm81TQWS047NA Diz+SZCQnOsvWMBnetaNC3yAL7A5YtAIuv2/XmrPWgyTxPPgjdgn/1Ude9P0bzjUHmOu MrIYlVXa5vD2z0bF7stNM4gFktck/6FUrUcHeRfO2neLV6WpxceTF1VVRNLLsvRrr3lg SOvW566woPW65dPVMZ0i4QeEcFVaDdZ5DrSUYzG2BCpBchDPnG1+zLBfc3SXoQkMyFbI iWKnlT7pK9+El17YbkhGfmZsHLyla4lvgTPAoyxnHB2JGQd8obEGVnutQ5J8Njuu0MU2 TK4Q== X-Gm-Message-State: AO0yUKVmzKIOdwZJ3XmYkvSBg4g09UsAYCLB0gA/4MzMFMW2gSm1tWeq JwJ7K2+VPiIEzL3wFafGcX2LIg== X-Google-Smtp-Source: AK7set8VWLwOaId4PU9RYGgv6Alon0OfPySXHuRgQ0j2H9fSwlmFdCezooXOAsrSSrzT0OeMgXUPFw== X-Received: by 2002:a05:600c:3b87:b0:3eb:2f06:c989 with SMTP id n7-20020a05600c3b8700b003eb2f06c989mr5493746wms.22.1677683769111; Wed, 01 Mar 2023 07:16:09 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, Bastian Koppelmann , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL v2 11/24] tests/docker: Use binaries for debian-tricore-cross Date: Wed, 1 Mar 2023 15:15:51 +0000 Message-Id: <20230301151604.1948813-12-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230301151604.1948813-1-alex.bennee@linaro.org> References: <20230301151604.1948813-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32a.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 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1677683866013100005 From: Bastian Koppelmann since binutils is pretty old, it fails our CI repeatedly during the compilation of tricore-binutils. We created a precompiled version using the debian docker image and download it instead of building it ourself. We also updated the package to include a newer version of binutils, gcc, and newlib. The default TriCore ISA version used by tricore-as changed from the old version, so we have to specify it now. If we don't 'test_fadd' fails with 'unknown opcode'. The new assembler also picks a new encoding in ld.h which fails the 'test_ld_h' test. We fix that by using the newest TriCore CPU for QEMU. The old assembler accepted an extra ')' in 'test_imask'. The new one does not, so lets remove it. Signed-off-by: Bastian Koppelmann Message-Id: <20230209145812.46730-1-kbastian@mail.uni-paderborn.de> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20230228190653.1602033-12-alex.bennee@linaro.org> diff --git a/tests/tcg/tricore/macros.h b/tests/tcg/tricore/macros.h index ec4f5bff52..3df2e0de82 100644 --- a/tests/tcg/tricore/macros.h +++ b/tests/tcg/tricore/macros.h @@ -174,7 +174,7 @@ test_ ## num: = \ TEST_CASE_E(num, res_lo, res_hi, \ LI(DREG_RS1, rs1); \ rstv; \ - insn EREG_CALC_RESULT, imm1, DREG_RS1, imm2); \ + insn EREG_CALC_RESULT, imm1, DREG_RS1, imm2; \ ) =20 =20 diff --git a/tests/docker/dockerfiles/debian-tricore-cross.docker b/tests/d= ocker/dockerfiles/debian-tricore-cross.docker index 5ae58efa09..82e4576485 100644 --- a/tests/docker/dockerfiles/debian-tricore-cross.docker +++ b/tests/docker/dockerfiles/debian-tricore-cross.docker @@ -20,6 +20,7 @@ RUN apt update && \ bzip2 \ ca-certificates \ ccache \ + curl \ flex \ g++ \ gcc \ @@ -34,13 +35,8 @@ RUN apt update && \ python3-setuptools \ python3-wheel =20 -RUN git clone --single-branch \ - https://github.com/bkoppelmann/tricore-binutils.git \ - /usr/src/binutils && \ - cd /usr/src/binutils && chmod +x missing && \ - CFLAGS=3D-w ./configure --prefix=3D/usr/local --disable-nls --target= =3Dtricore && \ - make && make install && \ - rm -rf /usr/src/binutils +RUN curl -#SL https://github.com/bkoppelmann/package_940/releases/download= /tricore-toolchain-9.40/tricore-toolchain-9.4.0.tar.gz \ + | tar -xzC /usr/local/ =20 # This image can only build a very minimal QEMU as well as the tests ENV DEF_TARGET_LIST tricore-softmmu diff --git a/tests/tcg/tricore/Makefile.softmmu-target b/tests/tcg/tricore/= Makefile.softmmu-target index d2446af8b4..b3cd56fffc 100644 --- a/tests/tcg/tricore/Makefile.softmmu-target +++ b/tests/tcg/tricore/Makefile.softmmu-target @@ -1,7 +1,7 @@ TESTS_PATH =3D $(SRC_PATH)/tests/tcg/tricore =20 -LDFLAGS =3D -T$(TESTS_PATH)/link.ld -ASFLAGS =3D +LDFLAGS =3D -T$(TESTS_PATH)/link.ld --mcpu=3Dtc162 +ASFLAGS =3D -mtc162 =20 TESTS +=3D test_abs.tst TESTS +=3D test_bmerge.tst @@ -19,7 +19,7 @@ TESTS +=3D test_madd.tst TESTS +=3D test_msub.tst TESTS +=3D test_muls.tst =20 -QEMU_OPTS +=3D -M tricore_testboard -nographic -kernel +QEMU_OPTS +=3D -M tricore_testboard -cpu tc27x -nographic -kernel =20 %.pS: $(TESTS_PATH)/%.S $(HOST_CC) -E -o $@ $< --=20 2.39.2 From nobody Sun May 5 15:01:05 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1677684325; cv=none; d=zohomail.com; s=zohoarc; b=BCr4Ty9wANpZ2q+AXoQwZeMSeeayz9DPBfq7O5ZMnOg7cS56HtDzX5zYEDjcHguJlVA8uXd0g1ZzGmukdTtqxYVwt+oM+22DRR/aeBufVBNo1ZylFmXR8a0CHe6e2p7N+JmvVeZQOKV4Krw0M7Tyf436KCjcc/pVZJES089Rsfo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677684325; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=GHL540s7Ps9RUn0c/E5TovWPNiGeB6LN+M0UzHb3Xfo=; b=KaswWH79D8jBDxlQkT/R98wKmqiYkw19WWTir/Aa70mHo9ezFGwcltYhWG59yzSIjeuJs3kQOctTYyKCQofbcnqLBoMgtJZNnx34KBFw8VD2WNbhze8O2al6D5AKptYPb46gRLV/lZdB44i2K7t4ITtSzzyLkdjvEwYEVO2Pfxg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1677684325893487.4447332783983; Wed, 1 Mar 2023 07:25:25 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXOJy-0000u0-1y; Wed, 01 Mar 2023 10:24:46 -0500 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 1pXOJi-0000b9-Dc for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:24:31 -0500 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXOJd-00011d-BK for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:24:29 -0500 Received: by mail-wr1-x430.google.com with SMTP id g3so4744579wri.6 for ; Wed, 01 Mar 2023 07:24:22 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id s9-20020a5d4249000000b002c5598c14acsm12880163wrr.6.2023.03.01.07.24.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 07:24:20 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 026D51FFC2; Wed, 1 Mar 2023 15:16:06 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=GHL540s7Ps9RUn0c/E5TovWPNiGeB6LN+M0UzHb3Xfo=; b=eC8Qne5g3yfxUuxqme1U/NsuXS53Kx1vXAIJz95igM1fipdUFgp75HqdmdRoaStHns ziL6r9rP2/hERTYnDH4I7K1ut9XpWfi5d3SAluM13ulM5NTgGd6FWMjTRInGhmFDHvzh VOwfAxjSuG0eQWaseLQ8d7Z9kBdhhU2BKaNuEG6IIgPXTRRdr8JT8Q8OEbuOhrzIZu6h HRkRlNFYpci3ZLWvEglzQyEXBqKUZ5gvPlEdaCoWNYb/RP8WNAqWmX0oa+AjIYUJiEpu 9Y9qoifyvyy9om5pobeUD2R831taswrRnGZ/K1Ag9K3xoNEGUoHhET3JME+fRDHhGAwB ayLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=GHL540s7Ps9RUn0c/E5TovWPNiGeB6LN+M0UzHb3Xfo=; b=Q/dn8O8/NUZ5usBKRxPU8IeL4TllJHccO7fhz5KU9/1rx1KE7JrIh+fp08X1CMy/AB DDbOrsN7efVjUPfD6LzA8L+2PcQd4ZRBXGgiC5qRVmP1hPpIFd5i0YbZyICqxegGRmy2 LSTc1GFV8nYxA2eQ/r2DVYscvq6IBL5y5rTZomaRWTx2bTt1/nAlaHZhqpES2V+OWkoD msrey5RWCHtL4+ZIWq8mJl6pkTcwjNZrM/jQuyUZ4IAOcSmnBgupE4ILsG7VYskl0h2t DcbeCtBCekJ6SLeLKiKDk1OniCKsaXT1D5LWSbqEznShRkz0Qiz1126e1qL9yF84QV/N VLcg== X-Gm-Message-State: AO0yUKUR0GA8nxH+XwiLnIe/UO0+vFHY5bcXwf2BbpNbYfy6v27NqHXH wAjUgPjX+tekM1TiswawAof4lw== X-Google-Smtp-Source: AK7set81a2W0JIospzoyFWKfnqs82ro3bRLNpsp7d97pucKPL5sJjtB6E5Otq7ASzbCJHKRfQHRTHw== X-Received: by 2002:a05:6000:1548:b0:2c5:a38f:ca3a with SMTP id 8-20020a056000154800b002c5a38fca3amr12969701wry.10.1677684261011; Wed, 01 Mar 2023 07:24:21 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Thomas Huth , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL v2 12/24] tests: ensure we export job results for some cross builds Date: Wed, 1 Mar 2023 15:15:52 +0000 Message-Id: <20230301151604.1948813-13-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230301151604.1948813-1-alex.bennee@linaro.org> References: <20230301151604.1948813-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x430.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 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1677684327945100005 We do run tests on some cross builds. Provide a template to ensure we export the testlog to the build artefacts and report the test results via the junit. Signed-off-by: Alex Benn=C3=A9e Reported-by: Peter Maydell Reviewed-by: Thomas Huth Message-Id: <20230228190653.1602033-13-alex.bennee@linaro.org> diff --git a/.gitlab-ci.d/crossbuild-template.yml b/.gitlab-ci.d/crossbuild= -template.yml index d07989e3b0..4f93b9e4e5 100644 --- a/.gitlab-ci.d/crossbuild-template.yml +++ b/.gitlab-ci.d/crossbuild-template.yml @@ -49,3 +49,14 @@ nios2-linux-user or1k-linux-user ppc-linux-user sparc-linux-user xtensa-linux-user $CROSS_SKIP_TARGETS" - make -j$(expr $(nproc) + 1) all check-build $MAKE_CHECK_ARGS + +# We can still run some tests on some of our cross build jobs. They can ad= d this +# template to their extends to save the build logs and test results +.cross_test_artifacts: + artifacts: + name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG" + expire_in: 7 days + paths: + - build/meson-logs/testlog.txt + reports: + junit: build/meson-logs/testlog.junit.xml diff --git a/.gitlab-ci.d/crossbuilds.yml b/.gitlab-ci.d/crossbuilds.yml index 101416080c..d3a31a2112 100644 --- a/.gitlab-ci.d/crossbuilds.yml +++ b/.gitlab-ci.d/crossbuilds.yml @@ -44,7 +44,9 @@ cross-arm64-user: IMAGE: debian-arm64-cross =20 cross-i386-system: - extends: .cross_system_build_job + extends: + - .cross_system_build_job + - .cross_test_artifacts needs: job: i386-fedora-cross-container variables: @@ -52,7 +54,9 @@ cross-i386-system: MAKE_CHECK_ARGS: check-qtest =20 cross-i386-user: - extends: .cross_user_build_job + extends: + - .cross_user_build_job + - .cross_test_artifacts needs: job: i386-fedora-cross-container variables: @@ -60,7 +64,9 @@ cross-i386-user: MAKE_CHECK_ARGS: check =20 cross-i386-tci: - extends: .cross_accel_build_job + extends: + - .cross_accel_build_job + - .cross_test_artifacts timeout: 60m needs: job: i386-fedora-cross-container --=20 2.39.2 From nobody Sun May 5 15:01:05 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1677684316; cv=none; d=zohomail.com; s=zohoarc; b=Nqu+/l2At1yz9VTBlB+eezOhDYpW6GsSBbSSqmUHFewxafckDCE3B7XKYRAUfyrRRe490uYAOrP//7bTB+5+IuWhkFdbP+WKOcW3nToJ2mVhZp0RaRAGW4IwOWWtoqL+PBRRoWEyLSG+dhh30xd0ehx7ULE3X1/jhyHE/Bu7VNM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677684316; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=D9u8cdGfNTD+ql08VoEjefNIwphTAu8BlNDQo2Kgmc8=; b=WC02dUnFuQyHIUqNoj9M74hWlFyPN7t8XnwnvOFF9svv9D6wHo/0Xy+LiWEMebEu2iHe57f9lxCdCEkD4qQONZHVL/Q+BzEX58e64fg97drMZblz9k8R2Mk9DPn30ZKnfqbOU0ptsvN2ZylZFUV4KxPCqgGLK29dhubq+sN/U9E= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1677684316959339.42334417541986; Wed, 1 Mar 2023 07:25:16 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXOJp-0000jP-9K; Wed, 01 Mar 2023 10:24:38 -0500 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 1pXOJi-0000bB-65 for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:24:31 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXOJd-00011Z-Dz for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:24:28 -0500 Received: by mail-wm1-x333.google.com with SMTP id j3so8830919wms.2 for ; Wed, 01 Mar 2023 07:24:22 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id z23-20020a1c4c17000000b003e2066a6339sm15726842wmf.5.2023.03.01.07.24.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 07:24:20 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 1949C1FFC3; Wed, 1 Mar 2023 15:16:06 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=D9u8cdGfNTD+ql08VoEjefNIwphTAu8BlNDQo2Kgmc8=; b=iTjOYwk+RrImjIPi8QX2RORAUu92BhFxjS5wqDww0pDdElxZsjKMdZZj2xle68T/RH qPgcRYqXaxkheC0CNMcwiUUz2qtkxNL6fyahBV0gx/Ob51/9TXE/2bEb2pBQA5Q1WPoM 4cRAbf9flPGj4lRGJvm4/0mXSKB8to4Vt/BjdI/9pV7YLrJlqFw9RaMQZavNYmbz1ZKo GeVpeh/MTPkdPseObSjbHSr204cw5mj1BQTviJ1PjnIjsfEokrDTuPL2hUtNLsQ7oxwD 0RZ35fLK3ppGbXxzcpjOXi/rC7o61pjAnITg3aSjiPgLC4anK4JBNSpF2eEwWOF2vExJ xPmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=D9u8cdGfNTD+ql08VoEjefNIwphTAu8BlNDQo2Kgmc8=; b=jORNJVbGtwdHFgohQ9mN8I1xDIW1petE5RsxGJBQmYhwTExlqn/r771R7o89ZA/O3L jwJSRUYrFNCEFjwVHi+8L3AWi58hllmHTfjoZk5e9Z4pj5mQFu6LrXHikthF9MX/S880 IeP63RsxM0L/GygEbuFhvCcFW20bgYAbr4JmRM2p6mKUjNxCZQsROE627MKFhvKAbkx4 JtjE67jdvL6Uiw4L00n4Z1hhMPdAgVnFYyJkE9OjGfhV+rrcr/Zp//FXJGjOoWNNRF9R CzJdWJB33TMMUOf+Gms0z/H0qvbQg6J9mq8Wmyp8MOgX+m/hnuBvvPVEmDYFbOXzR7AK FzUg== X-Gm-Message-State: AO0yUKXiM184k6BUhJJ/XP9kTf2FQMOKBEgHL1VlKzERfppikSvLi27M 49+a6n3KqQGKaVajsfiymQEm3w== X-Google-Smtp-Source: AK7set8gDm62CJkX7pmhxEqgxjay5Jaj3eU8F3raQ1KR7sJxejLqgsmRWPWKJN9NyWaMxAUigaSFtQ== X-Received: by 2002:a05:600c:81e:b0:3e2:201a:5bce with SMTP id k30-20020a05600c081e00b003e2201a5bcemr5260351wmp.40.1677684260716; Wed, 01 Mar 2023 07:24:20 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, Thomas Huth , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Yonggang Luo Subject: [PULL v2 13/24] cirrus.yml: Improve the windows_msys2_task Date: Wed, 1 Mar 2023 15:15:53 +0000 Message-Id: <20230301151604.1948813-14-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230301151604.1948813-1-alex.bennee@linaro.org> References: <20230301151604.1948813-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x333.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 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1677684317988100003 From: Thomas Huth There's no need to run a full-blown bash just to create a directory. And we can skip the "cd build" each time by doing it once at the beginning. Additionally, let's exclude some targets (that we already compile-test with MinGW in the gitlab jobs) from the build, since the build time of this task is very long already (between 80 and 90 minutes). Signed-off-by: Thomas Huth Message-Id: <20230208103046.618154-1-thuth@redhat.com> Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20230228190653.1602033-14-alex.bennee@linaro.org> diff --git a/.cirrus.yml b/.cirrus.yml index 4895987da4..5fb00da73d 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -100,9 +100,11 @@ windows_msys2_task: tar xf C:\tools\archive\msys64.tar Write-Output "Extract msys2 time taken: $((Get-Date).Subtract($start= _time))" script: - - C:\tools\msys64\usr\bin\bash.exe -lc "mkdir build" - - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && ../configure --pyt= hon=3Dpython3" - - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && make -j8" + - mkdir build + - cd build + - C:\tools\msys64\usr\bin\bash.exe -lc "../configure --python=3Dpython3 + --target-list-exclude=3Di386-softmmu,ppc64-softmmu,aarch64-softmmu= ,mips64-softmmu,mipsel-softmmu,sh4-softmmu" + - C:\tools\msys64\usr\bin\bash.exe -lc "make -j8" - exit $LastExitCode test_script: - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && make V=3D1 check" --=20 2.39.2 From nobody Sun May 5 15:01:05 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1677683947; cv=none; d=zohomail.com; s=zohoarc; b=G7dL6AKl6lIJkTfrRBKFQkR2vwxMk2KWNVDpTJmyGBU39h1l09uInRgfafb7sjA8rgQ/B28lepWtjLMw47aNPy4BYROhMBvvs0qwWWo8I9FSaXEZsMjUHv0yBnW5c1r6HNx0sTJMXrzd1GgVEjDCLSb0XD06pZ73AyCY7Khqi2k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677683947; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=LmUrhgk0YSn7eAK1UZD+INIAeQ9KUq+cgoKOu+wodlw=; b=U+kM+hcB0PGlO22OC4hSWiIHX8OvaLSyLrDViC/QVuvDkFDd5fFx+4f67sVNbziNn8rFfZdpQnbm6MqS+n0CrG8LlGYk7qGMBWMvFHXSf4YeublT0aJRH7TVPuHk4SidLjHb9oSoXcO43cBZfL0OJamk3TFhuhTum7jX3UIjje8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1677683947804959.784433246134; Wed, 1 Mar 2023 07:19:07 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXOCJ-0000Ix-VO; Wed, 01 Mar 2023 10:16:51 -0500 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 1pXOBl-0008Ce-GX for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:16:17 -0500 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXOBj-0007eJ-Ce for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:16:17 -0500 Received: by mail-wm1-x334.google.com with SMTP id t25-20020a1c7719000000b003eb052cc5ccso11667390wmi.4 for ; Wed, 01 Mar 2023 07:16:14 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id v20-20020a1cf714000000b003db03725e86sm16025067wmh.8.2023.03.01.07.16.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 07:16:11 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 2E7321FFC4; Wed, 1 Mar 2023 15:16:06 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=LmUrhgk0YSn7eAK1UZD+INIAeQ9KUq+cgoKOu+wodlw=; b=IfUdVQx7fJAROXgZ8cfWRfd6VzfyaU0hDHUskP3hejnstt+SwIEPyWWcPa08vNge2E 7Vr2iAOFetiO9vbDMC1MVH8q6KjCtvWDQi6qJNfOjoaUqFJzUeY7R4IjlGFVNU6NiE+A u3MY/XtljoMHSroqaeNeMtdGxANMg15BHFTBd5NEGJsbPbBDi0tBSsg4OLZYYnix98T0 8adQm9KD3Eo49M+MtnP5ECeTz4QIb9WukJbRDPNoXmO7mC4PfOH/FFJxENRSS+MQJo+x CTJqNEVSXe/FN09d0hpypuvNFkwPxBqsn0meRKY6O2j5G3rydAJ0OkRq+Go5eDvIqO3V oZ+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=LmUrhgk0YSn7eAK1UZD+INIAeQ9KUq+cgoKOu+wodlw=; b=z3k5atjFOB1kb/YxioXVNtCqeAR/+oX1hs0Trj09k4PqNrLM+mJTYQ6/afOz6mb4hJ amdKfofwWybaOPKDp1VB7UHYGQeZx7Mve4pZ0kZF2DU9q/D5Hc+sV2xZJ7mVmmywP6l3 L3+XeJMKupZFcfScw+u0+FtWSQ2GENTeFGrSk1B1Q2FYsCFYo6avRuVP+sr/gfwAlb3D XtxL4xcB7TZpmxJ2KW544oFyaiaSkZdQPUDZhzpijMd1yCx+FPONprTAbxA2VlIjCSuh ZY4kGICxdULbGvUTemdtXhOGMBMSuPAV6TAYakwQ49icq6Jr+8b0qE5ISJtFgrj9zYQP W3KA== X-Gm-Message-State: AO0yUKV7ncxtVC/b0XnomKgn1sbc3UtGpCc+CK+AdtLxEtoE785ZPc40 gsXF87zmJcraMXW31T9E7tc/CA== X-Google-Smtp-Source: AK7set+nET5ki2JnWGLX/JvWSo87GgojsznW9bL7YbwKr/BRv4x9r+pXuRvggn5BiGcRBGScSFu8ZQ== X-Received: by 2002:a05:600c:4450:b0:3dc:16d2:ae5e with SMTP id v16-20020a05600c445000b003dc16d2ae5emr5334026wmn.32.1677683773906; Wed, 01 Mar 2023 07:16:13 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL v2 14/24] tests/dockerfiles: unify debian-toolchain references Date: Wed, 1 Mar 2023 15:15:54 +0000 Message-Id: <20230301151604.1948813-15-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230301151604.1948813-1-alex.bennee@linaro.org> References: <20230301151604.1948813-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x334.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 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1677683948397100003 We use the debian release number elsewhere so fix it for consistency along with the broken comment. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Daniel P. Berrang=C3=A9 Message-Id: <20230228190653.1602033-15-alex.bennee@linaro.org> diff --git a/tests/docker/dockerfiles/debian-toolchain.docker b/tests/docke= r/dockerfiles/debian-toolchain.docker index 6c73408b34..dc9545857f 100644 --- a/tests/docker/dockerfiles/debian-toolchain.docker +++ b/tests/docker/dockerfiles/debian-toolchain.docker @@ -30,7 +30,7 @@ ADD build-toolchain.sh /root/build-toolchain.sh RUN cd /root && ./build-toolchain.sh =20 # Throw away the extra toolchain build deps, the downloaded source, -# and the build trees by restoring the original debian10 image, +# and the build trees by restoring the original image, # then copying the built toolchain from stage 0. -FROM docker.io/library/debian:bullseye-slim +FROM docker.io/library/debian:11-slim COPY --from=3D0 /usr/local /usr/local --=20 2.39.2 From nobody Sun May 5 15:01:05 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1677683867; cv=none; d=zohomail.com; s=zohoarc; b=miwgdDS4wuQG3LQ0GEW41kciR4jAi1/by6H8+ge7TnBQ4JOJV0M49ram1CUuaNTzFmZ6sLnSyXgaXiHvLpmcsKqYsE5H9i+d3pDk4noWsjuGuqaZxMVEJcaSiDF4iPGXSJCUHG90OGEJI+ivdeMox0ez/feBeWXY72scadBC244= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677683867; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=AlywfJTD3Rvj2Q10jhHFgc9EYa6EV7ps8ZtC4o22SlU=; b=iUWnWoVq1Qzf5iUzXoTXUxUaDflbviWtk7k+lOozRMwtGfZ8RMt3r6geuFrMidMWIL5t7xr8OMqUnzAjRjnTnWtxPPrDUeg6fkloVNfC1cHDXB+AjllyCOiynK3ur7ZHK7HmpZzpRxdbArCDszyxqmbSt8/KWFIS1dUpsbFh6N8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1677683867554653.7560486038706; Wed, 1 Mar 2023 07:17:47 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXOBo-0008Gb-VI; Wed, 01 Mar 2023 10:16:20 -0500 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 1pXOBk-0008BG-Jx for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:16:16 -0500 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXOBi-0007dV-9u for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:16:16 -0500 Received: by mail-wr1-x431.google.com with SMTP id h11so1853461wrm.5 for ; Wed, 01 Mar 2023 07:16:13 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id v22-20020a1cf716000000b003e1fee8baacsm20099468wmh.25.2023.03.01.07.16.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 07:16:11 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 450491FFC5; Wed, 1 Mar 2023 15:16:06 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=AlywfJTD3Rvj2Q10jhHFgc9EYa6EV7ps8ZtC4o22SlU=; b=BBTzH+v0EBuhyiKJvSWVJ/lZvSRyXBeg4W5GGfjoS4dClYAxG0AgLE8TGq9PBp1pv4 QoZtcVRih6nvaCRdflvMisqz5zDcbfHrE59avARQeUCxEzSCh17zs/t5q++2vy2H2Mpm +Xo/N7LW7aOl98GDeGSe7OMZbOOaHG40Trir2Lab7W9wq+cnj9g9PafhkPfKuJlm6WVB 6Y8L3ug/HoD9gOsXcHd3trGtv8JNjRdnCTrCfDfgCCwuG6SqXiAysnqxng73bptHE0W2 G7ZYF9W9xaSC/9ABrWXdTK8LvQfDMAK0dDkKrewqSEmYOLhk6aHdu9R1DFqShGdCC0tZ v2Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=AlywfJTD3Rvj2Q10jhHFgc9EYa6EV7ps8ZtC4o22SlU=; b=QO2BiRigv2Swn78TNqZVGrcHB0Dx0B6PE9abMI8tXlL22G4AbMMjb1xqh9uTvxipJ0 4XsiyMEkNEVaML2hcAnqdUL7/R93rd/cZBiqYfXeclLPXbhRnxWPj32hfVuBUK5noIQD X3s4JlEwPyjAik/68AZODJFAvTnrlxSmeN4Xzmy1x/SShN8wKlh3A6PiBjizmqipcGtF wU/g0MUxmfOnuVbg7IHVuLQZVNMlcvjc3nlEzzf1WvOkH3AjX3MtCZGH5DNg+IVQ9KQ9 BejDgyA3887ng+SwZdpy0UDkBiF4IZHgM3BLs1Iqy57gsmWl7onRNAsg7bVd/0zQ7nSM XVIg== X-Gm-Message-State: AO0yUKW51zzLupWyiWT3ddWzUPODfTPNSdZ6PqH3H6a0PIKX7339zPEG iI2oIP8zvRrWDUUX8FUWPRPyCA== X-Google-Smtp-Source: AK7set95qQ5l+l3VVO2TdPBNANfKT6Z6aIO21GPV6YUSGKh1zHoQkWMwFPHQ9CAyvZ5vvzwJtHnQPQ== X-Received: by 2002:a5d:5111:0:b0:2c7:1755:30bb with SMTP id s17-20020a5d5111000000b002c7175530bbmr5229103wrt.10.1677683772869; Wed, 01 Mar 2023 07:16:12 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, Fabiano Rosas , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL v2 15/24] gitlab: Use plain docker in container-template.yml Date: Wed, 1 Mar 2023 15:15:55 +0000 Message-Id: <20230301151604.1948813-16-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230301151604.1948813-1-alex.bennee@linaro.org> References: <20230301151604.1948813-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x431.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 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1677683869769100011 From: Fabiano Rosas Our dockerfiles no longer reference layers from other qemu images so we can now use 'docker build' on them. Also reinstate the caching that was disabled due to bad interactions with certain runners. See commit 6ddc3dc7a8 ("tests/docker: don't use BUILDKIT in GitLab either"). We now believe those issues to be fixed. The COMMON_TAG needed to be fixed for the caching to work. The docker.py script was not using the variable, but constructing the correct URL directly. Signed-off-by: Fabiano Rosas Tested-by: Daniel P. Berrang=C3=A9 Reviewed-by: Daniel P. Berrang=C3=A9 Message-Id: <20230227151110.31455-2-farosas@suse.de> Signed-off-by: Alex Benn=C3=A9e Message-Id: <20230228190653.1602033-16-alex.bennee@linaro.org> diff --git a/.gitlab-ci.d/container-template.yml b/.gitlab-ci.d/container-t= emplate.yml index c434b9c8f3..519b8a9482 100644 --- a/.gitlab-ci.d/container-template.yml +++ b/.gitlab-ci.d/container-template.yml @@ -6,17 +6,16 @@ - docker:dind before_script: - export TAG=3D"$CI_REGISTRY_IMAGE/qemu/$NAME:latest" - - export COMMON_TAG=3D"$CI_REGISTRY/qemu-project/qemu/$NAME:latest" + - export COMMON_TAG=3D"$CI_REGISTRY/qemu-project/qemu/qemu/$NAME:lates= t" - apk add python3 - docker info - docker login $CI_REGISTRY -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PA= SSWORD" script: - echo "TAG:$TAG" - echo "COMMON_TAG:$COMMON_TAG" - - ./tests/docker/docker.py --engine docker build - -t "qemu/$NAME" -f "tests/docker/dockerfiles/$NAME.docker" - -r $CI_REGISTRY/qemu-project/qemu - - docker tag "qemu/$NAME" "$TAG" + - docker build --tag "$TAG" --cache-from "$TAG" --cache-from "$COMMON_= TAG" + --build-arg BUILDKIT_INLINE_CACHE=3D1 + -f "tests/docker/dockerfiles/$NAME.docker" "." - docker push "$TAG" after_script: - docker logout --=20 2.39.2 From nobody Sun May 5 15:01:05 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1677684323; cv=none; d=zohomail.com; s=zohoarc; b=XsUButlhCS3/aRauh+kK9gMj2jnyIlIEJRCjUGNmaFGtQPnG9Eix4dFizDfIfG8nNujoiWwzaOOa5KqVAyP3mqsf8zRpt25z5ouDB9iDSerE3MOfbDph4J/xrjEvde8DZ/YQEfv3es79+4/5E34ezwqFsv8A+g6N0OzLuVzB8dc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677684323; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=VU+h4Jn5F0O340fdlBYKwzTtZ82+fr2bw9CLNQZMJ+k=; b=SFQ6KiLokkjvGEoZ8zII9U12XpGZGPNDgXr1zV0zX427fBcCjnJOuGtpDKZmsa7nt0VeyI5hswCG9XanYJch6Lxfg+MH+oKNggqCzALMS8ugo2QcMYrSrL5tpdB7NzMVmSWQhItQv9UStyFrNw4yb7SeabzvnFnbfxDH0W4bH28= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1677684323837126.19772421127334; Wed, 1 Mar 2023 07:25:23 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXOJy-0000wx-Nr; Wed, 01 Mar 2023 10:24:46 -0500 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 1pXOJi-0000bA-AG for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:24:31 -0500 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXOJd-00011o-CJ for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:24:29 -0500 Received: by mail-wr1-x42a.google.com with SMTP id h11so1882095wrm.5 for ; Wed, 01 Mar 2023 07:24:22 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id n5-20020a5d51c5000000b002c70d97af78sm13163567wrv.85.2023.03.01.07.24.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 07:24:20 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 5F70D1FFC6; Wed, 1 Mar 2023 15:16:06 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=VU+h4Jn5F0O340fdlBYKwzTtZ82+fr2bw9CLNQZMJ+k=; b=VxB1Qel/qphHjwyOcsc/1uZZbzdjP4rues2beQaZys69aa02p1mgMYNwqov0HiKLoz ltbOVd8UKV1VRV95c4MDToMDVJsKll8XeZR9Z2w5CM+5MJSoDh4jVQJ8GnUoGa6vo8ZP bziRQvvFRHGzCJGfYsA6TehX+wG2guJuJg44ps87/lrXifQzhwWONH48YgI7zzTZqbB0 fkbR2e4jVLbSKfTg+39QWpXn7qkyx6JEr7jNX5bty7foenoTiSqRUYX5VEIuMCoiWONr 4wbhIaPOn73wnpX5km2gaCDkZDNVvodM9xLBiuNk4/SbLzlccWlPt+oEeaj5T0tRXrVi OGww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=VU+h4Jn5F0O340fdlBYKwzTtZ82+fr2bw9CLNQZMJ+k=; b=qDBd9vqLTL5O2PvQMTGtn4+mJ9l0WcpJb4Um7s07CLA2sjCnX7V3FBJ6MvgQFYo/oN ap4kxYl3TWSNW4ok6+Wr8TxlXJjPYTk02N8jiN5CEbZj9mVCmDJDNHh66yGeYNUOBt4G E85PLDk/469xdjLVrXij4KVxPAnezdp/U6z7uA3IILU1UETxn5eEVPRBo+pFmNADPEH6 Fa5rpoC/KNAbNlOkOAp4llOso6mnuhEl16jzUbQJV+fR3uQifOE+lKLxOV1oeHZkBC0G gabncdj6+/yx6pPz9nrwcD81Ao/thdYJvA0dDQQuSV9rkCYMTy/SOrF65+yZcC2pTxyt RiBg== X-Gm-Message-State: AO0yUKWtNYOPiz++MLOTNkKWk8mNV7OdZf5kbdxu5zJRJR9pp+3xcauA 5G3xNZ8O2wU9WtmB/XRu0Etm5lP/po+0wA2N X-Google-Smtp-Source: AK7set9tqeTLTKKaD7/efCzDpkKf1T3JA6w2s0/ze1OizutHvmkXVUDAXlOmZyKD8Yz94rYPNnzG+Q== X-Received: by 2002:a5d:4ccd:0:b0:2c7:19ad:8141 with SMTP id c13-20020a5d4ccd000000b002c719ad8141mr5142025wrt.52.1677684261841; Wed, 01 Mar 2023 07:24:21 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, "Richard W.M. Jones" , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Alexander Bulekov , Darren Kenny , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Thomas Huth , Paolo Bonzini , Fam Zheng , Bandan Das , Stefan Hajnoczi , Qiuhao Li , Laurent Vivier Subject: [PULL v2 16/24] tests: Ensure TAP version is printed before other messages Date: Wed, 1 Mar 2023 15:15:56 +0000 Message-Id: <20230301151604.1948813-17-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230301151604.1948813-1-alex.bennee@linaro.org> References: <20230301151604.1948813-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42a.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 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1677684326007100002 From: "Richard W.M. Jones" These two tests were failing with this error: stderr: TAP parsing error: version number must be on the first line [...] Unknown TAP version. The first line MUST be `TAP version `. Assuming= version 12. This can be fixed by ensuring we always call g_test_init first in the body of main. Thanks: Daniel Berrange, for diagnosing the problem Signed-off-by: Richard W.M. Jones Reviewed-by: Daniel P. Berrang=C3=A9 Tested-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Alexander Bulekov Reviewed-by: Darren Kenny Message-Id: <20230227174019.1164205-1-rjones@redhat.com> Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Thomas Huth Message-Id: <20230228190653.1602033-17-alex.bennee@linaro.org> diff --git a/tests/qtest/fuzz-lsi53c895a-test.c b/tests/qtest/fuzz-lsi53c89= 5a-test.c index a9254b455d..2012bd54b7 100644 --- a/tests/qtest/fuzz-lsi53c895a-test.c +++ b/tests/qtest/fuzz-lsi53c895a-test.c @@ -112,12 +112,12 @@ static void test_lsi_do_dma_empty_queue(void) =20 int main(int argc, char **argv) { + g_test_init(&argc, &argv, NULL); + if (!qtest_has_device("lsi53c895a")) { return 0; } =20 - g_test_init(&argc, &argv, NULL); - qtest_add_func("fuzz/lsi53c895a/lsi_do_dma_empty_queue", test_lsi_do_dma_empty_queue); =20 diff --git a/tests/qtest/rtl8139-test.c b/tests/qtest/rtl8139-test.c index 1beb83805c..4bd240e9ee 100644 --- a/tests/qtest/rtl8139-test.c +++ b/tests/qtest/rtl8139-test.c @@ -207,9 +207,10 @@ int main(int argc, char **argv) verbosity_level =3D atoi(v_env); } =20 + g_test_init(&argc, &argv, NULL); + qtest_start("-device rtl8139"); =20 - g_test_init(&argc, &argv, NULL); qtest_add_func("/rtl8139/nop", nop); qtest_add_func("/rtl8139/timer", test_init); =20 --=20 2.39.2 From nobody Sun May 5 15:01:05 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1677684414; cv=none; d=zohomail.com; s=zohoarc; b=MhVX0n3mAerm080S8nLcjO6ZilBerFPLMaGM7YOzylwijyxojMeC4wsIX+Zq6zhr8pmcRlEiSGE6OFhcmHREkc1BCyZrpduIOwI2Gbgo9mQyUMgO7DqDQdKnYMsD9hGeBig25A7Yx2spXXTNgLP7zRPlGSg84LhDWFg1SI6+8M4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677684414; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=mkocC7TUPUcXj7ll+UawvcjBLr7Elh98/8Jity3e0Lo=; b=YQkaZtGaJroU2V9XjX3tbG5BIVmkNUFE5tQ04XrUKf/4p01ww5PRQda3GZRYOZ/9kyyqqDPryy8mNzU/Bgt21MP/2laoOwF/YCsBCh80i5A/d6UK2t3SYgSmHGn4OJV9ZprVg3oDYU9ZuwawypUqZ0xX9Mdw3Y8nX+6tazuZFag= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1677684414820880.1606441619364; Wed, 1 Mar 2023 07:26:54 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXOJr-0000nc-0B; Wed, 01 Mar 2023 10:24:39 -0500 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 1pXOJi-0000bC-DQ for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:24:31 -0500 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXOJd-000127-DG for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:24:29 -0500 Received: by mail-wm1-x335.google.com with SMTP id k37so8866160wms.0 for ; Wed, 01 Mar 2023 07:24:24 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id m34-20020a05600c3b2200b003df5be8987esm21926423wms.20.2023.03.01.07.24.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 07:24:23 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 74C601FFC7; Wed, 1 Mar 2023 15:16:06 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=mkocC7TUPUcXj7ll+UawvcjBLr7Elh98/8Jity3e0Lo=; b=xACdqqHxQnILHAndgk8GRvdVp+IjQac3Hz8YUSo+1afLGVlYifP8tRysxJhGY6F36f eZHzwgJzLMYFOTMiVQgQYp/MLYMN22qYwUKHFjZlqNWHBl15daU+C3v1CjbLAkg0qKcm KKhJxZRxW7gnuns+P9hIeSgaZ1dz3RdEkGXvi4YpjagxPRWBNa1f0YnULbNbPWotY3kH tOqycUXimn+IXGPdB2DgWWX3peD0d2lJ65l8uBGOle7TZySrP9nkzWiuNKot39lb9PnA am+EV/ovmxkI4cUHH61bZuKAbmYfwSUdSengedWmH3EMy53A9L598q2BmhmK8a88dz9X pvqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=mkocC7TUPUcXj7ll+UawvcjBLr7Elh98/8Jity3e0Lo=; b=KQJpK6syKN2GMAcNuiq3Aj4lVDmKU5XUHWBoxEJnNKzZRfoiI1539zzWvKn7Iybw8S B12oWLXDJkFp6WkghFeiEGTskLHlzrYSuzNys+PfvdoSYdPDne0kq+WCn/DVtAu7HmAV qD25yzIs3bjIjTLSVxuP+vzgw+dIv4QIXMYdhRd3JkXaWQ11E8ttx5pswND/KzCIu4s0 SgHh+HU7BBm/usqbwPfIntE7KmlntTaRjc8Xg1OGNVg2zE9IzG+8Xz/1FdcsHwRliJGh AcTrdsP3m5K1crFh4hZdZMp5yEbappd764dTaDRx3XX/nShqZHGJ5n8Hw9LjrKWA2GKU oegA== X-Gm-Message-State: AO0yUKUwsIDko5NRKOwRq9tCRhhHZlFj7pyEmc9anI7M9jGlVkISip01 IaRXNuMr5ImV52cYMpOn7cj1tw== X-Google-Smtp-Source: AK7set/5xWjApNj1k67zztDQBpdxc9N43woYu69SrnwIHoZdHxzAeEAfU2xSh4cmA1djbK0pPv3Hgg== X-Received: by 2002:a05:600c:511c:b0:3e8:35a2:6abf with SMTP id o28-20020a05600c511c00b003e835a26abfmr4942024wms.23.1677684263949; Wed, 01 Mar 2023 07:24:23 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , Paolo Bonzini , Thomas Huth Subject: [PULL v2 17/24] configure: expose the direct container command Date: Wed, 1 Mar 2023 15:15:57 +0000 Message-Id: <20230301151604.1948813-18-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230301151604.1948813-1-alex.bennee@linaro.org> References: <20230301151604.1948813-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x335.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 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1677684416033100009 In the process of migrating away from using docker.py to build our containers we need to expose the command to the build environment. The script is still a useful way to probe which command works though. Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Daniel P. Berrang=C3=A9 Signed-off-by: Alex Benn=C3=A9e Message-Id: <20230228190653.1602033-18-alex.bennee@linaro.org> diff --git a/configure b/configure index 2a8a9be8a1..f5cfcd566e 100755 --- a/configure +++ b/configure @@ -1790,6 +1790,7 @@ fi # functions to probe cross compilers =20 container=3D"no" +runc=3D"" if test $use_containers =3D "yes" && (has "docker" || has "podman"); then case $($python "$source_path"/tests/docker/docker.py probe) in *docker) container=3Ddocker ;; @@ -1798,6 +1799,7 @@ if test $use_containers =3D "yes" && (has "docker" ||= has "podman"); then esac if test "$container" !=3D "no"; then docker_py=3D"$python $source_path/tests/docker/docker.py --engine = $container" + runc=3D$($python "$source_path"/tests/docker/docker.py probe) fi fi =20 @@ -2397,6 +2399,7 @@ fi =20 if test "$container" !=3D no; then echo "ENGINE=3D$container" >> $config_host_mak + echo "RUNC=3D$runc" >> $config_host_mak fi echo "ROMS=3D$roms" >> $config_host_mak echo "MAKE=3D$make" >> $config_host_mak --=20 2.39.2 From nobody Sun May 5 15:01:05 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1677683964; cv=none; d=zohomail.com; s=zohoarc; b=ir+MNFejJpngqKGhGbtt4CNZ5Lw1fP4c7LukSVGqok9Dmz6aq0jyz7taHTiIm1AFFxMUu9MpP38cIRiXKhBl/7/zh6I5qsFHLcyzZgsJQLdXJHmZxGM0Pe+9Nxsc5vFl/Q7USK9o4z8Fbij+X3DYfJK1H+KloSk2b3xrbI8BlFU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677683964; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=vKVidY093QJYXdvE0+bPQ5lAt0S/UjiFPs5Xw8iCLlc=; b=aqd0cFgq9fIf4UKvL+l+fQZmDMd+ei+RL2gf9xXlZRqFrl8KAbsIDWKjQtSV+rCEXFpgdlFlNZkSZW/2uQf7xDPmbZ/iTBx9uqIHVv9yLAnkXtdlQn+SjV0rLzitBMpM4uEfo+pLhaqhhpbzVWTrpI+AnReZGIWmRr/S2gm6x+0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1677683964223880.2391657146153; Wed, 1 Mar 2023 07:19:24 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXOCK-0000J5-K2; Wed, 01 Mar 2023 10:16:52 -0500 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 1pXOBm-0008Di-2x for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:16:18 -0500 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXOBj-0007e9-4T for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:16:17 -0500 Received: by mail-wr1-x430.google.com with SMTP id e13so2076366wro.10 for ; Wed, 01 Mar 2023 07:16:14 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id u4-20020adff884000000b002c70851bfcasm12869185wrp.28.2023.03.01.07.16.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 07:16:11 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id B37561FFBB; Wed, 1 Mar 2023 15:16:06 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=vKVidY093QJYXdvE0+bPQ5lAt0S/UjiFPs5Xw8iCLlc=; b=ske9CZw1MkqGRf717QURBa+OTPlCktnz31agUUc8F8NrRRO1HlPyghH4llRa6Lmetz IPMwk/k21ld3iXZ7Ir+Hy6+OEL3ybyD/mhz6Qoj3iuYFQvnV9TIMHzN8lEWmkokvKqzz 6GQbKPMc/NwZcCciE85ueIsn6MnnAGVuKRUHhOEuUXN8c5GqJ5PAHF7jAyuz3mv3jVlk FArCDraYt+TfB6pnlRHFyVztqRBuZVtms2D6b8zdaBZigIfzMXZ8uWsqay25IgUvvQL4 MJJsEHcQ975WHwjXH1LpHH1cAXyuDGYKzAVCpJ5dMddWyiTDQ8VPi2W5ZPLBJ/mkb2nF EB/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=vKVidY093QJYXdvE0+bPQ5lAt0S/UjiFPs5Xw8iCLlc=; b=76ZsiqfsfWafVyrM7WTOOgqQDzOZbRCB0qQfkVx++IxBnq2XmF9T2GTNeMOfQpz9Zh Hry5JLIXNuSyqBtLGMJUZhEPoSWoQAVpKjwUxY7U/nO5FV4ivXM5a9kz2cqMfTJeT/ul bADRPDL++8W8txcguevCSNUi55NP4O+FGOfk0Rv6w/xEV3t0yEcR1xxus3mTrgfCzNK+ 6KecjtR1mso2i4JRAda9VBu0971WDmq1UbR2AmkInQihxXiBHdQ/LiQB0hhyHcnsCasg pjuudRRGQCxZ80kTGYnwduwOyDDHbiV2ryiUY1Rto1wIr3mXvmawNy1SFyI7oRG/pNy6 zabQ== X-Gm-Message-State: AO0yUKUJHlhIsay6ZHxubLdxOEoGV8Vg4rAvSQiimC913dy1yeohgPF/ 9xDlbM2SBSOWXeIi1xEAt57zIA== X-Google-Smtp-Source: AK7set/FFc/D0SJ0ChABKpa1B+gnSo81wkPG1pe1EPC+l6Dy4v/xLvN1+OOkg5ZXPmzHoDGPxBoVkQ== X-Received: by 2002:a5d:6803:0:b0:2c3:f8b8:87 with SMTP id w3-20020a5d6803000000b002c3f8b80087mr4800574wru.25.1677683773624; Wed, 01 Mar 2023 07:16:13 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL v2 18/24] tests/lcitool: append user setting stanza to dockerfiles Date: Wed, 1 Mar 2023 15:15:58 +0000 Message-Id: <20230301151604.1948813-19-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230301151604.1948813-1-alex.bennee@linaro.org> References: <20230301151604.1948813-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x430.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 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1677683964544100001 For the cross-compilation use-case it is important to add the host user to the dockerfile so we can map them to the docker environment when cross-building files. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Daniel P. Berrang=C3=A9 Message-Id: <20230228190653.1602033-19-alex.bennee@linaro.org> diff --git a/tests/docker/dockerfiles/alpine.docker b/tests/docker/dockerfi= les/alpine.docker index 7589f6c6ed..799932bcc9 100644 --- a/tests/docker/dockerfiles/alpine.docker +++ b/tests/docker/dockerfiles/alpine.docker @@ -124,3 +124,8 @@ ENV LANG "en_US.UTF-8" ENV MAKE "/usr/bin/make" ENV NINJA "/usr/bin/ninja" ENV PYTHON "/usr/bin/python3" +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/centos8.docker b/tests/docker/dockerf= iles/centos8.docker index bab67ccd41..d87a94b97b 100644 --- a/tests/docker/dockerfiles/centos8.docker +++ b/tests/docker/dockerfiles/centos8.docker @@ -138,3 +138,8 @@ ENV LANG "en_US.UTF-8" ENV MAKE "/usr/bin/make" ENV NINJA "/usr/bin/ninja" ENV PYTHON "/usr/bin/python3.8" +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/debian-amd64-cross.docker b/tests/doc= ker/dockerfiles/debian-amd64-cross.docker index 856db95100..5d03b5c22d 100644 --- a/tests/docker/dockerfiles/debian-amd64-cross.docker +++ b/tests/docker/dockerfiles/debian-amd64-cross.docker @@ -169,3 +169,8 @@ ENV ABI "x86_64-linux-gnu" ENV MESON_OPTS "--cross-file=3Dx86_64-linux-gnu" ENV QEMU_CONFIGURE_OPTS --cross-prefix=3Dx86_64-linux-gnu- ENV DEF_TARGET_LIST x86_64-softmmu,x86_64-linux-user,i386-softmmu,i386-lin= ux-user +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/debian-amd64.docker b/tests/docker/do= ckerfiles/debian-amd64.docker index e3dba71ad5..febc46e700 100644 --- a/tests/docker/dockerfiles/debian-amd64.docker +++ b/tests/docker/dockerfiles/debian-amd64.docker @@ -155,3 +155,8 @@ RUN git clone https://github.com/luigirizzo/netmap.git = /usr/src/netmap RUN cd /usr/src/netmap && git checkout v11.3 RUN cd /usr/src/netmap/LINUX && ./configure --no-drivers --no-apps --kerne= l-dir=3D$(ls -d /usr/src/linux-headers-*-amd64) && make install ENV QEMU_CONFIGURE_OPTS --enable-netmap +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/debian-arm64-cross.docker b/tests/doc= ker/dockerfiles/debian-arm64-cross.docker index b00e9e9bcf..b9501a21bc 100644 --- a/tests/docker/dockerfiles/debian-arm64-cross.docker +++ b/tests/docker/dockerfiles/debian-arm64-cross.docker @@ -168,3 +168,8 @@ ENV ABI "aarch64-linux-gnu" ENV MESON_OPTS "--cross-file=3Daarch64-linux-gnu" ENV QEMU_CONFIGURE_OPTS --cross-prefix=3Daarch64-linux-gnu- ENV DEF_TARGET_LIST aarch64-softmmu,aarch64-linux-user +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/debian-armel-cross.docker b/tests/doc= ker/dockerfiles/debian-armel-cross.docker index fb1129f256..f21742ede5 100644 --- a/tests/docker/dockerfiles/debian-armel-cross.docker +++ b/tests/docker/dockerfiles/debian-armel-cross.docker @@ -167,3 +167,8 @@ ENV ABI "arm-linux-gnueabi" ENV MESON_OPTS "--cross-file=3Darm-linux-gnueabi" ENV QEMU_CONFIGURE_OPTS --cross-prefix=3Darm-linux-gnueabi- ENV DEF_TARGET_LIST arm-softmmu,arm-linux-user,armeb-linux-user +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/debian-armhf-cross.docker b/tests/doc= ker/dockerfiles/debian-armhf-cross.docker index 7a2b864a38..decdeda6f2 100644 --- a/tests/docker/dockerfiles/debian-armhf-cross.docker +++ b/tests/docker/dockerfiles/debian-armhf-cross.docker @@ -168,3 +168,8 @@ ENV ABI "arm-linux-gnueabihf" ENV MESON_OPTS "--cross-file=3Darm-linux-gnueabihf" ENV QEMU_CONFIGURE_OPTS --cross-prefix=3Darm-linux-gnueabihf- ENV DEF_TARGET_LIST arm-softmmu,arm-linux-user +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/debian-mips64el-cross.docker b/tests/= docker/dockerfiles/debian-mips64el-cross.docker index 5a3340e964..1df05fcf20 100644 --- a/tests/docker/dockerfiles/debian-mips64el-cross.docker +++ b/tests/docker/dockerfiles/debian-mips64el-cross.docker @@ -165,3 +165,8 @@ ENV ABI "mips64el-linux-gnuabi64" ENV MESON_OPTS "--cross-file=3Dmips64el-linux-gnuabi64" ENV QEMU_CONFIGURE_OPTS --cross-prefix=3Dmips64el-linux-gnuabi64- ENV DEF_TARGET_LIST mips64el-softmmu,mips64el-linux-user +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/debian-mipsel-cross.docker b/tests/do= cker/dockerfiles/debian-mipsel-cross.docker index 422fdebe8f..019b8dcaff 100644 --- a/tests/docker/dockerfiles/debian-mipsel-cross.docker +++ b/tests/docker/dockerfiles/debian-mipsel-cross.docker @@ -165,3 +165,8 @@ ENV ABI "mipsel-linux-gnu" ENV MESON_OPTS "--cross-file=3Dmipsel-linux-gnu" ENV QEMU_CONFIGURE_OPTS --cross-prefix=3Dmipsel-linux-gnu- ENV DEF_TARGET_LIST mipsel-softmmu,mipsel-linux-user +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/debian-ppc64el-cross.docker b/tests/d= ocker/dockerfiles/debian-ppc64el-cross.docker index 78d7ae6211..3ceab4c502 100644 --- a/tests/docker/dockerfiles/debian-ppc64el-cross.docker +++ b/tests/docker/dockerfiles/debian-ppc64el-cross.docker @@ -167,3 +167,8 @@ ENV ABI "powerpc64le-linux-gnu" ENV MESON_OPTS "--cross-file=3Dpowerpc64le-linux-gnu" ENV QEMU_CONFIGURE_OPTS --cross-prefix=3Dpowerpc64le-linux-gnu- ENV DEF_TARGET_LIST ppc64-softmmu,ppc64-linux-user +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/debian-s390x-cross.docker b/tests/doc= ker/dockerfiles/debian-s390x-cross.docker index d06ea3605a..6c216dde48 100644 --- a/tests/docker/dockerfiles/debian-s390x-cross.docker +++ b/tests/docker/dockerfiles/debian-s390x-cross.docker @@ -166,3 +166,8 @@ ENV ABI "s390x-linux-gnu" ENV MESON_OPTS "--cross-file=3Ds390x-linux-gnu" ENV QEMU_CONFIGURE_OPTS --cross-prefix=3Ds390x-linux-gnu- ENV DEF_TARGET_LIST s390x-softmmu,s390x-linux-user +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/fedora-win32-cross.docker b/tests/doc= ker/dockerfiles/fedora-win32-cross.docker index 5b66b0e256..63a0000936 100644 --- a/tests/docker/dockerfiles/fedora-win32-cross.docker +++ b/tests/docker/dockerfiles/fedora-win32-cross.docker @@ -101,3 +101,8 @@ ENV ABI "i686-w64-mingw32" ENV MESON_OPTS "--cross-file=3D/usr/share/mingw/toolchain-mingw32.meson" ENV QEMU_CONFIGURE_OPTS --cross-prefix=3Di686-w64-mingw32- ENV DEF_TARGET_LIST i386-softmmu +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/fedora-win64-cross.docker b/tests/doc= ker/dockerfiles/fedora-win64-cross.docker index b94fd63cca..531e539e85 100644 --- a/tests/docker/dockerfiles/fedora-win64-cross.docker +++ b/tests/docker/dockerfiles/fedora-win64-cross.docker @@ -101,3 +101,8 @@ ENV ABI "x86_64-w64-mingw32" ENV MESON_OPTS "--cross-file=3D/usr/share/mingw/toolchain-mingw64.meson" ENV QEMU_CONFIGURE_OPTS --cross-prefix=3Dx86_64-w64-mingw32- ENV DEF_TARGET_LIST x86_64-softmmu +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/fedora.docker b/tests/docker/dockerfi= les/fedora.docker index 8e06d080b8..4dd1fce890 100644 --- a/tests/docker/dockerfiles/fedora.docker +++ b/tests/docker/dockerfiles/fedora.docker @@ -146,3 +146,8 @@ ENV LANG "en_US.UTF-8" ENV MAKE "/usr/bin/make" ENV NINJA "/usr/bin/ninja" ENV PYTHON "/usr/bin/python3" +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/opensuse-leap.docker b/tests/docker/d= ockerfiles/opensuse-leap.docker index 9bf9b50dad..f39e8a4d44 100644 --- a/tests/docker/dockerfiles/opensuse-leap.docker +++ b/tests/docker/dockerfiles/opensuse-leap.docker @@ -135,3 +135,8 @@ ENV LANG "en_US.UTF-8" ENV MAKE "/usr/bin/make" ENV NINJA "/usr/bin/ninja" ENV PYTHON "/usr/bin/python3.9" +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/ubuntu2004.docker b/tests/docker/dock= erfiles/ubuntu2004.docker index 95d951953f..a6f7071351 100644 --- a/tests/docker/dockerfiles/ubuntu2004.docker +++ b/tests/docker/dockerfiles/ubuntu2004.docker @@ -146,3 +146,8 @@ ENV LANG "en_US.UTF-8" ENV MAKE "/usr/bin/make" ENV NINJA "/usr/bin/ninja" ENV PYTHON "/usr/bin/python3" +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/ubuntu2204.docker b/tests/docker/dock= erfiles/ubuntu2204.docker index 30b9e56793..6fea090f02 100644 --- a/tests/docker/dockerfiles/ubuntu2204.docker +++ b/tests/docker/dockerfiles/ubuntu2204.docker @@ -145,3 +145,8 @@ ENV LANG "en_US.UTF-8" ENV MAKE "/usr/bin/make" ENV NINJA "/usr/bin/ninja" ENV PYTHON "/usr/bin/python3" +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/lcitool/refresh b/tests/lcitool/refresh index cc9e34ac87..c0d7ad5516 100755 --- a/tests/lcitool/refresh +++ b/tests/lcitool/refresh @@ -53,6 +53,15 @@ def generate(filename, cmd, trailer): content +=3D trailer atomic_write(filename, content) =20 +# Optional user setting, this will always be the last thing added +# so maximise the number of layers that are cached +add_user_mapping =3D [ + "# As a final step configure the user (if env is defined)", + "ARG USER", + "ARG UID", + "RUN if [ \"${USER}\" ]; then \\", + " id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi\n" +] =20 def generate_dockerfile(host, target, cross=3DNone, trailer=3DNone): filename =3D Path(src_dir, "tests", "docker", "dockerfiles", host + ".= docker") @@ -60,6 +69,12 @@ def generate_dockerfile(host, target, cross=3DNone, trai= ler=3DNone): if cross is not None: cmd.extend(["--cross", cross]) cmd.extend([target, "qemu"]) + + if trailer is not None: + trailer +=3D "\n".join(add_user_mapping) + else: + trailer =3D "\n".join(add_user_mapping) + generate(filename, cmd, trailer) =20 =20 --=20 2.39.2 From nobody Sun May 5 15:01:05 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1677684410; cv=none; d=zohomail.com; s=zohoarc; b=JPFvZB6fmAyoRtZ7N7419U+zYwSGr5bOd3s+nD4oWZpGjicX8cw+7+i/VZ8MEWsJ2prCgx5LL6awoerS+Ajg6FCAV61g2F7nRJsc63SW8jrq+GI6C37y2EHFpGF+xmgSPjDcigQGw5x7BskkG3zO8J+3dpzbM3Icx5eIpFA3JzY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677684410; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=9qPsxckS43QqdU4LjR0u39e6/QeXRK45RZ0C9QrqQ8M=; b=B5at4AXfOKsEz1daWWHgzrz+CBGpCZImCfRXQ97mM4QrW+ZWkUq//Ssvr/Jzz69EUABMHsUV+ZujdfIcDG7kPdfmGF5Why5cVHg2DAUYRga56pO2W67vQ8aTB5rRcf9DiqDE+rPkRib7ani+8cUliJkASS4CsKjxYixPPnXHAV8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1677684410131594.6527620372592; Wed, 1 Mar 2023 07:26:50 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXOJr-0000na-0Q; Wed, 01 Mar 2023 10:24:39 -0500 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 1pXOJi-0000b7-4r for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:24:31 -0500 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXOJd-00011x-BA for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:24:29 -0500 Received: by mail-wm1-x32b.google.com with SMTP id j3so8831000wms.2 for ; Wed, 01 Mar 2023 07:24:24 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id z14-20020a05600c220e00b003e11f280b8bsm19492249wml.44.2023.03.01.07.24.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 07:24:20 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 04ADB1FFBC; Wed, 1 Mar 2023 15:16:07 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=9qPsxckS43QqdU4LjR0u39e6/QeXRK45RZ0C9QrqQ8M=; b=qizKCIldWGYTnEdOzDMRfWQ+nVUCIglaZAZyc6+mameWoP3F+VqxVMl889D1BLGO+I Wzvxix8qVuD70ceTc8Ay2R6+CH+mV8a7ult3OLP8y4//euoB4qeQSyU0ROUWIloCZK4z JHqPUqvTikaECBD0MtOG1c4PpEMXWrJizqJg2//4lEkfutIDQVYnm8oZbjzIgWTBGqu3 1qgJqnWN5Ag66CE6AV1ABD5M4o2A5OeTKFoJzfvOfOQlmabtAn7WvLEVUG3LlAeaxJfc sAt058HSkOD1pHtVNR556b9/4/n8QOTG+BcIUiFrsNG6w9tBrI99x1NySHTEZp9ivCKt 292A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=9qPsxckS43QqdU4LjR0u39e6/QeXRK45RZ0C9QrqQ8M=; b=SBKfda9vKg/HPl9RN0hb6rI2hHXcgpCLQ6xZZx6R7rcMGM6iEWoT+4IhbEqpwWF4SX KiFN7t+S/oG95WwTATfUSstfvzhmPSyvAp2rnW6Xv0cGey4G/pkjMXTTmllasAgoXykp Qhoc9P2iG0ZK+oBXZfYm3WBoZh2R1xmpSD5GhoAoW9IC7mi3I/Kdz8SI0MImRXWdviUv dgFAZcKM/3+Xd5FcjHGJ+HGq+RXl0krLiPiPO7Qg42L2xwfUMj62TumNm3zSdYt6abhX hxumNXTGHSXiaBtoMCvwYVFQCXgqbOb+q6BcEQrMbGp0BqMOKerRVGr34cQWp7VMxG5O GH8A== X-Gm-Message-State: AO0yUKUYAzylO8PkM2PvkBHh6+JZU8/rWRxE1v3iB5nxXan1pPNS/2tC Q4OLzGwdwlE+omNvfPps7U8tAQ== X-Google-Smtp-Source: AK7set+RLxCxx2CiJPHoOGhROPplLzYL0Frv3QoAIdcLf3FzP1hbqlwZeH02/jTCIIg16CQ2OWv07Q== X-Received: by 2002:a05:600c:3555:b0:3ea:f6c4:3060 with SMTP id i21-20020a05600c355500b003eaf6c43060mr5235625wmq.18.1677684262960; Wed, 01 Mar 2023 07:24:22 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL v2 19/24] tests/docker: add USER stanzas to non-lci images Date: Wed, 1 Mar 2023 15:15:59 +0000 Message-Id: <20230301151604.1948813-20-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230301151604.1948813-1-alex.bennee@linaro.org> References: <20230301151604.1948813-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32b.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 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1677684412038100003 These are flat but not generated by lcitool so we need to manually update them with the `useradd` stanza. Reviewed-by: Daniel P. Berrang=C3=A9 Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Alex Benn=C3=A9e Message-Id: <20230228190653.1602033-20-alex.bennee@linaro.org> diff --git a/tests/docker/dockerfiles/debian-all-test-cross.docker b/tests/= docker/dockerfiles/debian-all-test-cross.docker index 8dc5e1b5de..981e9bdc7b 100644 --- a/tests/docker/dockerfiles/debian-all-test-cross.docker +++ b/tests/docker/dockerfiles/debian-all-test-cross.docker @@ -61,3 +61,8 @@ RUN DEBIAN_FRONTEND=3Dnoninteractive eatmydata \ =20 ENV QEMU_CONFIGURE_OPTS --disable-system --disable-docs --disable-tools ENV DEF_TARGET_LIST aarch64-linux-user,alpha-linux-user,arm-linux-user,hpp= a-linux-user,i386-linux-user,m68k-linux-user,mips-linux-user,mips64-linux-u= ser,mips64el-linux-user,mipsel-linux-user,ppc-linux-user,ppc64-linux-user,p= pc64le-linux-user,riscv64-linux-user,s390x-linux-user,sh4-linux-user,sparc6= 4-linux-user +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/debian-alpha-cross.docker b/tests/doc= ker/dockerfiles/debian-alpha-cross.docker index 4eeb43c78a..7fa7bf1bde 100644 --- a/tests/docker/dockerfiles/debian-alpha-cross.docker +++ b/tests/docker/dockerfiles/debian-alpha-cross.docker @@ -12,3 +12,8 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ eatmydata apt-get install --no-install-recommends -y \ gcc-alpha-linux-gnu \ libc6.1-dev-alpha-cross +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/debian-hexagon-cross.docker b/tests/d= ocker/dockerfiles/debian-hexagon-cross.docker index 8a0d748343..5308ccb8fe 100644 --- a/tests/docker/dockerfiles/debian-hexagon-cross.docker +++ b/tests/docker/dockerfiles/debian-hexagon-cross.docker @@ -33,3 +33,8 @@ ENV TOOLCHAIN_URL https://codelinaro.jfrog.io/artifactory= /codelinaro-toolchain-f =20 RUN curl -#SL "$TOOLCHAIN_URL" | tar -xJC "$TOOLCHAIN_INSTALL" ENV PATH $PATH:${TOOLCHAIN_INSTALL}/${TOOLCHAIN_BASENAME}/x86_64-linux-gnu= /bin +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/debian-hppa-cross.docker b/tests/dock= er/dockerfiles/debian-hppa-cross.docker index af1c8403d8..dd47ffdfa4 100644 --- a/tests/docker/dockerfiles/debian-hppa-cross.docker +++ b/tests/docker/dockerfiles/debian-hppa-cross.docker @@ -12,3 +12,8 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ eatmydata apt-get install --no-install-recommends -y \ gcc-hppa-linux-gnu \ libc6-dev-hppa-cross +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/debian-loongarch-cross.docker b/tests= /docker/dockerfiles/debian-loongarch-cross.docker index a8e8e98909..9d957547b5 100644 --- a/tests/docker/dockerfiles/debian-loongarch-cross.docker +++ b/tests/docker/dockerfiles/debian-loongarch-cross.docker @@ -25,3 +25,8 @@ RUN curl -#SL https://github.com/loongson/build-tools/rel= eases/download/2022.05. =20 ENV PATH $PATH:/opt/cross-tools/bin ENV LD_LIBRARY_PATH /opt/cross-tools/lib:/opt/cross-tools/loongarch64-unkn= own-linux-gnu/lib:$LD_LIBRARY_PATH +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/debian-m68k-cross.docker b/tests/dock= er/dockerfiles/debian-m68k-cross.docker index dded71c5d2..25dd1c1e68 100644 --- a/tests/docker/dockerfiles/debian-m68k-cross.docker +++ b/tests/docker/dockerfiles/debian-m68k-cross.docker @@ -12,3 +12,8 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ eatmydata apt-get install --no-install-recommends -y \ gcc-m68k-linux-gnu \ libc6-dev-m68k-cross +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/debian-mips-cross.docker b/tests/dock= er/dockerfiles/debian-mips-cross.docker index 7b55f0f3b2..2cbc568ed1 100644 --- a/tests/docker/dockerfiles/debian-mips-cross.docker +++ b/tests/docker/dockerfiles/debian-mips-cross.docker @@ -12,3 +12,8 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ eatmydata apt-get install --no-install-recommends -y \ gcc-mips-linux-gnu \ libc6-dev-mips-cross +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/debian-mips64-cross.docker b/tests/do= cker/dockerfiles/debian-mips64-cross.docker index afcff9726f..ba965cf564 100644 --- a/tests/docker/dockerfiles/debian-mips64-cross.docker +++ b/tests/docker/dockerfiles/debian-mips64-cross.docker @@ -12,3 +12,8 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ eatmydata apt-get install --no-install-recommends -y \ gcc-mips64-linux-gnuabi64 \ libc6-dev-mips64-cross +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/debian-native.docker b/tests/docker/d= ockerfiles/debian-native.docker index 8dd033097c..abac7d7cd7 100644 --- a/tests/docker/dockerfiles/debian-native.docker +++ b/tests/docker/dockerfiles/debian-native.docker @@ -47,3 +47,8 @@ RUN apt update && \ =20 ENV QEMU_CONFIGURE_OPTS $QEMU_CONFIGURE_OPTS ENV DEF_TARGET_LIST "none" +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/debian-powerpc-test-cross.docker b/te= sts/docker/dockerfiles/debian-powerpc-test-cross.docker index d6b2909cc4..23779413d3 100644 --- a/tests/docker/dockerfiles/debian-powerpc-test-cross.docker +++ b/tests/docker/dockerfiles/debian-powerpc-test-cross.docker @@ -16,4 +16,8 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ libc6-dev-ppc64-cross \ gcc-10-powerpc64le-linux-gnu \ libc6-dev-ppc64el-cross - +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/debian-riscv64-cross.docker b/tests/d= ocker/dockerfiles/debian-riscv64-cross.docker index 3daf93968a..803afb9573 100644 --- a/tests/docker/dockerfiles/debian-riscv64-cross.docker +++ b/tests/docker/dockerfiles/debian-riscv64-cross.docker @@ -50,3 +50,8 @@ RUN apt update && \ # Specify the cross prefix for this image (see tests/docker/common.rc) ENV QEMU_CONFIGURE_OPTS --cross-prefix=3Driscv64-linux-gnu- ENV DEF_TARGET_LIST riscv64-softmmu,riscv64-linux-user +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/debian-riscv64-test-cross.docker b/te= sts/docker/dockerfiles/debian-riscv64-test-cross.docker index e5f83a5aeb..6e631295bc 100644 --- a/tests/docker/dockerfiles/debian-riscv64-test-cross.docker +++ b/tests/docker/dockerfiles/debian-riscv64-test-cross.docker @@ -12,3 +12,8 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ eatmydata apt-get install --no-install-recommends -y \ gcc-riscv64-linux-gnu \ libc6-dev-riscv64-cross +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/debian-sh4-cross.docker b/tests/docke= r/dockerfiles/debian-sh4-cross.docker index d48ed9065f..6bd8171d33 100644 --- a/tests/docker/dockerfiles/debian-sh4-cross.docker +++ b/tests/docker/dockerfiles/debian-sh4-cross.docker @@ -12,3 +12,8 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ eatmydata apt-get install --no-install-recommends -y \ gcc-sh4-linux-gnu \ libc6-dev-sh4-cross +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/debian-sparc64-cross.docker b/tests/d= ocker/dockerfiles/debian-sparc64-cross.docker index 8d3d306bc1..1ef735f223 100644 --- a/tests/docker/dockerfiles/debian-sparc64-cross.docker +++ b/tests/docker/dockerfiles/debian-sparc64-cross.docker @@ -12,3 +12,8 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ eatmydata apt-get install --no-install-recommends -y \ gcc-sparc64-linux-gnu \ libc6-dev-sparc64-cross +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/debian-toolchain.docker b/tests/docke= r/dockerfiles/debian-toolchain.docker index dc9545857f..687a97fec4 100644 --- a/tests/docker/dockerfiles/debian-toolchain.docker +++ b/tests/docker/dockerfiles/debian-toolchain.docker @@ -34,3 +34,8 @@ RUN cd /root && ./build-toolchain.sh # then copying the built toolchain from stage 0. FROM docker.io/library/debian:11-slim COPY --from=3D0 /usr/local /usr/local +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/debian-tricore-cross.docker b/tests/d= ocker/dockerfiles/debian-tricore-cross.docker index 82e4576485..cfd2faf9a8 100644 --- a/tests/docker/dockerfiles/debian-tricore-cross.docker +++ b/tests/docker/dockerfiles/debian-tricore-cross.docker @@ -41,3 +41,8 @@ RUN curl -#SL https://github.com/bkoppelmann/package_940/= releases/download/trico # This image can only build a very minimal QEMU as well as the tests ENV DEF_TARGET_LIST tricore-softmmu ENV QEMU_CONFIGURE_OPTS --disable-user --disable-tools --disable-fdt +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/debian-xtensa-cross.docker b/tests/do= cker/dockerfiles/debian-xtensa-cross.docker index 2f11b3b7bc..082b50da19 100644 --- a/tests/docker/dockerfiles/debian-xtensa-cross.docker +++ b/tests/docker/dockerfiles/debian-xtensa-cross.docker @@ -27,3 +27,8 @@ RUN for cpu in $CPU_LIST; do \ done =20 ENV PATH $PATH:/opt/$TOOLCHAIN_RELEASE/xtensa-dc232b-elf/bin:/opt/$TOOLCHA= IN_RELEASE/xtensa-dc233c-elf/bin:/opt/$TOOLCHAIN_RELEASE/xtensa-de233_fpu-e= lf/bin:/opt/$TOOLCHAIN_RELEASE/xtensa-dsp3400-elf/bin +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/fedora-cris-cross.docker b/tests/dock= er/dockerfiles/fedora-cris-cross.docker index 91c373fdd3..f2899af410 100644 --- a/tests/docker/dockerfiles/fedora-cris-cross.docker +++ b/tests/docker/dockerfiles/fedora-cris-cross.docker @@ -6,3 +6,8 @@ FROM registry.fedoraproject.org/fedora:33 ENV PACKAGES gcc-cris-linux-gnu RUN dnf install -y $PACKAGES RUN rpm -q $PACKAGES | sort > /packages.txt +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/fedora-i386-cross.docker b/tests/dock= er/dockerfiles/fedora-i386-cross.docker index f58b64dc3e..14c1fb2c93 100644 --- a/tests/docker/dockerfiles/fedora-i386-cross.docker +++ b/tests/docker/dockerfiles/fedora-i386-cross.docker @@ -32,3 +32,8 @@ ENV PKG_CONFIG_LIBDIR /usr/lib/pkgconfig =20 RUN dnf update -y && dnf install -y $PACKAGES RUN rpm -q $PACKAGES | sort > /packages.txt +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi diff --git a/tests/docker/dockerfiles/python.docker b/tests/docker/dockerfi= les/python.docker index 175c10a34e..383ccbdc3a 100644 --- a/tests/docker/dockerfiles/python.docker +++ b/tests/docker/dockerfiles/python.docker @@ -15,3 +15,8 @@ ENV PACKAGES \ =20 RUN dnf install -y $PACKAGES RUN rpm -q $PACKAGES | sort > /packages.txt +# As a final step configure the user (if env is defined) +ARG USER +ARG UID +RUN if [ "${USER}" ]; then \ + id ${USER} 2>/dev/null || useradd -u ${UID} -U ${USER}; fi --=20 2.39.2 From nobody Sun May 5 15:01:05 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1677683922; cv=none; d=zohomail.com; s=zohoarc; b=Xt7voDvAC1H4iBmpEhDEniGwONrBugpj3/J6srvkxSqI43dNX3ITmfb1s+fbT7gtX0V7n11bDAUCL5KTt+x+E/J9fdzzQKAy4D3fum6005pp77MYsd9OpmzzX/Rk5e9hSsqwFwZydZrFXDLMsTNLsUlhODJL8LIUw98bcKx/Rcc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677683922; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=EN8jHOsJL7HsIRzzEInBqqC6JRvvYJxy3yPDQt3Nxvo=; b=bE2yCX/5XHp8am+G5CA+HQdsG+rzCEyfE8U/pwijmGoB5JXpDIR0DAB3KXYIRX7RPAPT2WXUUSF8KQ6XGZvrCqErn6xkSPFOaSsxeHrZHqhlWgauLlIfXz1xicRCJZzsE1aLtFoLpvjqlUkg4b3QnUVTNF48HIcWnouuzsK2QYs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1677683922533221.59406451808104; Wed, 1 Mar 2023 07:18:42 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXOCH-0000GL-Ea; Wed, 01 Mar 2023 10:16:49 -0500 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 1pXOBk-0008BA-Co for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:16:16 -0500 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXOBh-0007dO-Tt for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:16:16 -0500 Received: by mail-wr1-x42a.google.com with SMTP id e13so2076285wro.10 for ; Wed, 01 Mar 2023 07:16:13 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id c2-20020a5d4cc2000000b002bfd524255esm12689441wrt.43.2023.03.01.07.16.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 07:16:11 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 1AB9D1FFC8; Wed, 1 Mar 2023 15:16:07 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=EN8jHOsJL7HsIRzzEInBqqC6JRvvYJxy3yPDQt3Nxvo=; b=Vu/qk0YsaFyQkQy7Mwk/CHc0/R05ALk3FwnlGEybhN1B/yeUKMVVUIOW1bYsEFc6IL de3V3foZo2+iCaJK+jms3qQsCew1UziReml81XvMFhXHx7TIzXEkV3NFdotUTU0j/GO9 RY9YibqOzjNG2UpmKdux10zVmIlI+CkZ/3YmGCWVUIJDeVjIbLv1LW03j8iy2ZYJ31Y8 iFnVsUWQ2WFf1D/MGzo9s1ztHIyNhSmgCbwXnrVJIUjrcwNjFq4lfU4EN9h1TxApZsJN HxhZ+JTHPAeT8/NPudPANk9iIlwScbMCSL8z5M6Y94dfrTZsUI2j0UmRvcrD9n6/TuOQ WOGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=EN8jHOsJL7HsIRzzEInBqqC6JRvvYJxy3yPDQt3Nxvo=; b=gYjobkawDaOep1oYzG9DXRvHnEhHYhr18mEtxkGIqiuio7FeT/+YlTnT7N9oCx8DVC jTbhPKmb7rx6RBlIFfBDLnjTPnf5z7YdPTl17JePswQWFv+OpISGyPwAhNg28xrEYL1F 310KYNskv2iz3/ucDYARpitdtP69pysKIKR/WPdnjGtzHeWIAlhBo3EQdEXEqT9jHf/r U6wfYqbN+dmkf2qe2V1mj+gSje/URdy641qGn3PP/Hxx4nxqV708N9o5rLSRYXHiAPPf uhXDm+wcIJUGVQyQvw8u0j5sPF/Zaw8pQgggCbsq1oWUYcOTlwkSo8usP4Mjt8rwdQlO UR2A== X-Gm-Message-State: AO0yUKW6z5kVerD8XRiIqkWdq/Xl3BZauK17/ScBUOwBevX8glOOAc1/ wA1YGReY/GUd0853dtHoeXzHbjfFCHix9jc2 X-Google-Smtp-Source: AK7set9ZWzuCsHetRc3FSExOEcNZnrXwocPqBvQh79WRi0jMfekiN9RYD9YF3e6NdyTGHU+mnca4yw== X-Received: by 2002:a05:6000:11c7:b0:2c3:eeeb:b2f7 with SMTP id i7-20020a05600011c700b002c3eeebb2f7mr4919068wrx.62.1677683772535; Wed, 01 Mar 2023 07:16:12 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL v2 20/24] tests/docker: use direct RUNC call to build containers Date: Wed, 1 Mar 2023 15:16:00 +0000 Message-Id: <20230301151604.1948813-21-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230301151604.1948813-1-alex.bennee@linaro.org> References: <20230301151604.1948813-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42a.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 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1677683924294100003 We don't really need stuff from docker.py to do the build as we have everything we need with a direct call. We do rely on the dockerfiles being able to tweak the UID/name mapping as the last step. Reviewed-by: Daniel P. Berrang=C3=A9 Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Alex Benn=C3=A9e Message-Id: <20230228190653.1602033-21-alex.bennee@linaro.org> diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index bfb0dcac21..680afff952 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -7,6 +7,8 @@ SPACE :=3D $(NULL) # COMMA :=3D , =20 HOST_ARCH =3D $(if $(ARCH),$(ARCH),$(shell uname -m)) +USER =3D $(if $(NOUSER),,$(shell id -un)) +UID =3D $(if $(NOUSER),,$(shell id -u)) =20 DOCKER_FILES_DIR :=3D $(SRC_PATH)/tests/docker/dockerfiles ifeq ($(HOST_ARCH),x86_64) @@ -14,6 +16,7 @@ DOCKER_DEFAULT_REGISTRY :=3D registry.gitlab.com/qemu-pro= ject/qemu endif DOCKER_REGISTRY :=3D $(if $(REGISTRY),$(REGISTRY),$(DOCKER_DEFAULT_REGISTR= Y)) =20 +RUNC ?=3D docker ENGINE ?=3D auto DOCKER_SCRIPT=3D$(SRC_PATH)/tests/docker/docker.py --engine $(ENGINE) =20 @@ -35,15 +38,17 @@ docker-qemu-src: $(DOCKER_SRC_COPY) =20 # General rule for building docker images. docker-image-%: $(DOCKER_FILES_DIR)/%.docker - $(call quiet-command,\ - $(DOCKER_SCRIPT) build -t qemu/$* -f $< \ - $(if $V,,--quiet) \ - $(if $(NOCACHE),--no-cache, \ - $(if $(DOCKER_REGISTRY),--registry $(DOCKER_REGISTRY))) \ - $(if $(NOUSER),,--add-current-user) \ - $(if $(EXTRA_FILES),--extra-files $(EXTRA_FILES))\ - $(if $(EXECUTABLE),--include-executable=3D$(EXECUTABLE)),\ - "BUILD","$*") + $(call quiet-command, \ + $(RUNC) build \ + $(if $V,,--quiet) \ + $(if $(NOCACHE),--no-cache, \ + $(if $(DOCKER_REGISTRY),--cache-from $(DOCKER_REGISTRY)/qemu/$*)) \ + --build-arg BUILDKIT_INLINE_CACHE=3D1 \ + $(if $(NOUSER),, \ + --build-arg USER=3D$(USER) \ + --build-arg UID=3D$(UID)) \ + -t qemu/$* - < $<, \ + "BUILD", $1) =20 # Special rule for debootstraped binfmt linux-user images docker-binfmt-image-debian-%: $(DOCKER_FILES_DIR)/debian-bootstrap.docker --=20 2.39.2 From nobody Sun May 5 15:01:05 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1677684334; cv=none; d=zohomail.com; s=zohoarc; b=Am8fE0Z7xB4w+dz6NbaPyT9XAL2HJSIpEMUgAyxIrhf5FtUKFO2HV24ApOsgIWMfrprZbGYkbL4/gfvJmMBwoc8n5A3BsZYSZ1rV5XdkDwQh/8YSjgVLS/e9Y8bm2ZlQmEffTdSZqAc9YKNHo0LWhXenCbK4owSGZClL3+bBgmM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677684334; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=b27PuU+rWXLWaY/k0uD9Sf2qA77t6AY1zW87Orqns2o=; b=TodOdARIYtwmpFSEe0uQumh3vE5QtVSQH6Hd7V6L/GBqLNOB+y37hSEm0Q4Nknq3K/qK18MQduAU9RHIsq+C0F3alU/lqISuqTLTktGiTiyU1+bNxypF6W7aus7Vv6WWPXzhSwBwGoAYf2rpUtefrHL5uBRcvoD+5w3w4y1x7CM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1677684334573430.00898917958443; Wed, 1 Mar 2023 07:25:34 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXOK0-00018w-Qe; Wed, 01 Mar 2023 10:24:48 -0500 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 1pXOJi-0000b8-5e for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:24:31 -0500 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXOJd-00011r-Du for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:24:29 -0500 Received: by mail-wr1-x42e.google.com with SMTP id e13so2104146wro.10 for ; Wed, 01 Mar 2023 07:24:23 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id t3-20020a5d49c3000000b002c5804b6afasm13240400wrs.67.2023.03.01.07.24.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 07:24:20 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 306EE1FFC9; Wed, 1 Mar 2023 15:16:07 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=b27PuU+rWXLWaY/k0uD9Sf2qA77t6AY1zW87Orqns2o=; b=SvCyZrz1TIaWLSn7SMpXEyBZSXrPkefQGzyGISTKqrR7mvO2zRShttLndxtcejQ7v8 IcXWrDvAK+W0vOgZE3vc6YSArtjtu0woh7yxj9bfy9pw12RWNJwec2HBenUOb68uolUq fezwuhDvyBn9LcUGgDoW1YfX9R2brk6/RSl2XMGSqdL39z0ihLsu+IXMguDaPFVEGUi8 VQXEM9kpPwVaVWwfg1diuP4iPgKsPwaXnh/AKVEDnT0/3Wz2R9TXADPYFlTomk9QeHgM LY9uKKKlKOtiSL2xQFoGtSG8avZ+LXM/96ZVGW75SuWv7iClf7yDQFgYFnYJxn9hdUyu Y2Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=b27PuU+rWXLWaY/k0uD9Sf2qA77t6AY1zW87Orqns2o=; b=r8bOACErlBv1yM+N4dk+a8JBycdLA+Ju3mHLLm9jM9ytFMw1LA/Fr2/Ni3FwJ260cq 9z7rF2hA33AQMb6Eta4PTqS43oBkWez8yuvBbd8jYfzfihw8IYuZVlhIouq96awRAa4J JAlGsSMenEyUE+5krxT+yJXOKGFhD3PajTvJ1uXUCn3fZnBLWe3/FCamr4xvBdTBZjU/ T0jC8ScH/CS8HKeryU8wOEHpwOf+FmETwYDG7YvjmSSpUceVKschb4u+/nzKe5sAUAZV hw+16YJABlxgj+HUhLuAkxii2AnPMGop1nwz8IXq1fbZC0e3PTsnmil8uezrtAhcyYzl xrQw== X-Gm-Message-State: AO0yUKUatqfnzpNlbmePZofhHoGZHWs0m9KglnsusqBl5xKa4E2c5Sac SXdHNjDDICZnod0bI3QN3aYmgA== X-Google-Smtp-Source: AK7set+z2Ivcq9Atf/XregHtHkrK88fOgknGTeXdG4gLDu8RQXXW0qJsi0z55I98fsjn3C2EtKsSrA== X-Received: by 2002:a05:6000:1f83:b0:2c9:b9bf:e20c with SMTP id bw3-20020a0560001f8300b002c9b9bfe20cmr4545122wrb.2.1677684262159; Wed, 01 Mar 2023 07:24:22 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL v2 21/24] tests/docker: use direct RUNC call to run test jobs Date: Wed, 1 Mar 2023 15:16:01 +0000 Message-Id: <20230301151604.1948813-22-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230301151604.1948813-1-alex.bennee@linaro.org> References: <20230301151604.1948813-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42e.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 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1677684336072100007 If we build them without the script we can certainly run them without it. Reviewed-by: Daniel P. Berrang=C3=A9 Signed-off-by: Alex Benn=C3=A9e Message-Id: <20230228190653.1602033-22-alex.bennee@linaro.org> diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 680afff952..54ed77f671 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -224,8 +224,9 @@ docker-run: docker-qemu-src $(IMAGE) --executable $(EXECUTABLE), \ " COPYING $(EXECUTABLE) to $(IMAGE)")) $(call quiet-command, \ - $(DOCKER_SCRIPT) run \ - $(if $(NOUSER),,--run-as-current-user) \ + $(RUNC) run \ + --rm \ + $(if $(NOUSER),,-u $(UID)) \ --security-opt seccomp=3Dunconfined \ $(if $(DEBUG),-ti,) \ $(if $(NETWORK),$(if $(subst $(NETWORK),,1),--net=3D$(NETWORK)),--net= =3Dnone) \ --=20 2.39.2 From nobody Sun May 5 15:01:05 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1677684415; cv=none; d=zohomail.com; s=zohoarc; b=CtRaTLo8SpQjdCzcutxmJFXvFQOzU+7ZJjgf90ICfSQozBjaSfgAPleeEpkkzw20KBjjxHXldtoqsIyJPkJhc+DzCbHi/r/4RQ2uIkrMYKNbpY/wVfekhe5dfZne1+2Xvh1tt4x6M80g4U4ghoE9C4VY8a+356oVveMCjW1VB8E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677684415; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Sev1Wyvh2APuLTMQRXQQpXcLdUgOJPObJBk7YzpzIb4=; b=MYF2AlM23w3NieI8Pbna85NBGvBlS8s0PBq4me4FS2IRgs+dVFx4UHYbw6X1LuwMEOwrUvlChNBVhdKw30I/3uI4s7ye7y5mRo65pG4885NJngXV6TkmpRm/SB3ucU3mn2atChpsmJXNGKt5b4gPI/FLaP0omJ9sjpnPAvNCSoU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1677684415122962.7346622723089; Wed, 1 Mar 2023 07:26:55 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXOK1-0001BG-Cu; Wed, 01 Mar 2023 10:24:49 -0500 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 1pXOJj-0000dU-PI for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:24:31 -0500 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXOJh-00012D-DT for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:24:31 -0500 Received: by mail-wr1-x431.google.com with SMTP id bx12so10461251wrb.11 for ; Wed, 01 Mar 2023 07:24:25 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id a2-20020adfdd02000000b002c3f03d8851sm13182560wrm.16.2023.03.01.07.24.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 07:24:23 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 4ABAB1FFCA; Wed, 1 Mar 2023 15:16:07 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=Sev1Wyvh2APuLTMQRXQQpXcLdUgOJPObJBk7YzpzIb4=; b=nXckIAUlwxMVw9xQm9uy7mxbi302KC5BCPWSAA5rL3poBRuLbCRhDygIcMOMWHpyOc 3As6rbd1iVcGsIRIi7+qbeqGehpxdbZIQmKYxVdqEPTiN59OVpxMOr4taVXBOFF9/Sxr VSEutP0+/glyUv5WH0zgQHUxRmN2fnjljPBA7EJO+yetrflmGEFOHVuuraQuQccHKpsY 90M49Uz6R0116cQaraUhnYvowz0pjZahce2oG8hfnvjI91qO7EcX+ArvsWGK++oifbOY 4m8r2F3S5cwEZ8GIIbIpuN+tVHf5+Ymd0WPRqDoFJMyKzRguGt7Jk196HCCDeZPU53bc KwIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=Sev1Wyvh2APuLTMQRXQQpXcLdUgOJPObJBk7YzpzIb4=; b=c/Uxb4iyQh9WOL2dk5YO01r99Yr1JyDyUFtB/6oxmR7hhBq2fZV0eG6HhIZZ/GStRo Sbyd9spekCuH/cdnDmihRnvzEWJR/3zUsi8WFcsBbERrRKOyQzqmtlU5kRndMpuNHbz8 PQMf9ieVuxhWvfYNtXGeky2VxcB5yeoPY4I3lPxACdITSJt3loXwpDVui1znCUEPXjex gEsJuGf68L/VRUtflhEZnvBRKZotbunA8uFjgXYg2XKu4vPANBAPcAfJ83cEqbXSgTB0 HLjnclcBjyK0JbEo1rc/uwSwebtIHRnfCTwVEsp6U09PrHiul5+RSR4lAWqHLJpsOy28 oVmg== X-Gm-Message-State: AO0yUKUILCw8bKvctzNLCO1b/1PXrDd87AckKE9ve8JUIjS09lNPCm4X EvNgLIUBPnK2+98fdaMvVuMGRw== X-Google-Smtp-Source: AK7set/i/RlZjRXhijp3G7zmlc/IhgwqDpRzc/F9bY6kE2QaiCLopgDX8Qzag7XbFf97bn+nqix0zA== X-Received: by 2002:adf:f9c9:0:b0:2c8:9ab8:85f9 with SMTP id w9-20020adff9c9000000b002c89ab885f9mr5811572wrr.40.1677684264663; Wed, 01 Mar 2023 07:24:24 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL v2 22/24] gitlab: move the majority of artefact handling to a template Date: Wed, 1 Mar 2023 15:16:02 +0000 Message-Id: <20230301151604.1948813-23-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230301151604.1948813-1-alex.bennee@linaro.org> References: <20230301151604.1948813-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x431.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 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1677684416059100010 To avoid lots of copy and paste lets deal with artefacts in a template. This way we can filter out most of the pre-binary object and library files we no longer need as we have the final binaries. build-system-alpine also saved .git-submodule-status so for simplicity we bring that into the template as well. As an example the build-system-ubuntu artefacts before this patch where around 1.3 GB, after dropping the object files it comes to 970 MB. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20230228190653.1602033-23-alex.bennee@linaro.org> diff --git a/.gitlab-ci.d/buildtest-template.yml b/.gitlab-ci.d/buildtest-t= emplate.yml index cb96b55c3f..a6cfe9be97 100644 --- a/.gitlab-ci.d/buildtest-template.yml +++ b/.gitlab-ci.d/buildtest-template.yml @@ -25,6 +25,22 @@ make -j"$JOBS" $MAKE_CHECK_ARGS ; fi =20 +# We jump some hoops in common_test_job_template to avoid +# rebuilding all the object files we skip in the artifacts +.native_build_artifact_template: + artifacts: + expire_in: 2 days + paths: + - build + - .git-submodule-status + exclude: + - build/**/*.p + - build/**/*.a.p + - build/**/*.fa.p + - build/**/*.c.o + - build/**/*.c.o.d + - build/**/*.fa + .common_test_job_template: extends: .base_job_template stage: test diff --git a/.gitlab-ci.d/buildtest.yml b/.gitlab-ci.d/buildtest.yml index 43f9e4a81d..44b8275299 100644 --- a/.gitlab-ci.d/buildtest.yml +++ b/.gitlab-ci.d/buildtest.yml @@ -2,7 +2,9 @@ include: - local: '/.gitlab-ci.d/buildtest-template.yml' =20 build-system-alpine: - extends: .native_build_job_template + extends: + - .native_build_job_template + - .native_build_artifact_template needs: - job: amd64-alpine-container variables: @@ -11,11 +13,6 @@ build-system-alpine: microblazeel-softmmu mips64el-softmmu MAKE_CHECK_ARGS: check-build CONFIGURE_ARGS: --enable-docs --enable-trace-backends=3Dlog,simple,sys= log - artifacts: - expire_in: 2 days - paths: - - .git-submodule-status - - build =20 check-system-alpine: extends: .native_test_job_template @@ -36,7 +33,9 @@ avocado-system-alpine: MAKE_CHECK_ARGS: check-avocado =20 build-system-ubuntu: - extends: .native_build_job_template + extends: + - .native_build_job_template + - .native_build_artifact_template needs: job: amd64-ubuntu2204-container variables: @@ -45,10 +44,6 @@ build-system-ubuntu: TARGETS: alpha-softmmu cris-softmmu hppa-softmmu microblazeel-softmmu mips64el-softmmu MAKE_CHECK_ARGS: check-build - artifacts: - expire_in: 2 days - paths: - - build =20 check-system-ubuntu: extends: .native_test_job_template @@ -69,7 +64,9 @@ avocado-system-ubuntu: MAKE_CHECK_ARGS: check-avocado =20 build-system-debian: - extends: .native_build_job_template + extends: + - .native_build_job_template + - .native_build_artifact_template needs: job: amd64-debian-container variables: @@ -78,10 +75,6 @@ build-system-debian: TARGETS: arm-softmmu avr-softmmu i386-softmmu mipsel-softmmu riscv64-softmmu sh4eb-softmmu sparc-softmmu xtensaeb-softmmu MAKE_CHECK_ARGS: check-build - artifacts: - expire_in: 2 days - paths: - - build =20 check-system-debian: extends: .native_test_job_template @@ -114,7 +107,9 @@ crash-test-debian: - tests/venv/bin/python3 scripts/device-crash-test -q ./qemu-system-i3= 86 =20 build-system-fedora: - extends: .native_build_job_template + extends: + - .native_build_job_template + - .native_build_artifact_template needs: job: amd64-fedora-container variables: @@ -123,10 +118,6 @@ build-system-fedora: TARGETS: tricore-softmmu microblaze-softmmu mips-softmmu xtensa-softmmu m68k-softmmu riscv32-softmmu ppc-softmmu sparc64-soft= mmu MAKE_CHECK_ARGS: check-build - artifacts: - expire_in: 2 days - paths: - - build =20 check-system-fedora: extends: .native_test_job_template @@ -160,7 +151,9 @@ crash-test-fedora: - tests/venv/bin/python3 scripts/device-crash-test -q ./qemu-system-ri= scv32 =20 build-system-centos: - extends: .native_build_job_template + extends: + - .native_build_job_template + - .native_build_artifact_template needs: job: amd64-centos8-container variables: @@ -170,10 +163,6 @@ build-system-centos: TARGETS: ppc64-softmmu or1k-softmmu s390x-softmmu x86_64-softmmu rx-softmmu sh4-softmmu nios2-softmmu MAKE_CHECK_ARGS: check-build - artifacts: - expire_in: 2 days - paths: - - build =20 check-system-centos: extends: .native_test_job_template @@ -194,17 +183,15 @@ avocado-system-centos: MAKE_CHECK_ARGS: check-avocado =20 build-system-opensuse: - extends: .native_build_job_template + extends: + - .native_build_job_template + - .native_build_artifact_template needs: job: amd64-opensuse-leap-container variables: IMAGE: opensuse-leap TARGETS: s390x-softmmu x86_64-softmmu aarch64-softmmu MAKE_CHECK_ARGS: check-build - artifacts: - expire_in: 2 days - paths: - - build =20 check-system-opensuse: extends: .native_test_job_template @@ -339,7 +326,9 @@ clang-user: # Split in three sets of build/check/avocado to limit the execution time o= f each # job build-cfi-aarch64: - extends: .native_build_job_template + extends: + - .native_build_job_template + - .native_build_artifact_template needs: - job: amd64-fedora-container variables: @@ -355,10 +344,6 @@ build-cfi-aarch64: # skipped until the situation has been solved. QEMU_JOB_SKIPPED: 1 timeout: 90m - artifacts: - expire_in: 2 days - paths: - - build =20 check-cfi-aarch64: extends: .native_test_job_template @@ -379,7 +364,9 @@ avocado-cfi-aarch64: MAKE_CHECK_ARGS: check-avocado =20 build-cfi-ppc64-s390x: - extends: .native_build_job_template + extends: + - .native_build_job_template + - .native_build_artifact_template needs: - job: amd64-fedora-container variables: @@ -395,10 +382,6 @@ build-cfi-ppc64-s390x: # skipped until the situation has been solved. QEMU_JOB_SKIPPED: 1 timeout: 80m - artifacts: - expire_in: 2 days - paths: - - build =20 check-cfi-ppc64-s390x: extends: .native_test_job_template @@ -419,7 +402,9 @@ avocado-cfi-ppc64-s390x: MAKE_CHECK_ARGS: check-avocado =20 build-cfi-x86_64: - extends: .native_build_job_template + extends: + - .native_build_job_template + - .native_build_artifact_template needs: - job: amd64-fedora-container variables: @@ -431,10 +416,6 @@ build-cfi-x86_64: TARGETS: x86_64-softmmu MAKE_CHECK_ARGS: check-build timeout: 70m - artifacts: - expire_in: 2 days - paths: - - build =20 check-cfi-x86_64: extends: .native_test_job_template @@ -564,7 +545,9 @@ build-libvhost-user: # No targets are built here, just tools, docs, and unit tests. This # also feeds into the eventual documentation deployment steps later build-tools-and-docs-debian: - extends: .native_build_job_template + extends: + - .native_build_job_template + - .native_build_artifact_template needs: job: amd64-debian-container # when running on 'master' we use pre-existing container @@ -574,10 +557,6 @@ build-tools-and-docs-debian: MAKE_CHECK_ARGS: check-unit ctags TAGS cscope CONFIGURE_ARGS: --disable-system --disable-user --enable-docs --enable= -tools QEMU_JOB_PUBLISH: 1 - artifacts: - expire_in: 2 days - paths: - - build =20 # Prepare for GitLab pages deployment. Anything copied into the # "public" directory will be deployed to $USER.gitlab.io/$PROJECT --=20 2.39.2 From nobody Sun May 5 15:01:05 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1677684334; cv=none; d=zohomail.com; s=zohoarc; b=HLdZxdoEq9SMq+syh7VPouHoSjVFfd99PMFl9RMBzcT5ElFfSBFGRVDhos0Nggp/ACT16G4IkMHiQftibwBzb7RAF7TvI7Q2pUKYJ0XXhF4shtg9t2kf13iLDwb9LiVilJsz6IPVE71HVQ9qYQHe/ULS+jYEzntsjHqkQ4darjM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677684334; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=txYhMg114MuWu+mDxJO3nxECBkO8YFyp2bhffaxD6dw=; b=MWOnSPyhyJ1XaATSroADYfYOQJrjAKHGoI0zN412iDrP8gFf3pcRafaSxIEAeCpGF2zvCIN14IWEehpBYRK0Pk1t9Nf5g6glntnphx1wNHU7S7DRM8zlVifTR+X8bLbqZsCGvioerhQqDhw0QoRhZ89H5RGXe0g1lU3RwB/K4ZE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1677684334655337.4013050974527; Wed, 1 Mar 2023 07:25:34 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXOJy-0000uB-44; Wed, 01 Mar 2023 10:24:46 -0500 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 1pXOJk-0000fT-G8 for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:24:33 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXOJh-00012K-Rm for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:24:32 -0500 Received: by mail-wm1-x333.google.com with SMTP id d41-20020a05600c4c2900b003e9e066550fso8066743wmp.4 for ; Wed, 01 Mar 2023 07:24:25 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id ja18-20020a05600c557200b003eb0d6f48f3sm18931314wmb.27.2023.03.01.07.24.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 07:24:23 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 8B9241FFCC; Wed, 1 Mar 2023 15:16:07 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=txYhMg114MuWu+mDxJO3nxECBkO8YFyp2bhffaxD6dw=; b=kkmLzX9Xxf+5KJD4LwVlTtDnmybvcHSDrVie0FjTF8Zfasto78StLxIXIraWnwgVKa Q3T4Shv0C3d9tK0L6hL1jG8649VQpbkmyNpaI+4WEGbOY1hG70sV04tnuFHD82cM9uzz ReltnhuoVRfHG79dLcxUay8G9xUcSoPF6rTndLqul0C5pTZVtbPjOmIlJamAULMqtAjF 4qZePRgVwI7HW68uASCGRA5D7/jZczQnQLQRd9UBMcW2AmgfE7+QTAaCoGsMh5OGvD5K KNfheN4WeNfoL5bwNflukAr1BDtC3GSLfmoPKm+r5tV9YuauoO7lRePer8SJvBtQioS8 W5oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=txYhMg114MuWu+mDxJO3nxECBkO8YFyp2bhffaxD6dw=; b=bE24SyaOL7s0hpjxWPOZfD4p5ZaJxiSZ8PaGnnzksqYMJ4uJLS42nyvCdPDh8k3LT5 4c4RjyhG6k5YgZkBAGMFnbY17g0mSQQRWmIT8GUutQfZ+4Us3wLOKM/xUR21n9cu15BJ KifMWdBj4823cfyLmpmRtt0QF0drfzG+ON+3iPx7Xw2TWFYUOdK43QTxZ+BHBY69l6II gQ75rlrjEfieeLHgF5fTYP3GM7RM8tKGL9xSTQwgc54OMIU5wSITUaOuUb+RpHTHyHV0 U85paBF04RwNyAIm68X12AasgPhNWNPpEv49CyzJpfhoD/f/cuisyejQ8is1r8pV9+si b5uA== X-Gm-Message-State: AO0yUKXd7NrAzQzaw1+kZ7VPV6AHMFh67RwlA9belLDgVGxJ7Wp2Zxyq YdBC3DThN00JK4SJuENh1RZhJ8aQf+PYgXfG X-Google-Smtp-Source: AK7set+xQgG3UZB9jgTCW9h9UtbGW1dAxDyE+FPIy6wFDh2jKCCu6l6ric4k0kkdvUaS1qQ1ttYd0Q== X-Received: by 2002:a05:600c:329a:b0:3db:5f1:53a5 with SMTP id t26-20020a05600c329a00b003db05f153a5mr5839011wmp.20.1677684264992; Wed, 01 Mar 2023 07:24:24 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL v2 23/24] tests/docker: add zstdtools to the images Date: Wed, 1 Mar 2023 15:16:03 +0000 Message-Id: <20230301151604.1948813-24-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230301151604.1948813-1-alex.bennee@linaro.org> References: <20230301151604.1948813-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x333.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 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1677684336003100001 We need this to be able to run the tuxrun_baseline tests in CI which in turn helps us reduce overhead running other tests. We need to update libvirt-ci and refresh the generated files by running 'make lcitool-refresh' to get the new mapping. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20230228190653.1602033-24-alex.bennee@linaro.org> diff --git a/tests/docker/dockerfiles/alpine.docker b/tests/docker/dockerfi= les/alpine.docker index 799932bcc9..81c70aeaf9 100644 --- a/tests/docker/dockerfiles/alpine.docker +++ b/tests/docker/dockerfiles/alpine.docker @@ -110,6 +110,7 @@ RUN apk update && \ xfsprogs-dev \ zlib-dev \ zlib-static \ + zstd \ zstd-dev && \ apk list | sort > /packages.txt && \ mkdir -p /usr/libexec/ccache-wrappers && \ diff --git a/tests/docker/dockerfiles/centos8.docker b/tests/docker/dockerf= iles/centos8.docker index d87a94b97b..7e3a6217ae 100644 --- a/tests/docker/dockerfiles/centos8.docker +++ b/tests/docker/dockerfiles/centos8.docker @@ -116,7 +116,8 @@ RUN dnf distro-sync -y && \ which \ xfsprogs-devel \ zlib-devel \ - zlib-static && \ + zlib-static \ + zstd && \ dnf autoremove -y && \ dnf clean all -y && \ rpm -qa | sort > /packages.txt && \ diff --git a/tests/docker/dockerfiles/debian-amd64-cross.docker b/tests/doc= ker/dockerfiles/debian-amd64-cross.docker index 5d03b5c22d..afb1cbd046 100644 --- a/tests/docker/dockerfiles/debian-amd64-cross.docker +++ b/tests/docker/dockerfiles/debian-amd64-cross.docker @@ -56,7 +56,8 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ sparse \ tar \ tesseract-ocr \ - tesseract-ocr-eng && \ + tesseract-ocr-eng \ + zstd && \ eatmydata apt-get autoremove -y && \ eatmydata apt-get autoclean -y && \ sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \ diff --git a/tests/docker/dockerfiles/debian-amd64.docker b/tests/docker/do= ckerfiles/debian-amd64.docker index febc46e700..28e2fa81b1 100644 --- a/tests/docker/dockerfiles/debian-amd64.docker +++ b/tests/docker/dockerfiles/debian-amd64.docker @@ -127,7 +127,8 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ tesseract-ocr \ tesseract-ocr-eng \ xfslibs-dev \ - zlib1g-dev && \ + zlib1g-dev \ + zstd && \ eatmydata apt-get autoremove -y && \ eatmydata apt-get autoclean -y && \ sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \ diff --git a/tests/docker/dockerfiles/debian-arm64-cross.docker b/tests/doc= ker/dockerfiles/debian-arm64-cross.docker index b9501a21bc..b4f7a7f903 100644 --- a/tests/docker/dockerfiles/debian-arm64-cross.docker +++ b/tests/docker/dockerfiles/debian-arm64-cross.docker @@ -56,7 +56,8 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ sparse \ tar \ tesseract-ocr \ - tesseract-ocr-eng && \ + tesseract-ocr-eng \ + zstd && \ eatmydata apt-get autoremove -y && \ eatmydata apt-get autoclean -y && \ sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \ diff --git a/tests/docker/dockerfiles/debian-armel-cross.docker b/tests/doc= ker/dockerfiles/debian-armel-cross.docker index f21742ede5..4b4191f824 100644 --- a/tests/docker/dockerfiles/debian-armel-cross.docker +++ b/tests/docker/dockerfiles/debian-armel-cross.docker @@ -56,7 +56,8 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ sparse \ tar \ tesseract-ocr \ - tesseract-ocr-eng && \ + tesseract-ocr-eng \ + zstd && \ eatmydata apt-get autoremove -y && \ eatmydata apt-get autoclean -y && \ sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \ diff --git a/tests/docker/dockerfiles/debian-armhf-cross.docker b/tests/doc= ker/dockerfiles/debian-armhf-cross.docker index decdeda6f2..c9b6b2e563 100644 --- a/tests/docker/dockerfiles/debian-armhf-cross.docker +++ b/tests/docker/dockerfiles/debian-armhf-cross.docker @@ -56,7 +56,8 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ sparse \ tar \ tesseract-ocr \ - tesseract-ocr-eng && \ + tesseract-ocr-eng \ + zstd && \ eatmydata apt-get autoremove -y && \ eatmydata apt-get autoclean -y && \ sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \ diff --git a/tests/docker/dockerfiles/debian-mips64el-cross.docker b/tests/= docker/dockerfiles/debian-mips64el-cross.docker index 1df05fcf20..cfe4f9a0d7 100644 --- a/tests/docker/dockerfiles/debian-mips64el-cross.docker +++ b/tests/docker/dockerfiles/debian-mips64el-cross.docker @@ -56,7 +56,8 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ sparse \ tar \ tesseract-ocr \ - tesseract-ocr-eng && \ + tesseract-ocr-eng \ + zstd && \ eatmydata apt-get autoremove -y && \ eatmydata apt-get autoclean -y && \ sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \ diff --git a/tests/docker/dockerfiles/debian-mipsel-cross.docker b/tests/do= cker/dockerfiles/debian-mipsel-cross.docker index 019b8dcaff..8e521fc9ee 100644 --- a/tests/docker/dockerfiles/debian-mipsel-cross.docker +++ b/tests/docker/dockerfiles/debian-mipsel-cross.docker @@ -56,7 +56,8 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ sparse \ tar \ tesseract-ocr \ - tesseract-ocr-eng && \ + tesseract-ocr-eng \ + zstd && \ eatmydata apt-get autoremove -y && \ eatmydata apt-get autoclean -y && \ sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \ diff --git a/tests/docker/dockerfiles/debian-ppc64el-cross.docker b/tests/d= ocker/dockerfiles/debian-ppc64el-cross.docker index 3ceab4c502..b1b8277f3f 100644 --- a/tests/docker/dockerfiles/debian-ppc64el-cross.docker +++ b/tests/docker/dockerfiles/debian-ppc64el-cross.docker @@ -56,7 +56,8 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ sparse \ tar \ tesseract-ocr \ - tesseract-ocr-eng && \ + tesseract-ocr-eng \ + zstd && \ eatmydata apt-get autoremove -y && \ eatmydata apt-get autoclean -y && \ sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \ diff --git a/tests/docker/dockerfiles/debian-s390x-cross.docker b/tests/doc= ker/dockerfiles/debian-s390x-cross.docker index 6c216dde48..af39568ce5 100644 --- a/tests/docker/dockerfiles/debian-s390x-cross.docker +++ b/tests/docker/dockerfiles/debian-s390x-cross.docker @@ -56,7 +56,8 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ sparse \ tar \ tesseract-ocr \ - tesseract-ocr-eng && \ + tesseract-ocr-eng \ + zstd && \ eatmydata apt-get autoremove -y && \ eatmydata apt-get autoclean -y && \ sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \ diff --git a/tests/docker/dockerfiles/fedora-win32-cross.docker b/tests/doc= ker/dockerfiles/fedora-win32-cross.docker index 63a0000936..1fc4c987f7 100644 --- a/tests/docker/dockerfiles/fedora-win32-cross.docker +++ b/tests/docker/dockerfiles/fedora-win32-cross.docker @@ -59,7 +59,8 @@ exec "$@"' > /usr/bin/nosync && \ tesseract \ tesseract-langpack-eng \ util-linux \ - which && \ + which \ + zstd && \ nosync dnf autoremove -y && \ nosync dnf clean all -y =20 diff --git a/tests/docker/dockerfiles/fedora-win64-cross.docker b/tests/doc= ker/dockerfiles/fedora-win64-cross.docker index 531e539e85..39a0617a9d 100644 --- a/tests/docker/dockerfiles/fedora-win64-cross.docker +++ b/tests/docker/dockerfiles/fedora-win64-cross.docker @@ -59,7 +59,8 @@ exec "$@"' > /usr/bin/nosync && \ tesseract \ tesseract-langpack-eng \ util-linux \ - which && \ + which \ + zstd && \ nosync dnf autoremove -y && \ nosync dnf clean all -y =20 diff --git a/tests/docker/dockerfiles/fedora.docker b/tests/docker/dockerfi= les/fedora.docker index 4dd1fce890..e030c5fb1e 100644 --- a/tests/docker/dockerfiles/fedora.docker +++ b/tests/docker/dockerfiles/fedora.docker @@ -130,7 +130,8 @@ exec "$@"' > /usr/bin/nosync && \ xen-devel \ xfsprogs-devel \ zlib-devel \ - zlib-static && \ + zlib-static \ + zstd && \ nosync dnf autoremove -y && \ nosync dnf clean all -y && \ rpm -qa | sort > /packages.txt && \ diff --git a/tests/docker/dockerfiles/opensuse-leap.docker b/tests/docker/d= ockerfiles/opensuse-leap.docker index f39e8a4d44..8e9500e443 100644 --- a/tests/docker/dockerfiles/opensuse-leap.docker +++ b/tests/docker/dockerfiles/opensuse-leap.docker @@ -113,7 +113,8 @@ RUN zypper update -y && \ xen-devel \ xfsprogs-devel \ zlib-devel \ - zlib-devel-static && \ + zlib-devel-static \ + zstd && \ zypper clean --all && \ rpm -qa | sort > /packages.txt && \ mkdir -p /usr/libexec/ccache-wrappers && \ diff --git a/tests/docker/dockerfiles/ubuntu2004.docker b/tests/docker/dock= erfiles/ubuntu2004.docker index a6f7071351..aa2f5ca7b4 100644 --- a/tests/docker/dockerfiles/ubuntu2004.docker +++ b/tests/docker/dockerfiles/ubuntu2004.docker @@ -126,7 +126,8 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ tesseract-ocr \ tesseract-ocr-eng \ xfslibs-dev \ - zlib1g-dev && \ + zlib1g-dev \ + zstd && \ eatmydata apt-get autoremove -y && \ eatmydata apt-get autoclean -y && \ sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \ diff --git a/tests/docker/dockerfiles/ubuntu2204.docker b/tests/docker/dock= erfiles/ubuntu2204.docker index 6fea090f02..3f7d30e5d0 100644 --- a/tests/docker/dockerfiles/ubuntu2204.docker +++ b/tests/docker/dockerfiles/ubuntu2204.docker @@ -127,7 +127,8 @@ RUN export DEBIAN_FRONTEND=3Dnoninteractive && \ tesseract-ocr \ tesseract-ocr-eng \ xfslibs-dev \ - zlib1g-dev && \ + zlib1g-dev \ + zstd && \ eatmydata apt-get autoremove -y && \ eatmydata apt-get autoclean -y && \ sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \ diff --git a/tests/lcitool/libvirt-ci b/tests/lcitool/libvirt-ci index 1c3e16cae3..232f41f160 160000 --- a/tests/lcitool/libvirt-ci +++ b/tests/lcitool/libvirt-ci @@ -1 +1 @@ -Subproject commit 1c3e16cae38407d0782dc94080d1104106456fa4 +Subproject commit 232f41f160d4567b8c82dd52aa96c2bc3a5b75c1 diff --git a/tests/lcitool/projects/qemu.yml b/tests/lcitool/projects/qemu.= yml index 2854748f49..af3700379a 100644 --- a/tests/lcitool/projects/qemu.yml +++ b/tests/lcitool/projects/qemu.yml @@ -116,5 +116,6 @@ packages: - which - xen - xfsprogs + - zstdtools - zlib - zlib-static --=20 2.39.2 From nobody Sun May 5 15:01:05 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1677684399; cv=none; d=zohomail.com; s=zohoarc; b=npxd2YTBc1UswodRKZQj1rMrHqnZr5UTO6sgfrQ/xIur0CeH1OdlEchENsfwtE3KyQIxINQnKBGPW9qb36A2gyFNp2Fptw1CM8Ti2OBOvqw/gdDuuIYc5zUooV1L2m+0sm47v1wd5auyDbOHiIuy3nbsKepgmSQ0EWQSSfdk5ls= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677684399; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=+bjdMgi7gvKJmRoe4Wj6ZmFFnB2BlsJgdO9jIRLczPk=; b=ZhVH2dRdGkFEYfUQcm6OcYbV/No1IvEb5xp3Ap5g+VWYflxlie+ltZVN4L6lD3r4skw/Z4dNsskA6Q3OZUfn/LAgoc5Wk6AVLjrg189Q50nthfCSaftmi/DJJ/Kdsfv8yIjaMO/23pVYK+M8qleuO8U5R0usLJapQ9gZPmW4kd8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1677684399946808.7002807915275; Wed, 1 Mar 2023 07:26:39 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXOJx-0000qy-9R; Wed, 01 Mar 2023 10:24:45 -0500 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 1pXOJi-0000bD-LK for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:24:31 -0500 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXOJd-000122-EF for qemu-devel@nongnu.org; Wed, 01 Mar 2023 10:24:30 -0500 Received: by mail-wr1-x42c.google.com with SMTP id t15so13622646wrz.7 for ; Wed, 01 Mar 2023 07:24:24 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id k28-20020a5d525c000000b002c556a4f1casm12782987wrc.42.2023.03.01.07.24.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Mar 2023 07:24:22 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id A21861FFCE; Wed, 1 Mar 2023 15:16:07 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=+bjdMgi7gvKJmRoe4Wj6ZmFFnB2BlsJgdO9jIRLczPk=; b=PUtQ/14vuZDs4oPIIDZMINW3b8BqXVFAXcMs858I8jb5x8Pel7FgOmH3Z1oNf1Fd3p +gtokKb0iLXVWGINB9itNwSXnIHmJUDuUyEq3DYTfchYzU+S54vtS/hFwBpxLPL2a3L2 epzjKA32TYmOgwnvkiq7ywFpj9DILpbhQcB59TrUQ6PV1PzsO9YrCgsCjZ7NIHBUOU0l j+P/iRCx+QHBgLUKqykEG4YVJmNlxzhQ9OCeyg/XPGvLs4QbNQ4KFtCIFB+TfR47JIun ntL4bS/LVRT+t49qo8j5LOJJ/qJWmrP8vAQRgboDmG+mszWTAcOKRsvhLkxrazM0/ZnT 2tGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=+bjdMgi7gvKJmRoe4Wj6ZmFFnB2BlsJgdO9jIRLczPk=; b=e7DMSvesTdCEqtHfEWHrEj0saj4qeo4s+Qa0ZRiYoU4R1v1mNf3BXvjl0jR80FL4Nh vKuvezM7Hy6c5betDi12PpZEXWLFx8iQrNwn35QHjM3P5tg0jYDVMhvr0XSLCKthwJtA AwAqFUJ/VM/X93Oef3RY8RtVAahrEsztm3OFhO917z2LZHJXrVZT5qpvEmAagfZZvu7D 5pSogXjL3M86o/bDtZHXTyggq1+l4tsyzKPD7YaCviXPRPX7mDeNOks+rF+/Hv+DJeu2 dwKhC6huseR0l323SMk1SaFPzfJ/Jhpzj7teN46Mck/1LKLxHDxZzd3wzpBGSosLbdHe NrWw== X-Gm-Message-State: AO0yUKUc7s3Y6kkjBzWfvBHR8jqdW87FtX0Ca97qTN+haKN0keFZPW2J I5zwMbZFVdn9DnGjEgc2XEqOHg== X-Google-Smtp-Source: AK7set8h2XX1WeJ9FI+0kBJVSg9R9i/ru+hSjbWrUCYUizpbYSfLFFss+Oyc3/x5vxTkx3bF8NhoMw== X-Received: by 2002:adf:d0d2:0:b0:2c7:7701:2578 with SMTP id z18-20020adfd0d2000000b002c777012578mr4205335wrh.54.1677684263448; Wed, 01 Mar 2023 07:24:23 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Cleber Rosa , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL v2 24/24] tests/avocado: disable BootLinuxPPC64 test in CI Date: Wed, 1 Mar 2023 15:16:04 +0000 Message-Id: <20230301151604.1948813-25-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230301151604.1948813-1-alex.bennee@linaro.org> References: <20230301151604.1948813-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42c.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 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1677684401982100003 This test is exceptionally heavyweight (nearly 330s) compared to the two (both endians) TuxRun baseline tests which complete in under 160s. The coverage is slightly reduced but a more directed test could make up the difference. tests/avocado/tuxrun_baselines.py:TuxRunBaselineTest.test_ppc64: Overall coverage rate: lines......: 9.6% (44110 of 458817 lines) functions..: 16.5% (6767 of 41054 functions) branches...: 6.0% (13395 of 222634 branches) tests/avocado/boot_linux.py:BootLinuxPPC64.test_pseries_tcg: Overall coverage rate: lines......: 11.6% (53408 of 458817 lines) functions..: 18.7% (7691 of 41054 functions) branches...: 7.9% (17692 of 224218 branches) So lets skip for GITLAB_CI and save a few CI minutes. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20230228190653.1602033-25-alex.bennee@linaro.org> diff --git a/tests/avocado/boot_linux.py b/tests/avocado/boot_linux.py index fe0bb180d9..be30dcbd58 100644 --- a/tests/avocado/boot_linux.py +++ b/tests/avocado/boot_linux.py @@ -84,6 +84,8 @@ def test_virt_kvm(self): self.launch_and_wait(set_up_ssh_connection=3DFalse) =20 =20 +# See the tux_baseline.py tests for almost the same coverage in a lot +# less time. class BootLinuxPPC64(LinuxTest): """ :avocado: tags=3Darch:ppc64 @@ -91,6 +93,7 @@ class BootLinuxPPC64(LinuxTest): =20 timeout =3D 360 =20 + @skipIf(os.getenv('GITLAB_CI'), 'Running on GitLab') def test_pseries_tcg(self): """ :avocado: tags=3Dmachine:pseries --=20 2.39.2