From patchwork Wed Feb 15 19:25:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 653736 Delivered-To: patch@linaro.org Received: by 2002:adf:f90f:0:0:0:0:0 with SMTP id b15csp524241wrr; Wed, 15 Feb 2023 11:26:04 -0800 (PST) X-Google-Smtp-Source: AK7set+Lljlw2+fkge2YH5WASAbrc9aS+ujeJj6wc3MIOvGHsh29aABSYpyXyrV/tF4WJxC7ZmY+ X-Received: by 2002:a05:622a:1648:b0:3bc:f954:323b with SMTP id y8-20020a05622a164800b003bcf954323bmr4732889qtj.29.1676489164442; Wed, 15 Feb 2023 11:26:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676489164; cv=none; d=google.com; s=arc-20160816; b=nAVjqk8VWRT3qFmDE23dYMw1D0Y1R4iaq74mWRWXxCBj2L2M2qtgmp01H3VieIG02e 5bY+nwfcbam6J7yBka8x8PWFujRAhdIbwnVYJ2ioGgfMJWlcqH/VaemlWMpfLYDnkWmo tdYqFpASyRy0nWftsHBtoL+1/WTWWQWXs4o0dWT1UplYOJwKqlgSnmhee6jLScdFg9Ho VRgvLh0mvIikivdtPimgWmrrDZzRud49mjymPPojzx2dNNYxdY7ONHvVpaiE2Qcvo+CQ qFPPEcC31eoioG0EXK05qiWqyilT5OuQC0BUix9SDVkQIrpHUFnAb2PqeBNWu/RebCnE S39w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=WM6/8uD1nkP3DANq3sh0KIkSDB5grWzaeai/tBVh8W4=; b=lLWnJS+sCTZVdzjF3TjDyFu7laullyk3TW95hVYlj5Zd2ftjszyZv1QHC1sa77/BNH trlZrdB8KqRYdpADnW0OJ3Zwsjknlgcf0Trs8jzdrUxwOB4/3u84t3aiXR3DEcdl9nOK 0eWKwMkfEu61QbLwiyOJm/WeYagPc8/X7sR7c6aiQm2jZ+R9KKSTnJf2wZow/sQxseCj qrBZtpyD4D2Jd9h4nuOtioxJbqeLwdxAw7+4PgDH4cbo5VUJzkjjm1Zvc9K9iaZyGtI3 JTNqMOOX1eO1nieuu2+KKaZVVCPpNfBxesg3mylC/0JepUAu9esNt/6GvP+zuKUKJH+m zJJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XtdIM31A; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id x142-20020a376394000000b007235a285c59si12980621qkb.245.2023.02.15.11.26.04 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Feb 2023 11:26:04 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XtdIM31A; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSNPM-0006hi-K5; Wed, 15 Feb 2023 14:25:36 -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 1pSNPK-0006gn-Ec for qemu-devel@nongnu.org; Wed, 15 Feb 2023 14:25:34 -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 1pSNPI-0001fr-TS for qemu-devel@nongnu.org; Wed, 15 Feb 2023 14:25:34 -0500 Received: by mail-wr1-x435.google.com with SMTP id co8so16494340wrb.1 for ; Wed, 15 Feb 2023 11:25:32 -0800 (PST) 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=WM6/8uD1nkP3DANq3sh0KIkSDB5grWzaeai/tBVh8W4=; b=XtdIM31AIzDHxM6T4Bk5uNoEnuf8BT8L7dxz82gi0mNM9nMl70Rx5l3+d0JptqMqjp u/h1+pYF2SnLt7oZ1ZZzQwkObhn6jrWw3ShoFDbdtRt8PII9qqZClvvd2urXgXKZaDHU l1hd0kH7Pgrgl5usbjJH7js8iD1MY6MvgPvQLWp2106UyueINEz1nKGapkch9gnZ5hFv r0urC7nY2CoSCQZshwuM8UlZ28EtKlLq+Fa3C178WsIOqPTIHi6gBWwvFWaGsFo2TEsV lpYGn2HtH3rCz9kgAZZg/ZqVNqwyS3G73ql5L/77ldJAlts+T+bvuQElXPH3nYVqeiKV grWA== 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=WM6/8uD1nkP3DANq3sh0KIkSDB5grWzaeai/tBVh8W4=; b=weVxXybQgLNroINsQ4tcQUeTbwG8uUcUg1VTNmGU7Ze2ELSYXdR4SsOWY1TWdZQzuZ 7J/tmiBKPBUcc9HiF+NrAcIJE5G++OVcMl8Og/Scb6RNq0q6eBtPT7MOl43VbjSGh5Hc 76T5sEKATBP/knH7VcQzYg0G1yZfMtA48X+bxA4iMewL1JrTTiVl9UcYMe+T498yQM3C HeriMR3DZFASSL5l32a+fNTNA22z+BdAznE2U/lG0P+r3cPF34EWWE/pfnozby1ExskJ H7pMZgsV5+eio3ehXyIyy0O98x8oAymI5KXul5Z97bgoEOK68q+ChUseKY5UlA8r1K5v pNrA== X-Gm-Message-State: AO0yUKWZceTfCAliNa3uCgqV/NW0e+liyHGO5OLoY9dt72hbQIOvtqs6 u8D3F84Ln6jeVMaiFyaM38LJWQ== X-Received: by 2002:adf:ef02:0:b0:2bf:b839:c48b with SMTP id e2-20020adfef02000000b002bfb839c48bmr2809119wro.51.1676489131485; Wed, 15 Feb 2023 11:25:31 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id w11-20020adff9cb000000b002c54e9f6bc2sm11834697wrr.77.2023.02.15.11.25.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 11:25:31 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 80A191FFB8; Wed, 15 Feb 2023 19:25:30 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Michael Roth , Alexander Bulekov , Qiuhao Li , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Markus Armbruster , Paolo Bonzini , qemu-arm@nongnu.org, John Snow , Pavel Dovgalyuk , Darren Kenny , =?utf-8?q?Alex_Benn=C3=A9e?= , Stefan Hajnoczi , Bandan Das , Cleber Rosa , Peter Maydell , Bastian Koppelmann , Yonggang Luo , Li-Wen Hsu , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Thomas Huth , Beraldo Leal , Ed Maste , Wainer dos Santos Moschetta Subject: [PATCH 01/12] gitlab: tweak and filter ninja output to reduce build noise Date: Wed, 15 Feb 2023 19:25:19 +0000 Message-Id: <20230215192530.299263-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230215192530.299263-1-alex.bennee@linaro.org> References: <20230215192530.299263-1-alex.bennee@linaro.org> MIME-Version: 1.0 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org A significant portion of our CI logs are just enumerating each successfully built object file. The current widespread versions of ninja don't have a quiet option so we use NINJA_STATUS to add a fixed string to the ninja output which we then filter with grep. If there are any errors in the output we get them from the compiler. Signed-off-by: Alex Bennée --- .gitlab-ci.d/buildtest-template.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.d/buildtest-template.yml b/.gitlab-ci.d/buildtest-template.yml index 73ecfabb8d..3af51846cd 100644 --- a/.gitlab-ci.d/buildtest-template.yml +++ b/.gitlab-ci.d/buildtest-template.yml @@ -21,7 +21,7 @@ then ../meson/meson.py configure . -Dbackend_max_links="$LD_JOBS" ; fi || exit 1; - - make -j"$JOBS" + - env NINJA_STATUS="[ninja][%f/%t] " make -j"$JOBS" | grep -v "\[ninja\]\[.*[123456789]/" - if test -n "$MAKE_CHECK_ARGS"; then make -j"$JOBS" $MAKE_CHECK_ARGS ; From patchwork Wed Feb 15 19:25:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 653742 Delivered-To: patch@linaro.org Received: by 2002:adf:f90f:0:0:0:0:0 with SMTP id b15csp524737wrr; Wed, 15 Feb 2023 11:27:11 -0800 (PST) X-Google-Smtp-Source: AK7set+wzhZp6fIkYelDeKDFF6vdJ/sV6DQivs8sm11XVaurj0W31kA7ehCe9tpP4At1FOfJGfNW X-Received: by 2002:ad4:5b86:0:b0:56e:b1c8:381b with SMTP id 6-20020ad45b86000000b0056eb1c8381bmr5672722qvp.31.1676489231063; Wed, 15 Feb 2023 11:27:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676489231; cv=none; d=google.com; s=arc-20160816; b=g6BU+6oE2qyy8OYEhSei2SV2HMjYLgVp8Fzj8uaGtkjBplYXQrcU0YYL6M7+Cwf4vz 0l10PK2CT0mQho2UwHyYjjZPcLs3NoaHTqCvUbezZ53M683GbDycZ5sDaqG4CvpW4t7J Qom2ZfGbDegW2Er2rJdkKjcJBtkFpDZ5r7Tld5eFmy1O1VFcqbMzTjCmrPm0wXsbrxA+ 2fZtLPJea0YR4/OS9tHPAtv6x5kSfOzUjdRpk0XBJ7Q9IviKHhnCBmuagLilD+ifEb4w vQz9G2zG3lnn3UPBH53IQ0R+aG4yuIGOUwgHQIYV2zY7JYTx/SWSH2n4a5ZfpiDBtg/Z plRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=pOGRkGIImJUYHM7juc7wyyKAcjrkEX/ui1SLJCBbokI=; b=MBXoNwrxwICEiY3ZaWkjH98cY8XaDj5IlxCcke2vzDTqv66Dl75TSCztdeZI349Apk 5Gw/oVp3TAesm43dqTkgSC2ReKgs7OSndypYouGt3VVJ5VONrhPUmALWC/85QiqgIbMA +ODcKaGIBuPsUEXyZSDRixDbEu9dMoWeRt5jl2Baq66m9i1cqYlJhQ87iz1D1rGvZD9A rhIf38BvgiQH4SuudTPEtRy8+5683TvfmC9Mv+DlkaYAy2htkf5GVnT6J/VVjlimXsKb NyXLi66krYIwVq7vhihZbd7lcMO9ofFgKMHAPhN3XYG1BoRg49T+W75qAJEYtH6uLPF2 /EPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="oFXwg/2s"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id a18-20020a0cca92000000b0056ea0fb9d6csi9748362qvk.404.2023.02.15.11.27.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Feb 2023 11:27:11 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="oFXwg/2s"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSNPR-0006k5-5K; Wed, 15 Feb 2023 14:25:41 -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 1pSNPM-0006hp-PW for qemu-devel@nongnu.org; Wed, 15 Feb 2023 14:25:36 -0500 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pSNPJ-0001g5-P5 for qemu-devel@nongnu.org; Wed, 15 Feb 2023 14:25:36 -0500 Received: by mail-wr1-x429.google.com with SMTP id co8so16494375wrb.1 for ; Wed, 15 Feb 2023 11:25:33 -0800 (PST) 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=pOGRkGIImJUYHM7juc7wyyKAcjrkEX/ui1SLJCBbokI=; b=oFXwg/2sI++cuAp23+D+Dh/ns3LCMZ3J8fdAIyoR8ogYJJPLTgGgNIMGcitthKq9WE 4bt+VZ36yaZ+oTP2OKoPz2VM4B3n09xP8Nv3fUow78x0mpZN4EtoGsacx00Hzkulc3uC VZoT6FmF/XZUAo5qLColcMRqzJbJaD5gDmslIQZn0uM06toiJzxVjJOKJyxrPIYHsKfQ gVfkhOvzhZKwyAXb/Eh8yqaxmwBPs2C0kdzgj7RKlfzSctCwoTGEgaLku2WrhUBEGnem bo+oZZyLKMjTZW4VvJ2zH4pFV4hzol5AkSXU8T3gbS1EIL1zdHyFY4/XvZx2n87HAWy8 2qCw== 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=pOGRkGIImJUYHM7juc7wyyKAcjrkEX/ui1SLJCBbokI=; b=25t3ccdCEL0rklCS5TQcjzgOy0uCLhwrVL8vkMtXu/379igPYeI2L8SIwLKVZUZ8Ay GX1GLp7Slt0hI6SJSMNtaoe/X1h9Om9PD5hNQEcu3VK/KNGNUO+oyzm+aasveofNP7uJ woPshZOf2OUmz050L63K34ufy6r6suosaYmL4cVTy5WK5kF0lkfB/whRgAuB44FOzsEA HP+MpAm/erEIFqj1gUgeAQmJ0ufzSyst4KH/MHyvu/Bt6wlqQBtidWtR7fuBIm7tQSFE r0zhD1OF+fUtb82KXMX1Lm8KXnYnbTzsdip1Akwt5eNx1tIMsktY1dr+2uTa/xoWqqUO O9RQ== X-Gm-Message-State: AO0yUKUQBrOJ+7ILWBKWijISVwKtolGNaJUYId5OgT+ko/Z7/ze4c26X wgZuF+XAVSbGl0xYln88sh/WiXD6zB+FAYcf X-Received: by 2002:a5d:56c5:0:b0:2c3:ed18:2e96 with SMTP id m5-20020a5d56c5000000b002c3ed182e96mr2426322wrw.13.1676489132141; Wed, 15 Feb 2023 11:25:32 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id y13-20020a5d614d000000b002c5526234d2sm10480314wrt.8.2023.02.15.11.25.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 11:25:31 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 9C6891FFBA; Wed, 15 Feb 2023 19:25:30 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Michael Roth , Alexander Bulekov , Qiuhao Li , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Markus Armbruster , Paolo Bonzini , qemu-arm@nongnu.org, John Snow , Pavel Dovgalyuk , Darren Kenny , =?utf-8?q?Alex_Benn=C3=A9e?= , Stefan Hajnoczi , Bandan Das , Cleber Rosa , Peter Maydell , Bastian Koppelmann , Yonggang Luo , Li-Wen Hsu , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Thomas Huth , Beraldo Leal , Ed Maste , Wainer dos Santos Moschetta , Fabiano Rosas , Richard Henderson Subject: [PATCH 02/12] tests/avocado: retire the Aarch64 TCG tests from boot_linux.py Date: Wed, 15 Feb 2023 19:25:20 +0000 Message-Id: <20230215192530.299263-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230215192530.299263-1-alex.bennee@linaro.org> References: <20230215192530.299263-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x429.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=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org The two TCG tests for GICv2 and GICv3 are very heavy weight distros that take a long time to boot up, especially for an --enable-debug build. The total code coverage they give is: Overall coverage rate: lines......: 11.2% (59584 of 530123 lines) functions..: 15.0% (7436 of 49443 functions) branches...: 6.3% (19273 of 303933 branches) We already get pretty close to that with the machine_aarch64_virt tests which only does one full boot (~120s vs ~600s) of alpine. We expand the kernel+initrd boot (~8s) to test both GICs and also add an RNG device and a block device to generate a few IRQs and exercise the storage layer. With that we get to a coverage of: Overall coverage rate: lines......: 11.0% (58121 of 530123 lines) functions..: 14.9% (7343 of 49443 functions) branches...: 6.0% (18269 of 303933 branches) which I feel is close enough given the massive time saving. If we want to target any more sub-systems we can use lighter weight more directed tests. Reviewed-by: Fabiano Rosas Acked-by: Richard Henderson Signed-off-by: Alex Bennée Cc: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé --- v2 - fix checkpatch warning --- tests/avocado/boot_linux.py | 48 ++++---------------- tests/avocado/machine_aarch64_virt.py | 64 ++++++++++++++++++++++++--- 2 files changed, 66 insertions(+), 46 deletions(-) diff --git a/tests/avocado/boot_linux.py b/tests/avocado/boot_linux.py index b3e58fa309..fe0bb180d9 100644 --- a/tests/avocado/boot_linux.py +++ b/tests/avocado/boot_linux.py @@ -58,52 +58,16 @@ def test_pc_q35_kvm(self): self.launch_and_wait(set_up_ssh_connection=False) -# For Aarch64 we only boot KVM tests in CI as the TCG tests are very -# heavyweight. There are lighter weight distros which we use in the -# machine_aarch64_virt.py tests. +# For Aarch64 we only boot KVM tests in CI as booting the current +# Fedora OS in TCG tests is very heavyweight. There are lighter weight +# distros which we use in the machine_aarch64_virt.py tests. class BootLinuxAarch64(LinuxTest): """ :avocado: tags=arch:aarch64 :avocado: tags=machine:virt - :avocado: tags=machine:gic-version=2 """ timeout = 720 - def add_common_args(self): - self.vm.add_args('-bios', - os.path.join(BUILD_DIR, 'pc-bios', - 'edk2-aarch64-code.fd')) - self.vm.add_args('-device', 'virtio-rng-pci,rng=rng0') - self.vm.add_args('-object', 'rng-random,id=rng0,filename=/dev/urandom') - - @skipIf(os.getenv('GITLAB_CI'), 'Running on GitLab') - def test_fedora_cloud_tcg_gicv2(self): - """ - :avocado: tags=accel:tcg - :avocado: tags=cpu:max - :avocado: tags=device:gicv2 - """ - self.require_accelerator("tcg") - self.vm.add_args("-accel", "tcg") - self.vm.add_args("-cpu", "max,lpa2=off") - self.vm.add_args("-machine", "virt,gic-version=2") - self.add_common_args() - self.launch_and_wait(set_up_ssh_connection=False) - - @skipIf(os.getenv('GITLAB_CI'), 'Running on GitLab') - def test_fedora_cloud_tcg_gicv3(self): - """ - :avocado: tags=accel:tcg - :avocado: tags=cpu:max - :avocado: tags=device:gicv3 - """ - self.require_accelerator("tcg") - self.vm.add_args("-accel", "tcg") - self.vm.add_args("-cpu", "max,lpa2=off") - self.vm.add_args("-machine", "virt,gic-version=3") - self.add_common_args() - self.launch_and_wait(set_up_ssh_connection=False) - def test_virt_kvm(self): """ :avocado: tags=accel:kvm @@ -112,7 +76,11 @@ def test_virt_kvm(self): self.require_accelerator("kvm") self.vm.add_args("-accel", "kvm") self.vm.add_args("-machine", "virt,gic-version=host") - self.add_common_args() + self.vm.add_args('-bios', + os.path.join(BUILD_DIR, 'pc-bios', + 'edk2-aarch64-code.fd')) + self.vm.add_args('-device', 'virtio-rng-pci,rng=rng0') + self.vm.add_args('-object', 'rng-random,id=rng0,filename=/dev/urandom') self.launch_and_wait(set_up_ssh_connection=False) diff --git a/tests/avocado/machine_aarch64_virt.py b/tests/avocado/machine_aarch64_virt.py index c2b2ba2cf8..60921fed8b 100644 --- a/tests/avocado/machine_aarch64_virt.py +++ b/tests/avocado/machine_aarch64_virt.py @@ -10,11 +10,14 @@ import time import os +import logging from avocado_qemu import QemuSystemTest from avocado_qemu import wait_for_console_pattern from avocado_qemu import exec_command from avocado_qemu import BUILD_DIR +from avocado.utils import process +from avocado.utils.path import find_command class Aarch64VirtMachine(QemuSystemTest): KERNEL_COMMON_COMMAND_LINE = 'printk.time=0 ' @@ -65,16 +68,15 @@ def test_alpine_virt_tcg_gic_max(self): self.wait_for_console_pattern('Welcome to Alpine Linux 3.16') - def test_aarch64_virt(self): + def common_aarch64_virt(self, machine): """ - :avocado: tags=arch:aarch64 - :avocado: tags=machine:virt - :avocado: tags=accel:tcg - :avocado: tags=cpu:max + Common code to launch basic virt machine with kernel+initrd + and a scratch disk. """ + logger = logging.getLogger('aarch64_virt') + kernel_url = ('https://fileserver.linaro.org/s/' 'z6B2ARM7DQT3HWN/download') - kernel_hash = 'ed11daab50c151dde0e1e9c9cb8b2d9bd3215347' kernel_path = self.fetch_asset(kernel_url, asset_hash=kernel_hash) @@ -83,13 +85,63 @@ def test_aarch64_virt(self): 'console=ttyAMA0') self.require_accelerator("tcg") self.vm.add_args('-cpu', 'max,pauth-impdef=on', + '-machine', machine, '-accel', 'tcg', '-kernel', kernel_path, '-append', kernel_command_line) + + # A RNG offers an easy way to generate a few IRQs + self.vm.add_args('-device', 'virtio-rng-pci,rng=rng0') + self.vm.add_args('-object', + 'rng-random,id=rng0,filename=/dev/urandom') + + # Also add a scratch block device + logger.info('creating scratch qcow2 image') + image_path = os.path.join(self.workdir, 'scratch.qcow2') + qemu_img = os.path.join(BUILD_DIR, 'qemu-img') + if not os.path.exists(qemu_img): + qemu_img = find_command('qemu-img', False) + if qemu_img is False: + self.cancel('Could not find "qemu-img", which is required to ' + 'create the temporary qcow2 image') + cmd = '%s create -f qcow2 %s 8M' % (qemu_img, image_path) + process.run(cmd) + + # Add the device + self.vm.add_args('-blockdev', + f"driver=qcow2,file.driver=file," + f"file.filename={image_path},node-name=scratch") + self.vm.add_args('-device', + 'virtio-blk-device,drive=scratch') + self.vm.launch() self.wait_for_console_pattern('Welcome to Buildroot') time.sleep(0.1) exec_command(self, 'root') time.sleep(0.1) + exec_command(self, 'dd if=/dev/hwrng of=/dev/vda bs=512 count=4') + time.sleep(0.1) + exec_command(self, 'md5sum /dev/vda') + time.sleep(0.1) + exec_command(self, 'cat /proc/interrupts') + time.sleep(0.1) exec_command(self, 'cat /proc/self/maps') time.sleep(0.1) + + def test_aarch64_virt_gicv3(self): + """ + :avocado: tags=arch:aarch64 + :avocado: tags=machine:virt + :avocado: tags=accel:tcg + :avocado: tags=cpu:max + """ + self.common_aarch64_virt("virt,gic_version=3") + + def test_aarch64_virt_gicv2(self): + """ + :avocado: tags=arch:aarch64 + :avocado: tags=machine:virt + :avocado: tags=accel:tcg + :avocado: tags=cpu:max + """ + self.common_aarch64_virt("virt,gic-version=2") From patchwork Wed Feb 15 19:25:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 653738 Delivered-To: patch@linaro.org Received: by 2002:adf:f90f:0:0:0:0:0 with SMTP id b15csp524453wrr; Wed, 15 Feb 2023 11:26:30 -0800 (PST) X-Google-Smtp-Source: AK7set+KeRV1Vs3wMXHdyaEsfPLV/jWLscAm5k0vCR2O5GthCB5Rzg5FuSPkDdt6HWyQ2mpIKCUM X-Received: by 2002:a05:6214:f26:b0:56e:b690:9bc5 with SMTP id iw6-20020a0562140f2600b0056eb6909bc5mr6383674qvb.19.1676489190126; Wed, 15 Feb 2023 11:26:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676489190; cv=none; d=google.com; s=arc-20160816; b=qDenNo5Y4J0hlqS4ybJEdTqLPkodn1244m+ld06tvvVAgUAjsmUQ84+xSPsVv29umq 2RFx+ecC8JRSsOiypR32tQWeJk6VT+SFK6u+UWH+o600wPagcTQmYU/h2esXxaKTCPRh k51n9/54f1Ac1xLmJFXEhmmuG6qfrkMtgqevk87zBY/iIgJ4tgcdbBgw5zc4LO33FwgU PMhW0DutUevSjShKvSiZjuQ9/24t5Vw76MesY/L7XshLUWFV4CRjiojnS+AHcSlFsJHG mAawbiFbozYnB2KobaPEMaTsn7SnBIkRsgt9QsYdnjet1GQNveaecpVEqIvHtUh0pO2n IiTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=lfAkLZ6ZtPyzbjCSNVzaahppVLzh0njJvj6Y7kvnya0=; b=ZXLstddrOztPSL6SIWBzY17WoW0wBCLe3FYAjb5lq8xfja4URHmlUjOuEYXJx/PKid H4xPdQuIXxlhrQ+R5kv3btqJsuO2PerEWpD54kNbMVTaSS6yxddJ8AKXduqapwL2Ebue lQNNcoIyPX/7dJI/p3bxLnVvn4FQO0HJ/xb/Lc1bpTboheiKgd50AnZe1yvjvH+gyWNJ xe6roNXGyY0GMmUbyC8uTLgzAy3nLZVY4AotSQthkz+RpMRSg6j7xKlv/PUnCT5n51dP o89l95jFBbtoc997Ur7zyi3eLWoukCc6PNIbYF2+VlQkw0tsOQNzrC4O/4slULau7Ov4 IY5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FqkY3x12; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id r24-20020ae9d618000000b007069b005098si14201357qkk.414.2023.02.15.11.26.29 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Feb 2023 11:26:30 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FqkY3x12; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSNPd-0006p7-1d; Wed, 15 Feb 2023 14:25:53 -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 1pSNPP-0006ih-92 for qemu-devel@nongnu.org; Wed, 15 Feb 2023 14:25:40 -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 1pSNPL-0001gV-0T for qemu-devel@nongnu.org; Wed, 15 Feb 2023 14:25:38 -0500 Received: by mail-wr1-x436.google.com with SMTP id s13so2522304wrw.3 for ; Wed, 15 Feb 2023 11:25:34 -0800 (PST) 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=lfAkLZ6ZtPyzbjCSNVzaahppVLzh0njJvj6Y7kvnya0=; b=FqkY3x127IdGcuFKBgfDFpvUSf6wV2/ICLXwRtm7sAN6Cxvg4vFKbq76kS3GiH3Wh5 9cQsZU7ae6XMVcd6e14GGFoUFY+QrfzmqlBPtTZ4J4BhbmCO/y+DYvJZvq7KK6LHTUm+ TwlBkpvb5kTBfI17ZH/B5sqz7EBwNTQxWG3/USY0yGZaSGV7KomDtuGMMDaEwIeUY7G4 aw78M4O4ZrsgqqYTIQTGyUgiZxPBMU54EqZw830UniXr6vXYMoNOlEdaswtEdOlRre7l vvd44e5wHW0Lx6uEvMUfNg9kD/uJQicS/zYpkFX2qEq4kiJICNQH7Ag3Xm1bmyX6cPnj /cgQ== 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=lfAkLZ6ZtPyzbjCSNVzaahppVLzh0njJvj6Y7kvnya0=; b=6rV94jiYNaNXhjaVoe6HBuOo51W5In+6Py5+ExErddJseBOA2ShwEUxtnAtGLUVQov isrLj7hC/YGbDe7YmjGjsksOKRYDwSCLsjxDtVV2MuescUtHVZQl1feaY2447fr4Lcct 5ipKYrAs3vJpp9tmEZZHeD0vOLkQo8zuEQQ8oa5346uC5bhdk7lhuS+Z5TbDOW1qF2xp M3ts8TGf9riRwedp9OmuehPr9aFpIo2AiKheb06ev6GF0fEbIlq8+TVbnS9hrWcX98RT Hcf53Ym2/4UGHEvPNroLKCEbBPl0lpaKWP+ySuSRx4p8ejZBZstkk87jX0mcFslMsP6Q 8UAQ== X-Gm-Message-State: AO0yUKVdeXCJ6B7IyobN9TrxmiEHrlVzybkAQgVeGI/mFYwTwxQi6fev yeFRfuqS4BeUc4MkTdeezypxXQ== X-Received: by 2002:a5d:4579:0:b0:2bf:b92b:8a8a with SMTP id a25-20020a5d4579000000b002bfb92b8a8amr2388870wrc.7.1676489133514; Wed, 15 Feb 2023 11:25:33 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id s8-20020adfecc8000000b002c5509ab3d1sm11268971wro.83.2023.02.15.11.25.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 11:25:32 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id E6C751FFBB; Wed, 15 Feb 2023 19:25:30 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Michael Roth , Alexander Bulekov , Qiuhao Li , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Markus Armbruster , Paolo Bonzini , qemu-arm@nongnu.org, John Snow , Pavel Dovgalyuk , Darren Kenny , =?utf-8?q?Alex_Benn=C3=A9e?= , Stefan Hajnoczi , Bandan Das , Cleber Rosa , Peter Maydell , Bastian Koppelmann , Yonggang Luo , Li-Wen Hsu , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Thomas Huth , Beraldo Leal , Ed Maste , Wainer dos Santos Moschetta Subject: [PATCH 03/12] tests: add socat dependency for tests Date: Wed, 15 Feb 2023 19:25:21 +0000 Message-Id: <20230215192530.299263-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230215192530.299263-1-alex.bennee@linaro.org> References: <20230215192530.299263-1-alex.bennee@linaro.org> MIME-Version: 1.0 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org We only use it for test-io-channel-command at the moment. Unfortunately bringing socat into CI exposes an existing bug in the test-io-channel-command unit test. For now disable the test with the preprocessor until someone can diagnose it on Mac hardware. Signed-off-by: Alex Bennée Cc: Philippe Mathieu-Daudé Cc: Marc-André Lureau Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé --- tests/unit/test-io-channel-command.c | 4 ++-- .gitlab-ci.d/cirrus/freebsd-12.vars | 2 +- .gitlab-ci.d/cirrus/freebsd-13.vars | 2 +- .gitlab-ci.d/cirrus/macos-12.vars | 2 +- tests/docker/dockerfiles/alpine.docker | 1 + tests/docker/dockerfiles/centos8.docker | 1 + tests/docker/dockerfiles/debian-amd64-cross.docker | 1 + tests/docker/dockerfiles/debian-amd64.docker | 1 + tests/docker/dockerfiles/debian-arm64-cross.docker | 1 + tests/docker/dockerfiles/debian-armel-cross.docker | 1 + tests/docker/dockerfiles/debian-armhf-cross.docker | 1 + tests/docker/dockerfiles/debian-mips64el-cross.docker | 1 + tests/docker/dockerfiles/debian-mipsel-cross.docker | 1 + tests/docker/dockerfiles/debian-ppc64el-cross.docker | 1 + tests/docker/dockerfiles/debian-s390x-cross.docker | 1 + tests/docker/dockerfiles/fedora-win32-cross.docker | 1 + tests/docker/dockerfiles/fedora-win64-cross.docker | 1 + tests/docker/dockerfiles/fedora.docker | 1 + tests/docker/dockerfiles/opensuse-leap.docker | 1 + tests/docker/dockerfiles/ubuntu2004.docker | 1 + tests/lcitool/projects/qemu.yml | 1 + 21 files changed, 22 insertions(+), 5 deletions(-) diff --git a/tests/unit/test-io-channel-command.c b/tests/unit/test-io-channel-command.c index 425e2f5594..f3c34152ac 100644 --- a/tests/unit/test-io-channel-command.c +++ b/tests/unit/test-io-channel-command.c @@ -31,7 +31,7 @@ static char *socat = NULL; -#ifndef _WIN32 +#if !defined(_WIN32) && !defined(DARWIN) static void test_io_channel_command_fifo(bool async) { g_autofree gchar *tmpdir = g_dir_make_tmp("qemu-test-io-channel.XXXXXX", NULL); @@ -128,7 +128,7 @@ int main(int argc, char **argv) socat = g_find_program_in_path("socat"); -#ifndef _WIN32 +#if !defined(_WIN32) && !defined(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", diff --git a/.gitlab-ci.d/cirrus/freebsd-12.vars b/.gitlab-ci.d/cirrus/freebsd-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='/usr/local/bin/gmake' NINJA='/usr/local/bin/ninja' PACKAGING_COMMAND='pkg' PIP3='/usr/local/bin/pip-3.8' -PKGS='alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache cdrkit-genisoimage cmocka ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 gettext git glib gmake gnutls gsed gtk3 json-c libepoxy libffi libgcrypt libjpeg-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 zstd' +PKGS='alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache cdrkit-genisoimage cmocka ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 gettext git glib gmake gnutls gsed gtk3 json-c libepoxy libffi libgcrypt libjpeg-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 vte3 zstd' PYPI_PKGS='' PYTHON='/usr/local/bin/python3' diff --git a/.gitlab-ci.d/cirrus/freebsd-13.vars b/.gitlab-ci.d/cirrus/freebsd-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='/usr/local/bin/gmake' NINJA='/usr/local/bin/ninja' PACKAGING_COMMAND='pkg' PIP3='/usr/local/bin/pip-3.8' -PKGS='alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache cdrkit-genisoimage cmocka ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 gettext git glib gmake gnutls gsed gtk3 json-c libepoxy libffi libgcrypt libjpeg-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 zstd' +PKGS='alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache cdrkit-genisoimage cmocka ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 gettext git glib gmake gnutls gsed gtk3 json-c libepoxy libffi libgcrypt libjpeg-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 vte3 zstd' PYPI_PKGS='' PYTHON='/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='/opt/homebrew/bin/gmake' NINJA='/opt/homebrew/bin/ninja' PACKAGING_COMMAND='brew' PIP3='/opt/homebrew/bin/pip3' -PKGS='bash bc bison bzip2 capstone ccache cmocka ctags curl dbus diffutils dtc flex gcovr gettext git glib gnu-sed gnutls gtk+3 jemalloc jpeg-turbo json-c libepoxy libffi libgcrypt libiscsi libnfs libpng libslirp libssh libtasn1 libusb llvm lzo make meson ncurses nettle ninja pixman pkg-config python3 rpm2cpio sdl2 sdl2_image snappy sparse spice-protocol tesseract usbredir vde vte3 zlib zstd' +PKGS='bash bc bison bzip2 capstone ccache cmocka ctags curl dbus diffutils dtc flex gcovr gettext git glib gnu-sed gnutls gtk+3 jemalloc jpeg-turbo json-c libepoxy libffi libgcrypt libiscsi libnfs libpng libslirp libssh libtasn1 libusb llvm lzo make meson ncurses nettle ninja pixman pkg-config python3 rpm2cpio sdl2 sdl2_image snappy socat sparse spice-protocol tesseract usbredir vde vte3 zlib zstd' PYPI_PKGS='PyYAML numpy pillow sphinx sphinx-rtd-theme' PYTHON='/opt/homebrew/bin/python3' diff --git a/tests/docker/dockerfiles/alpine.docker b/tests/docker/dockerfiles/alpine.docker index 4a569d82f6..56cf14e553 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/dockerfiles/centos8.docker index fbc953c6dc..1291ae1b04 100644 --- a/tests/docker/dockerfiles/centos8.docker +++ b/tests/docker/dockerfiles/centos8.docker @@ -105,6 +105,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/docker/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=noninteractive && \ python3-yaml \ rpm2cpio \ sed \ + socat \ sparse \ tar \ tesseract-ocr \ diff --git a/tests/docker/dockerfiles/debian-amd64.docker b/tests/docker/dockerfiles/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=noninteractive && \ python3-yaml \ rpm2cpio \ sed \ + socat \ sparse \ systemtap-sdt-dev \ tar \ diff --git a/tests/docker/dockerfiles/debian-arm64-cross.docker b/tests/docker/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=noninteractive && \ python3-yaml \ rpm2cpio \ sed \ + socat \ sparse \ tar \ tesseract-ocr \ diff --git a/tests/docker/dockerfiles/debian-armel-cross.docker b/tests/docker/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=noninteractive && \ python3-yaml \ rpm2cpio \ sed \ + socat \ sparse \ tar \ tesseract-ocr \ diff --git a/tests/docker/dockerfiles/debian-armhf-cross.docker b/tests/docker/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=noninteractive && \ 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=noninteractive && \ python3-yaml \ rpm2cpio \ sed \ + socat \ sparse \ tar \ tesseract-ocr \ diff --git a/tests/docker/dockerfiles/debian-mipsel-cross.docker b/tests/docker/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=noninteractive && \ python3-yaml \ rpm2cpio \ sed \ + socat \ sparse \ tar \ tesseract-ocr \ diff --git a/tests/docker/dockerfiles/debian-ppc64el-cross.docker b/tests/docker/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=noninteractive && \ python3-yaml \ rpm2cpio \ sed \ + socat \ sparse \ tar \ tesseract-ocr \ diff --git a/tests/docker/dockerfiles/debian-s390x-cross.docker b/tests/docker/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=noninteractive && \ python3-yaml \ rpm2cpio \ sed \ + socat \ sparse \ tar \ tesseract-ocr \ diff --git a/tests/docker/dockerfiles/fedora-win32-cross.docker b/tests/docker/dockerfiles/fedora-win32-cross.docker index b659c0b8a8..21ed1c6081 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/docker/dockerfiles/fedora-win64-cross.docker index 0a404c15bf..95d30e7936 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/dockerfiles/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/dockerfiles/opensuse-leap.docker index 4b2c02d6ab..568c1c979f 100644 --- a/tests/docker/dockerfiles/opensuse-leap.docker +++ b/tests/docker/dockerfiles/opensuse-leap.docker @@ -104,6 +104,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/dockerfiles/ubuntu2004.docker index 13ab0b6887..f34d88d33d 100644 --- a/tests/docker/dockerfiles/ubuntu2004.docker +++ b/tests/docker/dockerfiles/ubuntu2004.docker @@ -119,6 +119,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ 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 From patchwork Wed Feb 15 19:25:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 653739 Delivered-To: patch@linaro.org Received: by 2002:adf:f90f:0:0:0:0:0 with SMTP id b15csp524458wrr; Wed, 15 Feb 2023 11:26:31 -0800 (PST) X-Google-Smtp-Source: AK7set+ezeUSGBMLO7Iu8ETyiwpmoYb1UMNIK3lWhEAg2GYjUrWF9aa4Em88IIy9JifnMzTAbRuR X-Received: by 2002:a05:622a:343:b0:3b6:5fc7:f554 with SMTP id r3-20020a05622a034300b003b65fc7f554mr5679045qtw.7.1676489191320; Wed, 15 Feb 2023 11:26:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676489191; cv=none; d=google.com; s=arc-20160816; b=tfXCMDKFX8E16aZmuQ4YsCFhpeumnrxcjearE8KjkmusKR4YCK2oguQ+Bs3bzs4ccA McJMy82/MbP1TF/PLo2BueobfkYWcUvtilJrs8MxKiQqGavIrc/wnsVq2q5GjeuJWI3M V+rGoRTauIN84ioko4ySHqPsy46SZPlc2A5bcW+6qnopHQK0y5dXTEN8DCIAbJBe4eTp 1wF6DQG3q0Jn+NMPZFa9vUksIP8UByC4smQlLNKUeDonKmeZHvCbOfl24MZrmbiAx+Q4 vl4sF2V0HoAqTcHx4GZ26kfl+PZy/00qKIVpLlxcp1T7zIECc+UvWdmuWJ7K0jhrYJpj Zulw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/kO6KvD/UT+wvNNPZpX8pG7g3+2FfCgwvzZIN4Mpdz8=; b=IMg4EVX03O7CTggyhhDLuUTqg8x2/EU4ezwClplKoQpS3xJqRyrjuC4Q1TCXMouYig ExqxYnIfxCnVJEqdXrwv9A2/LqN0ShTGbaCGAJcCWOGFK24vkEVnora8/RDfeSh6U+7T ZFXd0WUiLGKG4tFh7d3HOFpnGm9DovPtG2kVZY3rxuCniLweqA+Kw7h47ia4Zfw9b6Vp DxQmuFZZ0zcm4S8nI7Vpe3uLsFpXi8QTzUY8QBt3Zkykn8mts4BmUr+TiRBVGgVtTODQ 94gBtvnUrh78Xe9Ud4F1vpioOOpkOdoLFpB04eu70SSBvyxZsReZKkOUO9rUrgwHio7f hRqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=y4zkzeIC; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id n17-20020ac85b51000000b003b8020698cbsi14913243qtw.417.2023.02.15.11.26.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Feb 2023 11:26:31 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=y4zkzeIC; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSNPU-0006lj-O5; Wed, 15 Feb 2023 14:25: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 1pSNPM-0006hs-V5 for qemu-devel@nongnu.org; Wed, 15 Feb 2023 14:25:36 -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 1pSNPK-0001gC-1t for qemu-devel@nongnu.org; Wed, 15 Feb 2023 14:25:36 -0500 Received: by mail-wm1-x32b.google.com with SMTP id f18-20020a7bcd12000000b003e206711347so1392856wmj.0 for ; Wed, 15 Feb 2023 11:25:33 -0800 (PST) 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=/kO6KvD/UT+wvNNPZpX8pG7g3+2FfCgwvzZIN4Mpdz8=; b=y4zkzeICHCC85KUWKYJXPETUTQqKQRyo0EgIZbwGCkfOTfPO0M9Z0ympsxl3qc14nr 9qVmaN7tYkYjrNDjm8T5WNZBx4pceXPYLyBfXeVsWiJQKN+xHHer7JC5wEZrQkq94mev 79eU+AjUaFz9w9o21qDAHtcJR+RptnW6HND1chc8YZkEkSrLXj5FoHBqDp+Wqw9k08At ntr9prdcM7vCAnfNcjeTuXGTinkPnyrVXg+fdwPTywljog6H25F0/9Lm/k/OVmGy6OVy GqFk18/sxyyZlBpEm3DR8XgJhtvsoskHNmVG48F1emrRf6O+tY4rqXGqxY6YTQOyUdTv cXRg== 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=/kO6KvD/UT+wvNNPZpX8pG7g3+2FfCgwvzZIN4Mpdz8=; b=sVE4MdxtprY1moRMrNx339kqkojg0Ty5xhVugCw8SKVBXjoFYNcb+GVd8QtbxY8hfI mi/v9lKJkXbFlFIMyFGhExgPiOBXLntU5xXuGX6v1qQO63wPYr8whFALjzvy+ctBFbhp GMxTfOMcNzDeAqvMBuVBTo6eOceKxuLqe2HAp7z+ijcnXz2hReyLhuqchxvLgXbj1VlG kc5cn7nViVSR0fScuc3lhGW9iy9RgUZEcocIevnl6QZC3hwvN4Z6K6FIrA7vz9kc1MCM EfOwNdv/TKYI+ja5FnTDNyKAmILAX0tJQGHGYMAa6rGhmuEqKAXq9Hy2pbcUNiYP3Ppe WAgw== X-Gm-Message-State: AO0yUKVxo5NPTFnPj4J9P9b4OS2Ndny2FBtkmK9pXlcZhHxdQlXAk0Cc voPAWltFsj1TvYAeiKl4j4HO2A== X-Received: by 2002:a05:600c:2e95:b0:3dd:1bcc:eb17 with SMTP id p21-20020a05600c2e9500b003dd1bcceb17mr3051433wmn.28.1676489132528; Wed, 15 Feb 2023 11:25:32 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id r18-20020a05600c459200b003dc4baaedd3sm3367513wmo.37.2023.02.15.11.25.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 11:25:32 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 09D2F1FFBC; Wed, 15 Feb 2023 19:25:31 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Michael Roth , Alexander Bulekov , Qiuhao Li , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Markus Armbruster , Paolo Bonzini , qemu-arm@nongnu.org, John Snow , Pavel Dovgalyuk , Darren Kenny , =?utf-8?q?Alex_Benn=C3=A9e?= , Stefan Hajnoczi , Bandan Das , Cleber Rosa , Peter Maydell , Bastian Koppelmann , Yonggang Luo , Li-Wen Hsu , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Thomas Huth , Beraldo Leal , Ed Maste , Wainer dos Santos Moschetta Subject: [PATCH 04/12] tests: be a bit more strict cleaning up fifos Date: Wed, 15 Feb 2023 19:25:22 +0000 Message-Id: <20230215192530.299263-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230215192530.299263-1-alex.bennee@linaro.org> References: <20230215192530.299263-1-alex.bennee@linaro.org> MIME-Version: 1.0 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 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ée Suggested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Reviewed-by: Thomas Huth --- tests/unit/test-io-channel-command.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/unit/test-io-channel-command.c b/tests/unit/test-io-channel-command.c index f3c34152ac..70e82e0e12 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 = g_strsplit(dstargs, " ", -1); QIOChannel *src, *dst; QIOChannelTest *test; + int err; 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)); - g_rmdir(tmpdir); + err = g_unlink(fifo); + g_assert(err == 0); + err = g_rmdir(tmpdir); + g_assert(err == 0); } static void test_io_channel_command_fifo_async(void) From patchwork Wed Feb 15 19:25:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 653740 Delivered-To: patch@linaro.org Received: by 2002:adf:f90f:0:0:0:0:0 with SMTP id b15csp524517wrr; Wed, 15 Feb 2023 11:26:44 -0800 (PST) X-Google-Smtp-Source: AK7set/6kVpNKNf+efK+QiBN/cWr4HIeJHnWiRCcoUOgW4uMiDUglNreqNknS3zu/IbrjLe0JPHo X-Received: by 2002:ac8:7f4d:0:b0:3ba:18e2:7de8 with SMTP id g13-20020ac87f4d000000b003ba18e27de8mr5335248qtk.38.1676489204125; Wed, 15 Feb 2023 11:26:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676489204; cv=none; d=google.com; s=arc-20160816; b=xWVmDTTarNSYPdaJGlnJRFA2KZx6TaHSPJuBpGtc7pnNVycHeOj0e1OvYHR3QEFw/u IIGt7qSTDqyL6g5qGdk7BZNVNSXGhW05Z7HgsvqCIp52M1X+U3fuRe7SGx6RzJ2nJzPq 546Z4FHqBCIMp4qCqF4xflkuuAjGzhjS5HTvzFrQHIthkGTRkG4f67MLAYStKpiHK//L VlIBkBnrx4g0bPgSNKatrGgyzfub9FlutGMkzXvxcHWAy+0cUedtH9aqL5nKBQRZX9jl vKg07kXlJhAM8UQOoQhy8+ZX145h5euVf+tgrfGT7qFWjJzVeWu3dhWCEuDKS+CL3cpj Pe8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/ksx/F/K3dTVIJkDAMxrmn1DlQigNnBQDzfuo/jbZ/g=; b=WAJqdT3sSC3P9ZU4MaIw//8b4yFpm5CewRBdloDU/+w9pkaHmUZSwtZlRbYkONCHnA 8jAjsfv3MDCf9PLPwx5PRgZM5r2v5eV3w7xjvp/xWYU0uQKq/R7aQb6L4kWTlxH17lMN 1KMK/SbG+90Mscjcr4T7s5kgA7gk1EmUOrfu+Eeu/lsakMWzZl04MIsuAb2YO4LNQn3j 2u4mVdAgBnd7+MV9EoOEWsn8rz/kV0fvARSICDD6TYgfTCpeBMn51KhQMAGi2eDQUAWD 6qUOMmAqnaG2+zYrI4TrulB0fnGpGmDVn3uvxDjOMBWMQWs7rBO7M+21oNHEAs6zWlrY TjOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IJmBD5hY; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id p7-20020a05622a048700b003bb7ad76febsi14668748qtx.678.2023.02.15.11.26.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Feb 2023 11:26:44 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IJmBD5hY; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSNPZ-0006nU-QA; Wed, 15 Feb 2023 14:25: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 1pSNPN-0006iS-In for qemu-devel@nongnu.org; Wed, 15 Feb 2023 14:25:38 -0500 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pSNPK-0001gO-QU for qemu-devel@nongnu.org; Wed, 15 Feb 2023 14:25:37 -0500 Received: by mail-wm1-x32e.google.com with SMTP id j29-20020a05600c1c1d00b003dc52fed235so2355723wms.1 for ; Wed, 15 Feb 2023 11:25:34 -0800 (PST) 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=/ksx/F/K3dTVIJkDAMxrmn1DlQigNnBQDzfuo/jbZ/g=; b=IJmBD5hYpXPfk4f5QZVrf03H181gFhyxu0mw/GRc4K/qRZnM8nG3sexu5N5TVXth27 NNVfLIIqEtbKL1gGz0oJacgBLeRH+8KguFODYylIVk4TpLmD146Z76pmYma8DudgGdMl 6wvkimTRMcK/QKJE0tqb68uN8Ogx8wgkrDm9jzpyEHwRhB15P7GrDQvaGQploIjLg5qE 1ohP2Es+F26fsLOOdA2EN579q0dTp1Cx+BFWJKPtcF36MBb+Cgp75FljfXHSsdJUK0TE 487AIpgev0XxrmS/qPz8bwraCOZg7tRb732Sf7dLnPktPU0m5Sy8hQktwMv9eYRP8p+j PDZQ== 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=/ksx/F/K3dTVIJkDAMxrmn1DlQigNnBQDzfuo/jbZ/g=; b=1MazjoJYWUYpo4UcqpOH+6Yu1Ff7CAb77SN0aj6c47b3rkQXveXY1NOnRgoMsCaxjC x7cM64QOmCgR83k/tV6V5tR+eNsMzYR0qqZqm3FlfgxnNC5MFzIXsk6t56duArjRGG51 uZljCBh7HX2sGYdbXsetC/d1hLpyGIbqNx/4SqNx57JCLlEY5tVv4hNUlYw7IynzDFyZ 4aOi32CI30o4XBJn5xiR1Cu7tjGDakq1sOHo+t06cVwZWpA8m9/ICY0xVlET/07H6OZg vr8FqaRkaEbsDRlFpJ2CF7iDDxrUUhs/42CfyBDO/a3a/Y8SDY7cCcQDvW6hKQyHmiSV tX7Q== X-Gm-Message-State: AO0yUKWWJ/lv3OLsSmE5STR09jmWomYBKC1ZUPVABMpwprLvjZAjY+kP 60qIDvICqMNVlBe2EKfeYqSoNQ== X-Received: by 2002:a05:600c:1714:b0:3df:f71b:3f68 with SMTP id c20-20020a05600c171400b003dff71b3f68mr2764924wmn.39.1676489133219; Wed, 15 Feb 2023 11:25:33 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id x7-20020a05600c188700b003cffd3c3d6csm2742432wmp.12.2023.02.15.11.25.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 11:25:32 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 21D041FFBD; Wed, 15 Feb 2023 19:25:31 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Michael Roth , Alexander Bulekov , Qiuhao Li , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Markus Armbruster , Paolo Bonzini , qemu-arm@nongnu.org, John Snow , Pavel Dovgalyuk , Darren Kenny , =?utf-8?q?Alex_Benn=C3=A9e?= , Stefan Hajnoczi , Bandan Das , Cleber Rosa , Peter Maydell , Bastian Koppelmann , Yonggang Luo , Li-Wen Hsu , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Thomas Huth , Beraldo Leal , Ed Maste , Wainer dos Santos Moschetta Subject: [PATCH 05/12] gitlab: reduce default verbosity of cirrus run Date: Wed, 15 Feb 2023 19:25:23 +0000 Message-Id: <20230215192530.299263-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230215192530.299263-1-alex.bennee@linaro.org> References: <20230215192530.299263-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32e.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=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org We also truncate the echoing of the test log if we fail. Ideally we would want the build aretefact to be available to gitlab but so far how to do this eludes me. Signed-off-by: Alex Bennée Cc: Daniel P. Berrangé --- .gitlab-ci.d/cirrus/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.d/cirrus/build.yml b/.gitlab-ci.d/cirrus/build.yml index 7ef6af8d33..6563ff3c7a 100644 --- a/.gitlab-ci.d/cirrus/build.yml +++ b/.gitlab-ci.d/cirrus/build.yml @@ -32,6 +32,6 @@ build_task: - $MAKE -j$(sysctl -n hw.ncpu) - for TARGET in $TEST_TARGETS ; do - $MAKE -j$(sysctl -n hw.ncpu) $TARGET V=1 - || { cat meson-logs/testlog.txt; exit 1; } ; + $MAKE -j$(sysctl -n hw.ncpu) $TARGET + || { tail -n 200 meson-logs/testlog.txt; exit 1; } ; done From patchwork Wed Feb 15 19:25:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 653744 Delivered-To: patch@linaro.org Received: by 2002:adf:f90f:0:0:0:0:0 with SMTP id b15csp524789wrr; Wed, 15 Feb 2023 11:27:18 -0800 (PST) X-Google-Smtp-Source: AK7set9rndyHz4gIFxfoNHNtoRf0eKU0sNllZv46xvKhuYPfO0svxyu9sAZuvo87LT27aPNozyZt X-Received: by 2002:ac8:5883:0:b0:3ba:807:99d9 with SMTP id t3-20020ac85883000000b003ba080799d9mr4681871qta.6.1676489238131; Wed, 15 Feb 2023 11:27:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676489238; cv=none; d=google.com; s=arc-20160816; b=YeyuRapZ0xNkm8EhTU+c2KyO+P9hArdmFef6DD5cRWdkLWAwrhG19MCQGU7xyoxjPP n5M8XHqOofutYdq1K3+XfymazwbzS5aSfyQ1bi5sArV+mNQntf22JUzF3DOWHPYdIDZr auuUKQLSUcSCSEZfxdP3tqS8cyznmYU7eOaRln2lAZYe1MwzrbRKs84hAVABXElSjdAo u2yF+tSQJ771RXUCfXgh/mOCn7hWf+nD5nva/0V5tTSEMGTSTWbRv6j1Gu3IjI5JRVhl ay0Wnk+3cEEfGsU6y22iqjH7y+MFI9M94o6qAyBIkKMM+TYTN9PkZKmSMa6JKrgrqpay xw8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=x9oUeIxFtfrIxx53Ee0pGIAyAlKeHllh0Hr23NIHP5Y=; b=orN5nEV9lvH8ySkdwF0Odyr+sko1Ir7l26cGKbgTBEUcMMEc7sNaIEUT7+65X8mdJd wgbkwt0lV2alQNDDWoQ3+Bvhvv60TJdjsmV7IyIM1nGCeIMSEs/ePjZK4NeVYh54bfNG z2ta/QDZd6kB7ofrizlJRCKldou35ZnKsxyIpCcMsgJnqpHvYx9MabEVeglYBvcruU8K vdSwfBNDWsnqOiLp5cMiDvaIx+9HGb2NwmKf0xegkJ0yf9y5O6U83QNBw9is2v5ArlBu 41iRL2oFHj1cGLnn01PT6JuzYKaVq+yXwo4SPMEwZzChbpNR1ATpsyE67GBoQDPGtx2g 5f9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zuCyHlWo; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id c7-20020a05620a268700b0070922ae66a8si14866230qkp.309.2023.02.15.11.27.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Feb 2023 11:27:18 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zuCyHlWo; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSNPY-0006mv-6l; Wed, 15 Feb 2023 14:25: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 1pSNPP-0006ig-9f for qemu-devel@nongnu.org; Wed, 15 Feb 2023 14:25:40 -0500 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pSNPL-0001go-Lg for qemu-devel@nongnu.org; Wed, 15 Feb 2023 14:25:38 -0500 Received: by mail-wr1-x429.google.com with SMTP id s13so2522332wrw.3 for ; Wed, 15 Feb 2023 11:25:35 -0800 (PST) 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=x9oUeIxFtfrIxx53Ee0pGIAyAlKeHllh0Hr23NIHP5Y=; b=zuCyHlWoTuhgoIjr5AXIkgqM5Kr+R83hZoKh6TvKqE/3q2z8+63dhAKAeFLjUeITL4 nNE2tHnIG4ch3Ua5KN/fxBXgwjD35qXh9uZC2tJ+co0PosPiyIXw2yXG9Rrx17Z/TvPK As3eLK1mQYryPLzjLmyZPsnoOPpc8IooDxS3xjsDG1/i3f2mLO710S4/kMhfsDs93KNL Hd+8vsgDj/ae2CHbzzvv44PwK6Fpq/n4DR1L67p/+DSpFv6FMLM/3uUj+EBjFC0bCy3+ 6Qo6jKd/zxbYyui4wmGYlaqyQVGFwmtIHiqR37Klddv4S87RV8XNdo8KSwD1llLNKICO 38Ag== 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=x9oUeIxFtfrIxx53Ee0pGIAyAlKeHllh0Hr23NIHP5Y=; b=ap6XQLr3woWk8IUhK3aborF1utz77OXHnZM+AyBi8i/DMacTM0nepFt3jqhUYR5ZWX FS+vP6GKa83sqOquX8mv1IBh332h2OeksIRiPQ45PLTqoAFcFmi9LcF1vUggp2D1gfaE 9jq0znop+zUV2IgnJ/Xn/tpAD+xiomnOUZk9AwEZhxkE19+NemW+U7InFYKQGRTrX7+4 eY0FHK2r/+cN9+yXopamDd3xi92/K5WSXO4clQELGPR5aLKyZNJcU6Y5zBXFXJATA4NT VVPpSHCRWjhx8lUsNdlKSKcPTdlG7KSfh4BNQyc4SCp7V1vbFZPVi6fvh+M6J1mTGEQS Ayqg== X-Gm-Message-State: AO0yUKU5he+524XlRqQ2LObN9fGHMC0R+ciyRL/0PstXN3v1GmyYiViB WaZcuyhOwKra7BLRTTVEC/ebhw== X-Received: by 2002:a5d:6a52:0:b0:2c5:54a7:363e with SMTP id t18-20020a5d6a52000000b002c554a7363emr2712979wrw.3.1676489134341; Wed, 15 Feb 2023 11:25:34 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id g4-20020a5d6984000000b002c552c6c8c2sm10823091wru.87.2023.02.15.11.25.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 11:25:32 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 4024C1FFB7; Wed, 15 Feb 2023 19:25:31 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Michael Roth , Alexander Bulekov , Qiuhao Li , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Markus Armbruster , Paolo Bonzini , qemu-arm@nongnu.org, John Snow , Pavel Dovgalyuk , Darren Kenny , =?utf-8?q?Alex_Benn=C3=A9e?= , Stefan Hajnoczi , Bandan Das , Cleber Rosa , Peter Maydell , Bastian Koppelmann , Yonggang Luo , Li-Wen Hsu , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Thomas Huth , Beraldo Leal , Ed Maste , Wainer dos Santos Moschetta Subject: [PATCH 06/12] gitlab: extend custom runners with base_job_template Date: Wed, 15 Feb 2023 19:25:24 +0000 Message-Id: <20230215192530.299263-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230215192530.299263-1-alex.bennee@linaro.org> References: <20230215192530.299263-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x429.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 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ée Reviewed-by: Thomas Huth --- .gitlab-ci.d/custom-runners.yml | 3 ++- .gitlab-ci.d/custom-runners/ubuntu-20.04-s390x.yml | 10 +++++----- .gitlab-ci.d/custom-runners/ubuntu-22.04-aarch32.yml | 2 +- .gitlab-ci.d/custom-runners/ubuntu-22.04-aarch64.yml | 10 +++++----- 4 files changed, 13 insertions(+), 12 deletions(-) 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: # 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-ci.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" 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 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 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 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` 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" 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" 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=40` check 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=40` check 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=40` check 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=40` ubuntu-22.04-aarch64-notcg: - extends: .custom_artifacts_template + extends: .custom_runner_template needs: [] stage: build tags: From patchwork Wed Feb 15 19:25:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 653748 Delivered-To: patch@linaro.org Received: by 2002:adf:f90f:0:0:0:0:0 with SMTP id b15csp525281wrr; Wed, 15 Feb 2023 11:28:24 -0800 (PST) X-Google-Smtp-Source: AK7set95o3KjjAlGjirG3Z7ZqpRSruOikBcWxjIKLsI0WDkAp4wGZ/NazarRQ7hv0i2kL/l3rKbk X-Received: by 2002:a05:622a:88:b0:3ba:247a:3fb7 with SMTP id o8-20020a05622a008800b003ba247a3fb7mr5620590qtw.53.1676489304182; Wed, 15 Feb 2023 11:28:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676489304; cv=none; d=google.com; s=arc-20160816; b=O/xUDCJAqNra6HzSoF6/4nLutzwaJDhERSVgrVSrsM4As7/GUhm7HPRvw/LjZllXd6 Z7rKu/fEyF/oYKujaGfRH5z3mIWTeFEiarkwmnQt2dnYNo/nizBLCogaw64zl+JDxuP0 OuTqvndVfUUMQz634kMH6uLi4tNzq4jyJVlDYFE6enzmU5d7dVG32O+OmeGRK82vjoFR PA6mevjTzQuxbv9TA139BY67lZsfwS74RKDnpaDygVX5qhBQ5FWwuPM6wHhA/BrDK8YD srw+eS5yffIQx+lyOyY3P52EjCJO1Au/V7OKSO+5+mA2ce/nqWO806WB8Gmlco1xeDRk SSEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=gSmn1T2ZUVhv/JvfYoFnkq+8tSAXjNfRrUM4DhYmMNU=; b=D0IvihfC+GPLFxlY9Z70JwDsHXhjhzH22CIxbNsn64jHhnaeBPaAKoLwqW6AlTu5QD ynYGba6oyxcwsXgU8VQBgpmNJBTBTP7oLKbbMrCV6UrPJlrH8iflI4f0bizgSro2B2e6 kJQZTRBK9+SQcvbREeMcUpNgq7M0vEGXfnO1M7JESe7eMoG8Cz/Ll8dC131mEzHc5daN 0RBXZuVKu2DlI/imPo9I1LpgPLDzHY3bOeyCBSA/tL3WmXtsv3T12gWDGzOWTT8lng8J ojWZ7lxq/Hc27bBBMiGEcAjskivJk2rDufjPnRcwaNx6WDBjr6AYGWMX8qmZvPQW3J1K VkwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZLfsxiVk; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id a1-20020a05622a02c100b003b9dfd85b94si15580522qtx.374.2023.02.15.11.28.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Feb 2023 11:28:24 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZLfsxiVk; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSNPi-0007AA-9l; Wed, 15 Feb 2023 14:25:58 -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 1pSNPQ-0006io-7t for qemu-devel@nongnu.org; Wed, 15 Feb 2023 14:25:40 -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 1pSNPM-0001h9-7O for qemu-devel@nongnu.org; Wed, 15 Feb 2023 14:25:39 -0500 Received: by mail-wm1-x32d.google.com with SMTP id z13so14127682wmp.2 for ; Wed, 15 Feb 2023 11:25:35 -0800 (PST) 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=gSmn1T2ZUVhv/JvfYoFnkq+8tSAXjNfRrUM4DhYmMNU=; b=ZLfsxiVkLWmyo0Z1jjw4DTiw8uUc6U8gVb/QQKxuFHgazytsWEpcWhv9SC9bm0Tcd8 0CeuuElCXcxvtOfQ0wIMUT19pn4GSbO74QUTS5KVXFNeptySvtppmz5dSG8/eMrkZ7PV Oqr+5Q1B6fRcWFLPzVK1obtaut5JZvFAPrcOg/EXidLOXjTTcVV3tn5NnAHG/QhAseZK zZNnq95ahR94OoOWcNY/XXih9NNR2essj8ocWwpKBtqnavH5ABM7eu8CWKjFsBAUaH20 O8D2omQ51DYuQMHZSxLtGa7AeIbCPerN7UhdxqVoL5rvX6ptdMboGq9bSdu2bU966Ugo vbhg== 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=gSmn1T2ZUVhv/JvfYoFnkq+8tSAXjNfRrUM4DhYmMNU=; b=tOCx5lrvPYJhDCq2m3atqqEHjq8yX4kSiUCbjNOM5mRVjrzVI9KSl4I0x+oEcYNx0D O72jRkwaH67s1jPq0EeZCsXveFIhfUFRwAUpgoBEpogfSFoRnShSpTWkQdC4oBV15c8P nrnIw1/DiEBqO6idEItb24BiT4iftZxJUf0Fp/Ca/40FedVoZE4lXPSCb1LSyyVIgcjA KnMrAPVwZXZ4RXSlsI9l4YpMmFusazSz3m8fNbicDtEXtfwHjUhvkbSTzW4jbB60wsXD +YvZ1z1qabmf0WDqp7CSglQPNXOTADJpID93BgPWgQHv/dZ03WPkAEXmytLJ6+5E7YDi THnA== X-Gm-Message-State: AO0yUKUShgVy3SktEFfZ0wlP1yEm/evHx8ZcETp0w+a1arZ5t7erph0A lXATA+50EBR3Bd6gOXxAOCdCSA== X-Received: by 2002:a05:600c:2b0f:b0:3dc:1054:3acd with SMTP id y15-20020a05600c2b0f00b003dc10543acdmr2685631wme.17.1676489134663; Wed, 15 Feb 2023 11:25:34 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id j17-20020a05600c191100b003dd1c45a7b0sm3432149wmq.23.2023.02.15.11.25.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 11:25:32 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 66D961FFBE; Wed, 15 Feb 2023 19:25:31 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Michael Roth , Alexander Bulekov , Qiuhao Li , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Markus Armbruster , Paolo Bonzini , qemu-arm@nongnu.org, John Snow , Pavel Dovgalyuk , Darren Kenny , =?utf-8?q?Alex_Benn=C3=A9e?= , Stefan Hajnoczi , Bandan Das , Cleber Rosa , Peter Maydell , Bastian Koppelmann , Yonggang Luo , Li-Wen Hsu , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Thomas Huth , Beraldo Leal , Ed Maste , Wainer dos Santos Moschetta Subject: [PATCH 07/12] testing: update ubuntu2004 to ubuntu2204 Date: Wed, 15 Feb 2023 19:25:25 +0000 Message-Id: <20230215192530.299263-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230215192530.299263-1-alex.bennee@linaro.org> References: <20230215192530.299263-1-alex.bennee@linaro.org> MIME-Version: 1.0 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=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 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. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Reviewed-by: Thomas Huth Reviewed-by: John Snow --- docs/devel/testing.rst | 4 ++-- .gitlab-ci.d/buildtest.yml | 22 +++++++++---------- .gitlab-ci.d/containers.yml | 4 ++-- .../{ubuntu2004.docker => ubuntu2204.docker} | 16 +++++--------- tests/docker/test-tsan | 2 +- tests/lcitool/refresh | 10 +-------- 6 files changed, 23 insertions(+), 35 deletions(-) rename tests/docker/dockerfiles/{ubuntu2004.docker => ubuntu2204.docker} (91%) diff --git a/docs/devel/testing.rst b/docs/devel/testing.rst index e10c47b5a7..309a575abe 100644 --- a/docs/devel/testing.rst +++ b/docs/devel/testing.rst @@ -574,13 +574,13 @@ https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual Thread Sanitizer in Docker ~~~~~~~~~~~~~~~~~~~~~~~~~~ -TSan is currently supported in the ubuntu2004 docker. +TSan is currently supported in the ubuntu2204 docker. The test-tsan test will build using TSan and then run make check. .. code:: - make docker-test-tsan@ubuntu2004 + make docker-test-tsan@ubuntu2204 TSan warnings under docker are placed in files located at build/tsan/. diff --git a/.gitlab-ci.d/buildtest.yml b/.gitlab-ci.d/buildtest.yml index 8f332fc36f..be319ab2d0 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 --enable-fdt=system --enable-capstone TARGETS: aarch64-softmmu 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 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 build-system-debian: @@ -459,10 +459,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=clang-10 --cxx=clang++-10 + IMAGE: ubuntu2204 + CONFIGURE_ARGS: --enable-tsan --cc=clang --cxx=clang++ --enable-trace-backends=ust --enable-fdt=system --disable-slirp TARGETS: x86_64-softmmu ppc64-softmmu riscv64-softmmu x86_64-linux-user MAKE_CHECK_ARGS: bench V=1 @@ -471,10 +471,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 @@ -539,9 +539,9 @@ build-tci: build-coroutine-sigaltstack: extends: .native_build_job_template needs: - job: amd64-ubuntu2004-container + job: amd64-ubuntu2204-container variables: - IMAGE: ubuntu2004 + IMAGE: ubuntu2204 CONFIGURE_ARGS: --with-coroutine=sigaltstack --disable-tcg --enable-trace-backends=ftrace MAKE_CHECK_ARGS: check-unit 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 -amd64-ubuntu2004-container: +amd64-ubuntu2204-container: extends: .container_job_template variables: - NAME: ubuntu2004 + NAME: ubuntu2204 amd64-opensuse-leap-container: extends: .container_job_template diff --git a/tests/docker/dockerfiles/ubuntu2004.docker b/tests/docker/dockerfiles/ubuntu2204.docker similarity index 91% rename from tests/docker/dockerfiles/ubuntu2004.docker rename to tests/docker/dockerfiles/ubuntu2204.docker index f34d88d33d..30b9e56793 100644 --- a/tests/docker/dockerfiles/ubuntu2004.docker +++ b/tests/docker/dockerfiles/ubuntu2204.docker @@ -1,10 +1,10 @@ # THIS FILE WAS AUTO-GENERATED # -# $ lcitool dockerfile --layers all ubuntu-2004 qemu +# $ lcitool dockerfile --layers all ubuntu-2204 qemu # # https://gitlab.com/libvirt/libvirt-ci -FROM docker.io/library/ubuntu:20.04 +FROM docker.io/library/ubuntu:22.04 RUN export DEBIAN_FRONTEND=noninteractive && \ apt-get update && \ @@ -14,7 +14,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ bash \ bc \ bison \ - bsdmainutils \ + bsdextrautils \ bzip2 \ ca-certificates \ ccache \ @@ -36,6 +36,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ libasan5 \ libasound2-dev \ libattr1-dev \ + libbpf-dev \ libbrlapi-dev \ libbz2-dev \ libc6-dev \ @@ -90,6 +91,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ libtasn1-6-dev \ libubsan1 \ libudev-dev \ + liburing-dev \ libusb-1.0-0-dev \ libusbredirhost-dev \ libvdeplug-dev \ @@ -100,6 +102,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ llvm \ locales \ make \ + meson \ multipath-tools \ ncat \ nettle-dev \ @@ -111,11 +114,9 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ python3-opencv \ python3-pillow \ python3-pip \ - python3-setuptools \ python3-sphinx \ python3-sphinx-rtd-theme \ python3-venv \ - python3-wheel \ python3-yaml \ rpm2cpio \ sed \ @@ -139,13 +140,8 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/g++ && \ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc -RUN /usr/bin/pip3 install meson==0.56.0 - 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" -# 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/include/sanitizer/tsan_interface.h 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="/tmp/qemu-test/build/tsan" mkdir -p $tsan_log_dir > /dev/null || true EXTRA_CONFIGURE_OPTS="${EXTRA_CONFIGURE_OPTS} --enable-tsan \ - --cc=clang-10 --cxx=clang++-10 \ + --cc=clang --cxx=clang++ \ --disable-werror --extra-cflags=-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..eeee9a7b34 100755 --- a/tests/lcitool/refresh +++ b/tests/lcitool/refresh @@ -69,13 +69,6 @@ def generate_cirrus(target, trailer=None): generate(filename, cmd, trailer) -ubuntu2004_tsanhack = [ - "# 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,7 @@ try: trailer="".join(debian11_extras)) generate_dockerfile("fedora", "fedora-37") generate_dockerfile("opensuse-leap", "opensuse-leap-153") - generate_dockerfile("ubuntu2004", "ubuntu-2004", - trailer="".join(ubuntu2004_tsanhack)) + generate_dockerfile("ubuntu2204", "ubuntu-2204") # # Cross compiling builds From patchwork Wed Feb 15 19:25:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 653746 Delivered-To: patch@linaro.org Received: by 2002:adf:f90f:0:0:0:0:0 with SMTP id b15csp525091wrr; Wed, 15 Feb 2023 11:27:57 -0800 (PST) X-Google-Smtp-Source: AK7set+uvHecZ3q2gbTy0z8PO4434E/W0BBo+lmcyhIaGf/xriAG7EegW3NNbvRdPb/8ss5imeiY X-Received: by 2002:ac8:7f4c:0:b0:3bd:12d:d488 with SMTP id g12-20020ac87f4c000000b003bd012dd488mr3891969qtk.27.1676489277320; Wed, 15 Feb 2023 11:27:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676489277; cv=none; d=google.com; s=arc-20160816; b=rV+bgV9Ltx1QY8GHoZql95FjdZyOQmHaYkQWmftcjr4/VNjudd0YtgZObfwSDVFaLd iTS2qMQMdgPJu4sQ/iI1Niw2Orlc5+1vU1W4YYniYyYr+em1YsmMQ41LnWOcX2hL2DUD UDRAyBOsJySDK8rBY/7qx267lDDndP10SabnWyjvwHkgwXJtfBH6AfgaY1oX3wgcDmv3 PELnRCvgjStCD3ZRdWYIg0+ByRjsSWd0UjBxXZ+Ffd6W59E5pRC90mSc9MILS367O/PM G5iJefjkqUm6ttxyBKW1RcFr4TAGfTlQBnLJwdf6o50oF+I2mueLDedN/wnCylgzm/5S 2jaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=XyAObTuuAW1poi3AcvAz0z96pccj9dGjW/pdlO/77k0=; b=FM5sLHvY8ekhUgck67nL2iKBTuGGjb49NiwxY/C9s3ho5AuTSH7IplGCLAi493kui4 cZhgSd/Mx7sgtr+NvJ/Bx2FJv+4sS4HibdyNwpKiu93AhL/cU2XceOVeAgGRTA+gTIs4 M0+ZTvkYT8Q4no/aHhv/lRQ3RSruiHG+XfO18iC1zobCtTzx/pDd1vtqvea+EuD8sEuf l3Z9TFN217/vSCR56keTNIBVqu+N0+e7/HuN4XSKEkl91gBrToGIGd+umOmz/Ahpwt4k sROId9sE0xVIz9v41OSfzr9H9S6kzE6BahdTDLAjtCC2ZDLLfjNC9xWf19RiCgqvruxS kE5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sT3Qvngq; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id v2-20020a05622a188200b003b19d09ddf1si14815813qtc.618.2023.02.15.11.27.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Feb 2023 11:27:57 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sT3Qvngq; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSNPh-00074q-5t; Wed, 15 Feb 2023 14:25:57 -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 1pSNPP-0006il-Ns for qemu-devel@nongnu.org; Wed, 15 Feb 2023 14:25:40 -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 1pSNPM-0001hZ-ME for qemu-devel@nongnu.org; Wed, 15 Feb 2023 14:25:39 -0500 Received: by mail-wm1-x32b.google.com with SMTP id l21-20020a05600c1d1500b003dfe462b7e4so3062329wms.0 for ; Wed, 15 Feb 2023 11:25:36 -0800 (PST) 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=XyAObTuuAW1poi3AcvAz0z96pccj9dGjW/pdlO/77k0=; b=sT3QvngqQdOQ3hdG/emwhXY06u87TmRcad3QMWxTQlu6NFhW/RV5+PrpMmjBVxsO+t A6U9yzKIJyVL73+nuf7bnyeZmsBdQPNsISRw3BsqTQCehRBecMTl2Jcw+Lzuj8HyeOUZ wSJIMiUluzGaC84xnNbXS7kOJ/kDVa4gaOUsu11qA2Is61P/sbH6VK+dHPpjCbpRRhtq itRnoOh1bR2DWC7HHnVP/lP1AziTpkSADfUkaaSZ3d91JjYl/NR8W/e+UX1vgMwgNeY6 CqssR9JxqnMSt8p3B6795T5mLal54xwFHKXbIBAEJ8Djle/e40WzLWqfeeHXK4JRLf0d IrGg== 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=XyAObTuuAW1poi3AcvAz0z96pccj9dGjW/pdlO/77k0=; b=AKcwIZA1vcWJqw8ierWGSDmDwMlohHFuIRSap0xK+bTi7E1m0toDezg8qEEPGfc92q au5LJy/mR/mIENsor3qitDxEPbggmIA9R1NBFnDr0uLjzefd5DOr2Sp9M/OGYs+33U8Q FrJR9udziPAbeJyE4p0Qd5tOEWpSYdWMIK3Pgelbi9aOiuNm2NUJZFjq6IfzT57+Z02p l9WPr9CS0QSn/g/0er2MMJYJFZrjSphZ50LHAB5jTRvzu/eZG05d7gthxjYWgdiY+aeT BPBKlVoViPILpMDoSqYQGdolvC9mVJ2X7QpGPQxjrBgDGtTDZFp9eezGhXQgIGv2IQQY l96A== X-Gm-Message-State: AO0yUKWj3Vo8gPzUM5sxUsRCxFnmgQ9ONe0XcQJUgnBnOupzSe/FSoOX xm1r+tGLEQVwrGKVR5zIPOBkEQ== X-Received: by 2002:a05:600c:a292:b0:3d9:fb59:c16b with SMTP id hu18-20020a05600ca29200b003d9fb59c16bmr2902683wmb.36.1676489135410; Wed, 15 Feb 2023 11:25:35 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id e1-20020a5d5941000000b002c54241b4fesm15206046wri.80.2023.02.15.11.25.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 11:25:32 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 7F7D91FFBF; Wed, 15 Feb 2023 19:25:31 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Michael Roth , Alexander Bulekov , Qiuhao Li , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Markus Armbruster , Paolo Bonzini , qemu-arm@nongnu.org, John Snow , Pavel Dovgalyuk , Darren Kenny , =?utf-8?q?Alex_Benn=C3=A9e?= , Stefan Hajnoczi , Bandan Das , Cleber Rosa , Peter Maydell , Bastian Koppelmann , Yonggang Luo , Li-Wen Hsu , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Thomas Huth , Beraldo Leal , Ed Maste , Wainer dos Santos Moschetta Subject: [PATCH 08/12] tests: skip the nios2 replay_kernel test Date: Wed, 15 Feb 2023 19:25:26 +0000 Message-Id: <20230215192530.299263-9-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230215192530.299263-1-alex.bennee@linaro.org> References: <20230215192530.299263-1-alex.bennee@linaro.org> MIME-Version: 1.0 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org It is buggy and keeps failing. Suggested-by: Peter Maydell Signed-off-by: Alex Bennée Acked-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- tests/avocado/replay_kernel.py | 1 + 1 file changed, 1 insertion(+) 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 = self.fetch_asset(tar_url, asset_hash=tar_hash) self.do_test_advcal_2018(file_path, 'vmlinux') + @skip("nios2 emulation is buggy under record/replay") def test_nios2_10m50(self): """ :avocado: tags=arch:nios2 From patchwork Wed Feb 15 19:25:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 653741 Delivered-To: patch@linaro.org Received: by 2002:adf:f90f:0:0:0:0:0 with SMTP id b15csp524655wrr; Wed, 15 Feb 2023 11:27:01 -0800 (PST) X-Google-Smtp-Source: AK7set8kbYvAqFSqJ4h7SK5skMxuhga3fTOSLP5PKwefLEPAaA9f/wq0eRmXoyBhpFavMTkdH8Pc X-Received: by 2002:a05:6214:29c2:b0:56e:8f5e:d972 with SMTP id gh2-20020a05621429c200b0056e8f5ed972mr6880188qvb.3.1676489221107; Wed, 15 Feb 2023 11:27:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676489221; cv=none; d=google.com; s=arc-20160816; b=uVDkqi2j0lqOLOkdOBgvAC4hrrR2HxiTHuHDE9zev6KXrNV4YGDWs6yQXqP5pn4/UH /n17z5rqqOTE2BJ1bNzxJ6FK6zdxwCuQw41E7TuTKDrlZtOp1lBpjvrOFivWj9F//TZC GjQhmdMwImFsZazzQxk2oSw7aSW6IbrAm9/1VU3pffigDVBX56tAgx8B1uqfr5C6pkNi Nr4kLyY/obAuHl3ScUpNPFniIT0s2XlFt1TGI3/pdxweHl9oSej7UIdUJLsBcR5LOjxr djSwG8K6QxCPzlb5mvT/CIMOYRuUeqX84KyJUS+cJpnywkedgdOyawVMIbnV4jERsAYu lgzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=fVmtIyUz/r0kwFhsKBxuA3oYI9V10yE6GbBrHY8IsX8=; b=nZ/NGyUlzOmpGmtKQSa1mhPCOZOs1F0cGc4RSFW2BjfW/kRoeBpwZo+jCj0P6SzDDK 9FPfjhe/LrwXmTZAXQfnipICxkyGd4cyepihvZUPQABsulhlsvZ6cBRIU+cLtHysdNBA uNpG+kA4lY6BD+1X6SXnMEpY4MrMdOAEjohbBtAmODEUQzPTk7odd3ey5E6HUho62Ldc OeCktg+Xm8cPYwLwdEroRHp0V6TXjqH5q0MD7wOt1+/gtn1ZewYo5TX9arKWFFjntAOl aU47/6ZDknKWgdYFxHWFATKbsi5nZRYbyMIAetlp9LOmIg0CKgXKInPcHubdJTXUUfcq ux9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bc1fyH5b; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id w19-20020a0cdf93000000b0056e99c5ff43si11268348qvl.11.2023.02.15.11.27.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Feb 2023 11:27:01 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bc1fyH5b; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSNPk-0007EF-Fd; Wed, 15 Feb 2023 14:26:00 -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 1pSNPS-0006kr-Hy for qemu-devel@nongnu.org; Wed, 15 Feb 2023 14:25:42 -0500 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pSNPO-0001ia-Vp for qemu-devel@nongnu.org; Wed, 15 Feb 2023 14:25:42 -0500 Received: by mail-wm1-x329.google.com with SMTP id m20-20020a05600c3b1400b003e1e754657aso2410045wms.2 for ; Wed, 15 Feb 2023 11:25:37 -0800 (PST) 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=fVmtIyUz/r0kwFhsKBxuA3oYI9V10yE6GbBrHY8IsX8=; b=bc1fyH5b4tTJYmzO/8YgqNOP+zW/xQrr46b+V4WEFLux8tbyIlCno9+ryHPOgofZBI pg0MydG8sGT+/IupGUWICycW/RXiqEInqf/7Yv2f7gaMPlaJCzQKp1z2JV7nGbBJII0b jhT2bY71O6aGz1LS2gSBIDVa7xMwmJGfqgok4CV8Y8UQ+QqS0YmqOxFNvYAGWemKnNLw bCl2Av7n68TFG2RwllnEZMvysbUgEAeNf4I92FubR49+apvFxmnGFeEQr/bi1j6MVbV0 IbD6iIVdFLEOgPpeV1KMRXVaEAuEaKmxn18NaYL7p1LH6vld+gKBGMU+I0MSytPpBY+K cRoQ== 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=fVmtIyUz/r0kwFhsKBxuA3oYI9V10yE6GbBrHY8IsX8=; b=oVcn3ub+/F0aWqLy0JMheCxr9BnDWNK59kR3a8uAZY+LzH0OOozjZSoOEvz5RxROep LeCoFpPI4DbL8nAI/JvoLYVTWJaQ4gNhpJRcTQND9cq+NdMWT9L0C9SqkyVvKfoOP8mk 3UZqpZiq8Sw1OLfPW1yoiIW8Mwvqq/eXEdBFLFpC0wn+DEBqP2Yleyscy6MWjDbIM3Yc 4ftZBBKVIrvj+iFvyF0JItSZq/GJaWaERflNkcjoH0aM95k37pu+fn6Tep/Hq8oE6yDV 5u8W0a+q1MYNnZF29DsMoBcYODMbzMkOuXwikThOpuE7y4nGix5kOSkAzIyVEAFQTppS WyvA== X-Gm-Message-State: AO0yUKUW8q93IRTmoieARxYxbS0pVSYVdvUsL0EH/JVS372ngTJrlqBc WoO8IZSY4Xsn5xQ3y18ZtCWKcg== X-Received: by 2002:a05:600c:a28a:b0:3e0:117:b627 with SMTP id hu10-20020a05600ca28a00b003e00117b627mr2827456wmb.20.1676489136807; Wed, 15 Feb 2023 11:25:36 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id w8-20020a05600c474800b003de2fc8214esm3172507wmo.20.2023.02.15.11.25.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 11:25:35 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 9D23F1FFB8; Wed, 15 Feb 2023 19:25:31 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Michael Roth , Alexander Bulekov , Qiuhao Li , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Markus Armbruster , Paolo Bonzini , qemu-arm@nongnu.org, John Snow , Pavel Dovgalyuk , Darren Kenny , =?utf-8?q?Alex_Benn=C3=A9e?= , Stefan Hajnoczi , Bandan Das , Cleber Rosa , Peter Maydell , Bastian Koppelmann , Yonggang Luo , Li-Wen Hsu , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Thomas Huth , Beraldo Leal , Ed Maste , Wainer dos Santos Moschetta , Anders Roxell Subject: [PATCH 09/12] tests: add tuxrun baseline test to avocado Date: Wed, 15 Feb 2023 19:25:27 +0000 Message-Id: <20230215192530.299263-10-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230215192530.299263-1-alex.bennee@linaro.org> References: <20230215192530.299263-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x329.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 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 there 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ée Cc: Anders Roxell Reviewed-by: Philippe Mathieu-Daudé --- v2 - renamed to tuxrun_baselines, update commit message - add remaining targets - add more metadata tags for the differences - refactor tag code - skip mips64 and sh4 tests in CI - slightly increase delay for login - include in MAINTAINERS --- MAINTAINERS | 1 + tests/avocado/tuxrun_baselines.py | 423 ++++++++++++++++++++++++++++++ 2 files changed, 424 insertions(+) create mode 100644 tests/avocado/tuxrun_baselines.py diff --git a/MAINTAINERS b/MAINTAINERS index fd54c1f140..be100272b3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3760,6 +3760,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_baselines.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ée +# +# 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=accel:tcg + """ + + KERNEL_COMMON_COMMAND_LINE = 'printk.time=0' + # Tests are ~10-40s, allow for --debug/--enable-gcov overhead + timeout = 100 + + def get_tag(self, tagname, default=None): + """ + Get the metadata tag or return the default. + """ + utag = 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 = find_command('zstd', False) + if zstd is False: + self.cancel('Could not find "zstd", which is required to ' + 'decompress rootfs') + self.zstd = 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 = self.get_tag('tuxboot') + + # Most Linux's use ttyS0 for their serial port + self.console = self.get_tag('console', "ttyS0") + + # Does the machine shutdown QEMU nicely on "halt" + self.shutdown = self.get_tag('shutdown') + + # The name of the kernel Image file + self.image = self.get_tag('image', "Image") + + # The block device drive type + self.drive = self.get_tag('drive', "virtio-blk-device") + + self.root = self.get_tag('root', "vda") + + # Occasionally we need extra devices to hook things up + self.extradev = self.get_tag('extradev') + + def wait_for_console_pattern(self, success_message, vm=None): + wait_for_console_pattern(self, success_message, + failure_message='Kernel panic - not syncing', + vm=vm) + + def fetch_tuxrun_assets(self, dt=None): + """ + Fetch the TuxBoot assets. They are stored in a standard way so we + use the per-test tags to fetch details. + """ + base_url = f"https://storage.tuxboot.com/{self.tuxboot}/" + kernel_image = self.fetch_asset(base_url + self.image) + disk_image_zst = self.fetch_asset(base_url + "rootfs.ext4.zst") + + cmd = f"{self.zstd} -d {disk_image_zst} -o {self.workdir}/rootfs.ext4" + process.run(cmd) + + if dt: + dtb = self.fetch_asset(base_url + dt) + else: + dtb = None + + return (kernel_image, self.workdir + "/rootfs.ext4", dtb) + + def prepare_run(self, kernel, disk, dtb=None, console_index=0): + """ + Setup to run and add the common parameters to the system + """ + self.vm.set_console(console_index=console_index) + + # all block devices are raw ext4's + blockdev = "driver=raw,file.driver=file," \ + + f"file.filename={disk},node-name=hd0" + + kcmd_line = self.KERNEL_COMMON_COMMAND_LINE + kcmd_line += f" root=/dev/{self.root}" + kcmd_line += f" console={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 != "none": + self.vm.add_args('-device', + f"{self.drive},drive=hd0") + + # 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 == "nowait": + self.vm.shutdown() + else: + self.vm.wait() + + def common_tuxrun(self, dt=None, haltmsg="reboot: System halted", + console_index=0): + """ + 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) = 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=arch:aarch64 + :avocado: tags=cpu:cortex-a57 + :avocado: tags=machine:virt + :avocado: tags=tuxboot:arm64 + :avocado: tags=console:ttyAMA0 + :avocado: tags=shutdown:nowait + """ + self.common_tuxrun() + + def test_arm64be(self): + """ + :avocado: tags=arch:aarch64 + :avocado: tags=cpu:cortex-a57 + :avocado: tags=endian:big + :avocado: tags=machine:virt + :avocado: tags=tuxboot:arm64be + :avocado: tags=console:ttyAMA0 + :avocado: tags=shutdown:nowait + """ + self.common_tuxrun() + + def test_armv5(self): + """ + :avocado: tags=arch:arm + :avocado: tags=cpu:arm926 + :avocado: tags=machine:versatilepb + :avocado: tags=tuxboot:armv5 + :avocado: tags=image:zImage + :avocado: tags=drive:virtio-blk-pci + :avocado: tags=console:ttyAMA0 + :avocado: tags=shutdown:nowait + """ + self.common_tuxrun(dt="versatile-pb.dtb") + + def test_armv7(self): + """ + :avocado: tags=arch:arm + :avocado: tags=cpu:cortex-a15 + :avocado: tags=machine:virt + :avocado: tags=tuxboot:armv7 + :avocado: tags=image:zImage + :avocado: tags=console:ttyAMA0 + :avocado: tags=shutdown:nowait + """ + self.common_tuxrun() + + def test_armv7be(self): + """ + :avocado: tags=arch:arm + :avocado: tags=cpu:cortex-a15 + :avocado: tags=endian:big + :avocado: tags=machine:virt + :avocado: tags=tuxboot:armv7be + :avocado: tags=image:zImage + :avocado: tags=console:ttyAMA0 + :avocado: tags=shutdown:nowait + """ + self.common_tuxrun() + + def test_i386(self): + """ + :avocado: tags=arch:i386 + :avocado: tags=cpu:coreduo + :avocado: tags=machine:q35 + :avocado: tags=tuxboot:i386 + :avocado: tags=image:bzImage + :avocado: tags=drive:virtio-blk-pci + :avocado: tags=shutdown:nowait + """ + self.common_tuxrun() + + def test_mips32(self): + """ + :avocado: tags=arch:mips + :avocado: tags=machine:malta + :avocado: tags=cpu:mips32r6-generic + :avocado: tags=endian:big + :avocado: tags=tuxboot:mips32 + :avocado: tags=image:vmlinux + :avocado: tags=drive:driver=ide-hd,bus=ide.0,unit=0 + :avocado: tags=root:sda + :avocado: tags=shutdown:nowait + """ + self.common_tuxrun() + + def test_mips32el(self): + """ + :avocado: tags=arch:mipsel + :avocado: tags=machine:malta + :avocado: tags=cpu:mips32r6-generic + :avocado: tags=tuxboot:mips32el + :avocado: tags=image:vmlinux + :avocado: tags=drive:driver=ide-hd,bus=ide.0,unit=0 + :avocado: tags=root:sda + :avocado: tags=shutdown:nowait + """ + self.common_tuxrun() + + @skip("QEMU currently broken") # regression against stable QEMU + def test_mips64(self): + """ + :avocado: tags=arch:mips64 + :avocado: tags=machine:malta + :avocado: tags=tuxboot:mips64 + :avocado: tags=endian:big + :avocado: tags=image:vmlinux + :avocado: tags=drive:driver=ide-hd,bus=ide.0,unit=0 + :avocado: tags=root:sda + :avocado: tags=shutdown:nowait + """ + self.common_tuxrun() + + def test_mips64el(self): + """ + :avocado: tags=arch:mips64el + :avocado: tags=machine:malta + :avocado: tags=tuxboot:mips64el + :avocado: tags=image:vmlinux + :avocado: tags=drive:driver=ide-hd,bus=ide.0,unit=0 + :avocado: tags=root:sda + :avocado: tags=shutdown:nowait + """ + self.common_tuxrun() + + def test_ppc32(self): + """ + :avocado: tags=arch:ppc + :avocado: tags=machine:ppce500 + :avocado: tags=cpu:e500mc + :avocado: tags=tuxboot:ppc32 + :avocado: tags=image:uImage + :avocado: tags=drive:virtio-blk-pci + :avocado: tags=shutdown:nowait + """ + self.common_tuxrun() + + def test_ppc64(self): + """ + :avocado: tags=arch:ppc64 + :avocado: tags=machine:pseries + :avocado: tags=cpu:POWER8 + :avocado: tags=endian:big + :avocado: tags=console:hvc0 + :avocado: tags=tuxboot:ppc64 + :avocado: tags=image:vmlinux + :avocado: tags=extradev:driver=spapr-vscsi + :avocado: tags=drive:scsi-hd + :avocado: tags=root:sda + """ + self.common_tuxrun() + + def test_ppc64le(self): + """ + :avocado: tags=arch:ppc64 + :avocado: tags=machine:pseries + :avocado: tags=cpu:POWER8 + :avocado: tags=console:hvc0 + :avocado: tags=tuxboot:ppc64le + :avocado: tags=image:vmlinux + :avocado: tags=extradev:driver=spapr-vscsi + :avocado: tags=drive:scsi-hd + :avocado: tags=root:sda + """ + self.common_tuxrun() + + def test_riscv32(self): + """ + :avocado: tags=arch:riscv32 + :avocado: tags=machine:virt + :avocado: tags=tuxboot:riscv32 + """ + self.common_tuxrun() + + def test_riscv64(self): + """ + :avocado: tags=arch:riscv64 + :avocado: tags=machine:virt + :avocado: tags=tuxboot:riscv64 + """ + self.common_tuxrun() + + def test_s390(self): + """ + :avocado: tags=arch:s390x + :avocado: tags=endian:big + :avocado: tags=tuxboot:s390 + :avocado: tags=image:bzImage + :avocado: tags=drive:virtio-blk-ccw + :avocado: tags=shutdown:nowait + """ + self.common_tuxrun(haltmsg="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=arch:sh4 + :avocado: tags=machine:r2d + :avocado: tags=cpu:sh7785 + :avocado: tags=tuxboot:sh4 + :avocado: tags=image:zImage + :avocado: tags=root:sda + :avocado: tags=drive:driver=ide-hd,bus=ide.0,unit=0 + :avocado: tags=console: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) = self.fetch_tuxrun_assets() + + # the console comes on the second serial port + self.prepare_run(kernel, disk, console_index=1) + 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=arch:sparc64 + :avocado: tags=tuxboot:sparc64 + :avocado: tags=image:vmlinux + :avocado: tags=root:sda + :avocado: tags=drive:driver=ide-hd,bus=ide.0,unit=0 + :avocado: tags=shutdown:nowait + """ + self.common_tuxrun() + + def test_x86_64(self): + """ + :avocado: tags=arch:x86_64 + :avocado: tags=machine:q35 + :avocado: tags=cpu:Nehalem + :avocado: tags=tuxboot:x86_64 + :avocado: tags=image:bzImage + :avocado: tags=root:sda + :avocado: tags=drive:driver=ide-hd,bus=ide.0,unit=0 + :avocado: tags=shutdown:nowait + """ + self.common_tuxrun() From patchwork Wed Feb 15 19:25:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 653745 Delivered-To: patch@linaro.org Received: by 2002:adf:f90f:0:0:0:0:0 with SMTP id b15csp524967wrr; Wed, 15 Feb 2023 11:27:41 -0800 (PST) X-Google-Smtp-Source: AK7set88pfOf+I/2nklzwQsMIqCNIFs2Js0Uvv/JUZhRubLsfOabzawi/C2ER4yAJQUp3iz1lUUn X-Received: by 2002:a05:622a:1483:b0:3ba:2722:e8d7 with SMTP id t3-20020a05622a148300b003ba2722e8d7mr5474337qtx.7.1676489261593; Wed, 15 Feb 2023 11:27:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676489261; cv=none; d=google.com; s=arc-20160816; b=zBHSeJFYr8gghvEaVTVbRvE1hlSV2miHYF/u5dxMwlGjJ6zM/pHOgajWtbekkJNxxI z5VmaIMaZlZPZ8lFoYv5WsTnH6ogvCfSlEQB02pf/4pxfUD8UoE6UBSmG14/r3nXiV7d bOjRrcczNu9prpVOnROBin6ivaqjE5xNhZeLTOASFXOXn5fbHoBs8+MrA+/gSDbyD7tB RigM3t1L2ShVC7ihJCW9Mo1yVFtqBjGsyeRHcMJKX230T87Bqi5JolEqCBx41HvHKTgP s1mPJzrE7e/t55JSx8phoLgVdCoHR2hi5spWevjty8hkUap3KMR1E4AAp/Y1K3TV5vJN Yv+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=i1ygqzeQVGCuPcwoBCSUGziqmUHDcFPufoB7wqrTRgA=; b=mw0qWhPP4nPpf1fz6sZwUXXA+g+lvIUn1u4fLYRZhu9LShttleckkjqTzskHaF1Z/U kjU1Z5LVgmTGzU9WyapF3lESmj7Zs3e07bQQO6vja8bQZRQsMQNptJW/+TcSBwPqm9Ky zpgivUco3xUFrfPOHSsIaa+JEWO0bOidj5Jn5++tiCHKy1vvypwCfxVl7BMojBuC8EBj 8EuQCJvYkAI+3OrXhGVLrO2BWRsqg+5R4wWeNEQ8y4v8CtyHP7F9RYclefE8qV6ZR9MH mcL1C1cTd5i5WwQEdFhv5kgLk5oSuNXFqiuJqR/ArUcNc2vFE2t6sUWYp/10hvXiU0p1 i+8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="I/oM8+D+"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id bq38-20020a05620a46a600b007293ca24c3csi15502384qkb.24.2023.02.15.11.27.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Feb 2023 11:27:41 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="I/oM8+D+"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSNPY-0006nF-Ki; Wed, 15 Feb 2023 14:25: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 1pSNPS-0006kq-BS for qemu-devel@nongnu.org; Wed, 15 Feb 2023 14:25:42 -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 1pSNPP-0001i4-1U for qemu-devel@nongnu.org; Wed, 15 Feb 2023 14:25:42 -0500 Received: by mail-wm1-x334.google.com with SMTP id f18-20020a7bcd12000000b003e206711347so1392992wmj.0 for ; Wed, 15 Feb 2023 11:25:37 -0800 (PST) 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=i1ygqzeQVGCuPcwoBCSUGziqmUHDcFPufoB7wqrTRgA=; b=I/oM8+D+GrSfvNQPpiDGm0TisB+8JUD53RZfysZAY5P0rvpowslOp97hpLY+VjgSPk TV6hnUmP3zlITqsNAEsFGsoJMVGq/L68aB++vHlQcGnIJlqGZK+UKXlWjfqrfFXpuc3g TDWmzl0uvGn0oRq2ryiVeD2YdWdMti2zlhuZ5Uq00L2GlYKQHbyC6F6G1eicq9W0mmHP 9Gj7qE7/G+OSMk+rXtiLCzhuCH2JqTzo5lBMaUWNWukWSDQ46PJbF9XEnmDCa5wJ+Snc ZqE8F6DQlCeYd8eC8DVJR5wdXCEtzv0s24bZxfRrYCxT4F8HiVBwuqWBrg97BIpE4M2T GdLg== 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=i1ygqzeQVGCuPcwoBCSUGziqmUHDcFPufoB7wqrTRgA=; b=w0lW9iHedbGdZ8fStVy5FqCg7Vc5QwvLMMJT2iJyyZvY26EdQ7mSZpqPAD12QxP8ig vfF+HO5OrsaoXph5VugVKRNLhqrAhCep+SK8RF3jFcms3ibowemPHHW5Y44cC05eb5Xc tXhGo1gB0lEOEi7rbxWf8gZISR3kbj7Wb1SfVJ4BcKASF2jO7EPVajUjWl9aQEPl/86D yR6ZGwzMrXzcCF/vKyGVBEcngDiy9bg31uwLaPK7xLFPeyD1Go8fZ1YfwRp2pmFmcTd6 UN6j1GmJGM15lQcGBtlVPfnOVWgjIxKyKDQ1Ib6TvMo0v91mAXwknT8INpRO6oGo3fhg CsaA== X-Gm-Message-State: AO0yUKVHT9tFUiWOmIcJKkfYouktxf9GflMBcWN4YCSsCld7F/BQYHkM avUONUkuUtZpzpXbp6Svnw5P6NPDxrvlcMo2 X-Received: by 2002:a05:600c:5386:b0:3df:9858:c039 with SMTP id hg6-20020a05600c538600b003df9858c039mr4233323wmb.14.1676489136046; Wed, 15 Feb 2023 11:25:36 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id i19-20020a05600c355300b003e200d3b2d1sm3079714wmq.38.2023.02.15.11.25.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 11:25:35 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id B97AA1FFC0; Wed, 15 Feb 2023 19:25:31 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Michael Roth , Alexander Bulekov , Qiuhao Li , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Markus Armbruster , Paolo Bonzini , qemu-arm@nongnu.org, John Snow , Pavel Dovgalyuk , Darren Kenny , =?utf-8?q?Alex_Benn=C3=A9e?= , Stefan Hajnoczi , Bandan Das , Cleber Rosa , Peter Maydell , Bastian Koppelmann , Yonggang Luo , Li-Wen Hsu , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Thomas Huth , Beraldo Leal , Ed Maste , Wainer dos Santos Moschetta Subject: [PATCH 10/12] tests/docker: Use binaries for debian-tricore-cross Date: Wed, 15 Feb 2023 19:25:28 +0000 Message-Id: <20230215192530.299263-11-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230215192530.299263-1-alex.bennee@linaro.org> References: <20230215192530.299263-1-alex.bennee@linaro.org> MIME-Version: 1.0 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=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 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ée Reviewed-by: Philippe Mathieu-Daudé --- tests/tcg/tricore/macros.h | 2 +- tests/docker/dockerfiles/debian-tricore-cross.docker | 10 +++------- tests/tcg/tricore/Makefile.softmmu-target | 6 +++--- 3 files changed, 7 insertions(+), 11 deletions(-) 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; \ ) diff --git a/tests/docker/dockerfiles/debian-tricore-cross.docker b/tests/docker/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 -RUN git clone --single-branch \ - https://github.com/bkoppelmann/tricore-binutils.git \ - /usr/src/binutils && \ - cd /usr/src/binutils && chmod +x missing && \ - CFLAGS=-w ./configure --prefix=/usr/local --disable-nls --target=tricore && \ - 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/ # 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 = $(SRC_PATH)/tests/tcg/tricore -LDFLAGS = -T$(TESTS_PATH)/link.ld -ASFLAGS = +LDFLAGS = -T$(TESTS_PATH)/link.ld --mcpu=tc162 +ASFLAGS = -mtc162 TESTS += test_abs.tst TESTS += test_bmerge.tst @@ -19,7 +19,7 @@ TESTS += test_madd.tst TESTS += test_msub.tst TESTS += test_muls.tst -QEMU_OPTS += -M tricore_testboard -nographic -kernel +QEMU_OPTS += -M tricore_testboard -cpu tc27x -nographic -kernel %.pS: $(TESTS_PATH)/%.S $(HOST_CC) -E -o $@ $< From patchwork Wed Feb 15 19:25:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 653747 Delivered-To: patch@linaro.org Received: by 2002:adf:f90f:0:0:0:0:0 with SMTP id b15csp525249wrr; Wed, 15 Feb 2023 11:28:19 -0800 (PST) X-Google-Smtp-Source: AK7set9Stcaw9r2ruy71opvR6N6ay37iG9pu3cJiK65xv+kOClZFa14OUvnG8Z30pWLTEbhq0N95 X-Received: by 2002:ad4:5c85:0:b0:56e:b7a4:be56 with SMTP id o5-20020ad45c85000000b0056eb7a4be56mr7563283qvh.26.1676489299368; Wed, 15 Feb 2023 11:28:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676489299; cv=none; d=google.com; s=arc-20160816; b=zTQ/HcHru8E6YOBA/Nm+UTJW5DLVqWXcDFW6wxGGS3DkRWpHj4qMaMEI80ls848kwf pMXO5bqOMb7tAajnAsHFWf6pG0YpQ6FCKE7gywPqtPrAm01NlsB6WpwT6XL0it731aRo Mtx527aG1lmq5NFs5zDiYKMrrR5vaRbagak7pA/S9qNwW47ls9LqfHJomLlLt+J/43jl 5V6im4YMzY5PCuqaTZ5qeJgzd0HFm7cVCxPfGlRuMdwSkVlypNtTGfX9Wi7yvfz88YG9 BomkDTxM6XNvkVsxezzjOLpfybeH+4YF53R3uUInt7VBY/eiu3HiGe9SGRsWvMY4FV/O HFAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=RPAcXxshM3oIDV7Nd8qDMhK+ewSzYoeyH2TxIrPviEw=; b=U/ridPf0Ehw+clZma1ANAjnDachFcztAjEvN0DjYBjMvvA6kNrqglEBz30ncemzpCo vgHsE6VmKv06YjgEVaRTrT9xxEVCGI238pe1HAAyavFXe2vvygERDwYNHCtl8uHrkJxy YxjlXZEqun5xdr5xbhG6rqKPt8u2MWGFuiYOzQjqOU2cJzcqPvzTvSR81DXdmuPbwNO6 qi9tMdXp0gLDTQ8klF/y5TpocSzD2HOhedvySNOsoOljB1fIwQcTgtjnvhGZVEPM7Rvw 7vw7bror9U3GOb/mRs8xeXSIQGQsvJqF0iNHmGIDs/9qiPKXx2rMkvvqNAlJbY6iU7WV fm9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JJEZaLcg; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id z14-20020a0cf00e000000b0056c5a40a63csi4840152qvk.567.2023.02.15.11.28.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Feb 2023 11:28:19 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JJEZaLcg; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSNPi-0007BF-GH; Wed, 15 Feb 2023 14:25:58 -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 1pSNPR-0006k0-0l for qemu-devel@nongnu.org; Wed, 15 Feb 2023 14:25:41 -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 1pSNPO-0001iF-Vz for qemu-devel@nongnu.org; Wed, 15 Feb 2023 14:25:40 -0500 Received: by mail-wr1-x42e.google.com with SMTP id s13so2522415wrw.3 for ; Wed, 15 Feb 2023 11:25:37 -0800 (PST) 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=RPAcXxshM3oIDV7Nd8qDMhK+ewSzYoeyH2TxIrPviEw=; b=JJEZaLcg9Dpi7T3f8dimDzVETCGPAs39sMlRf4mjIzonw0SsNVBe38b/ux0XlVoaIv KYp6A5YIfwrFNEpS9TE8qX4dO7Pof2estZODjgM3xF27bTISr36Gx0Sgo9EwZsGEX524 5Y4ZxboclN6azXvMnS8Akl7x0F2xodHIhjRQPc/F11/qk3lkcJhhmD+S5iHek7HmAval q0BzAGXc/rUfI737QFGoWPfnIij+bEsRudzgLZ+XwbDXVdaEvoqwgiz0ERVBlJnX2fJ+ mGnA5QT3VE2sWtr16pzYBdAfk7pVNJxw6m+DhZRpo3k2iXjYyz8d4NldXkKnbMEny8H/ 80TQ== 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=RPAcXxshM3oIDV7Nd8qDMhK+ewSzYoeyH2TxIrPviEw=; b=qkS43Gpz4v5D6arTMbDApCiGu5CtCfWD5+2PayvlFsgqILco/al0gqeDW645qsu6VH dBWX+H2gY0H08xSMkmaOaWMy/zPGkLxVUzqiRV1no1+ujPhhd+TGo3gVwWqZGQ1ERAeg DPpByO0T+ywgFVWxCXl7eR8r78I8NkfKfOaT8E++lGfochWZGlYdraLuDgZCp6w1vsOy Ucnq0H1W2TRJR5CSc45t0fC5vfR54eZ3ntQ2rxLcN+AqHXSwbAEUAhP+oZJNzkSInjC5 hEdjlbef8B0kBrMKCBiZYzWekZsGQstW4RjauRWQkoujF+S01Itr3f3Qz0/T97YTTyzW eaXw== X-Gm-Message-State: AO0yUKUbiKLyKOvJsKcQZB5ghnYeCV4+WfbTf2bhVMTf/F0CJxYD5wfG wV2ioVJYCUCohku0x4prlTyWHQ== X-Received: by 2002:adf:eece:0:b0:2c5:561e:80a0 with SMTP id a14-20020adfeece000000b002c5561e80a0mr2183799wrp.45.1676489136333; Wed, 15 Feb 2023 11:25:36 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id b4-20020a5d4b84000000b002c55b0e6ef1sm7193127wrt.4.2023.02.15.11.25.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 11:25:35 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id D34D61FFC1; Wed, 15 Feb 2023 19:25:31 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Michael Roth , Alexander Bulekov , Qiuhao Li , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Markus Armbruster , Paolo Bonzini , qemu-arm@nongnu.org, John Snow , Pavel Dovgalyuk , Darren Kenny , =?utf-8?q?Alex_Benn=C3=A9e?= , Stefan Hajnoczi , Bandan Das , Cleber Rosa , Peter Maydell , Bastian Koppelmann , Yonggang Luo , Li-Wen Hsu , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Thomas Huth , Beraldo Leal , Ed Maste , Wainer dos Santos Moschetta Subject: [PATCH 11/12] cirrus.yml: Improve the windows_msys2_task Date: Wed, 15 Feb 2023 19:25:29 +0000 Message-Id: <20230215192530.299263-12-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230215192530.299263-1-alex.bennee@linaro.org> References: <20230215192530.299263-1-alex.bennee@linaro.org> MIME-Version: 1.0 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=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 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ée Reviewed-by: Philippe Mathieu-Daudé --- .cirrus.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 --python=python3" - - 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=python3 + --target-list-exclude=i386-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=1 check" From patchwork Wed Feb 15 19:25:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 653743 Delivered-To: patch@linaro.org Received: by 2002:adf:f90f:0:0:0:0:0 with SMTP id b15csp524749wrr; Wed, 15 Feb 2023 11:27:12 -0800 (PST) X-Google-Smtp-Source: AK7set+OmXqMIN31G+vLUb62Uv/Y9AccGm5SkOn0AxUZIR+ZCCbmbRSLBnvvllf+0kDV4F1jNYpv X-Received: by 2002:a05:6214:3019:b0:56b:ec1f:db0d with SMTP id ke25-20020a056214301900b0056bec1fdb0dmr5266044qvb.34.1676489232731; Wed, 15 Feb 2023 11:27:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676489232; cv=none; d=google.com; s=arc-20160816; b=vip7RqJ8QmbDWBE8w15aA6ZmsWG3dOJF+i/JCG8QkvL5jc6ILr49HKzFAE02BpF/4F JrnyI01ZGNxmWu/NQJv/Y2RO7jaXBHmvcrQlsy1I5PSkSHYU7G1F92KaeuxJ6k8Zb6w/ /jeOZyWZopV+c2GaH+ui+ERXmNVM8CtrIcwb5x19QzMUHzvilNgdnJDOjDEa4a9bEoUA fGBwyYtYAjJROHM971O4vD7rC//NoSEfXBanzWL39/oelMJV0tTUfaYOb+1Nsbq4ryRJ ZfJhe2BlwKO2jzlGY33TK92y/AJ3POOeBMJTljproUkvUsXrAiK5O2UmIohQkfhduANB MoAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=HrkxQ4C8k4Tf9raZcUSEIFG81EdtIwTYG8FkdkShoug=; b=us5SrSl2PQnpXA4Cgqxn7jpOpO4kPJ3pI98EUr28W85SGXNI834ozasxHulNiA291d GfixVHvtUlmsrpWiJl9gwkRH9kXmejrbM90lMPgzQjPwh/fMCBEqwpwF0QATVxzE65sc suBS8IDZ1r154pgbCd+4lYA4NiJNpyqI2L4SFfTJTM54eEfght9ghMi4f0rbjG73eRIH NrvYcAnoEAkvOHNczQhHrRvv/JYTkQncnI5HS30iK+4vMdGbBzfhvpwXfLsXxJBLQfWQ eyqwrJykXffjrH+eWbTP9ua9SWIsJDGV4qE/vG0Tlh54HGFm16xJiX6KBZDTeYtgsJYI nzbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cuOWh82e; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id o4-20020a0ccb04000000b0056ee5ebb3c3si1023964qvk.566.2023.02.15.11.27.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Feb 2023 11:27:12 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cuOWh82e; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSNPg-00072m-VA; Wed, 15 Feb 2023 14:25:56 -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 1pSNPR-0006kf-HP for qemu-devel@nongnu.org; Wed, 15 Feb 2023 14:25:42 -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 1pSNPP-0001ir-1O for qemu-devel@nongnu.org; Wed, 15 Feb 2023 14:25:41 -0500 Received: by mail-wr1-x42e.google.com with SMTP id bu23so20230836wrb.8 for ; Wed, 15 Feb 2023 11:25:38 -0800 (PST) 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=HrkxQ4C8k4Tf9raZcUSEIFG81EdtIwTYG8FkdkShoug=; b=cuOWh82eTNLuO4Ql+ZYMaRjCYwpl2RsbFSkfEVePIXW/t7kAR9f092btU8BPWh6/oC UKKR1gnjio1qpDfc5KwWwjUjP4UlyGb45wyzNwApO0Qd9vzhx2enTH38VAwiw4PKEWje pqOaPE/gj9Bwu/BuoOLnKHgTfgL3hFN0j1X/eqJcmntVBZhcSuLj/OeyOvM4oOSIfRLc 4IFKznThYRrLqH/YLYrAMDK3AGrprucKDZuU4+54Ri48wwqZ/4k5U2AREM/jqbIBWWBW GbToE/0SsifU8fFURdxAY7eeaIS4cmAH+6C8p0uIWoN73a6C7Afvuyd165LVrnLWtuor z2FA== 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=HrkxQ4C8k4Tf9raZcUSEIFG81EdtIwTYG8FkdkShoug=; b=zsAUVt0glm+7h8fx2fpZm2ZVnUlSVS9srvX97EH771SXKckvn4LdauzeHpGIIfddsL qLSx+/YKnnqtrg4ZGi1CUgfMCl4VMK6AZiWfh9uUBcAUV+mMFykH7CWM9/Nd7I3OKN/D 1/K8ZjGTgiMW7lt1Gn8jAzqMeloZdtL7ctWheR7wZ11JbASLOUOOZWMEg9HugFwLlVra hcLQ3Ku0oolufF3t0C74ZUx1LyDpMXYAX5ZmMTaQsl7EvQBlVhAvVap/D4BBOjGLvEgd WPwTdd/wqsMTLeZYI1K842OdXHKMqu5NbzZTCDfrvxxfBSX5DNsrZ4uzgDykel86r9Yt AmMw== X-Gm-Message-State: AO0yUKWVd0W9NLyLY7yxI/vqE2WdRkoXR2piKt0rphdALhsNSCO3/qK5 d26HoXKeIgljBw5niRoXr+VmxA== X-Received: by 2002:adf:f64f:0:b0:2c5:592b:b71b with SMTP id x15-20020adff64f000000b002c5592bb71bmr2653740wrp.45.1676489137534; Wed, 15 Feb 2023 11:25:37 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id r3-20020a5d6943000000b002c551ae8cc1sm11213538wrw.67.2023.02.15.11.25.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 11:25:35 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id ECAF31FFC2; Wed, 15 Feb 2023 19:25:31 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Michael Roth , Alexander Bulekov , Qiuhao Li , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Markus Armbruster , Paolo Bonzini , qemu-arm@nongnu.org, John Snow , Pavel Dovgalyuk , Darren Kenny , =?utf-8?q?Alex_Benn=C3=A9e?= , Stefan Hajnoczi , Bandan Das , Cleber Rosa , Peter Maydell , Bastian Koppelmann , Yonggang Luo , Li-Wen Hsu , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Thomas Huth , Beraldo Leal , Ed Maste , Wainer dos Santos Moschetta Subject: [PATCH 12/12] tests: ensure we export job results for some cross builds Date: Wed, 15 Feb 2023 19:25:30 +0000 Message-Id: <20230215192530.299263-13-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230215192530.299263-1-alex.bennee@linaro.org> References: <20230215192530.299263-1-alex.bennee@linaro.org> MIME-Version: 1.0 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 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ée Reported-by: Peter Maydell Reviewed-by: Thomas Huth --- v2 - properly format extends --- .gitlab-ci.d/crossbuild-template.yml | 11 +++++++++++ .gitlab-ci.d/crossbuilds.yml | 12 +++++++++--- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.d/crossbuild-template.yml b/.gitlab-ci.d/crossbuild-template.yml index 6d709628f1..24a41a7b21 100644 --- a/.gitlab-ci.d/crossbuild-template.yml +++ b/.gitlab-ci.d/crossbuild-template.yml @@ -48,3 +48,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 add 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 74d6259b90..bbc013725c 100644 --- a/.gitlab-ci.d/crossbuilds.yml +++ b/.gitlab-ci.d/crossbuilds.yml @@ -44,7 +44,9 @@ cross-arm64-user: IMAGE: debian-arm64-cross 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 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 cross-i386-tci: - extends: .cross_accel_build_job + extends: + - .cross_accel_build_job + - .cross_test_artifacts timeout: 60m needs: job: i386-fedora-cross-container