From nobody Sat May 4 16:33:46 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1667832780; cv=none; d=zohomail.com; s=zohoarc; b=RR/VZk9h1weBT9F5br2NW97D255MAdhLt+SqjpO92ypSA3KOPUXQeMWMYy05DOjkKte7QMVQ0E5Xn80amwwtDAg3IlS6j7+d+/8v6VK45YGtslh5q4BfPIDkBLpP2h4q5gtY0iuzXFiV5XFHPyvJ4vya1z6cFPrKZ+l6jrbISPQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1667832780; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=Klayg+WpkH+CJg/U8pw+zZPeMnY3Djc00WEgkmrbmK4=; b=S1TMJodlGS+lgUQJPxJoGLMQr/pjcxNf6AR7bfgvvm2DcN8f4hiMhsE1j4L6nP8VdplIR2xayMGAYQj52qx/hK10sMBiV3f5wGGSYbsIm43ROpoT9Z8tbyQXWEDa8PbbHGSBFlfNe57rEDnNnqYFU0JRDgPBD0B60ZlgUsR6+tI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1667832780726987.6973148410821; Mon, 7 Nov 2022 06:53:00 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1os3UM-0003Sw-ER; Mon, 07 Nov 2022 09:52:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1os3UK-0003SS-BW for qemu-devel@nongnu.org; Mon, 07 Nov 2022 09:52:36 -0500 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1os3UI-0007vb-ME for qemu-devel@nongnu.org; Mon, 07 Nov 2022 09:52:36 -0500 Received: by mail-wr1-x42d.google.com with SMTP id h9so16641936wrt.0 for ; Mon, 07 Nov 2022 06:52:34 -0800 (PST) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id fc15-20020a05600c524f00b003cf57329221sm12976185wmb.14.2022.11.07.06.52.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Nov 2022 06:52:32 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id CF73A1FFB7; Mon, 7 Nov 2022 14:52:31 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Klayg+WpkH+CJg/U8pw+zZPeMnY3Djc00WEgkmrbmK4=; b=rN12ye+Ha30Vy878jAqZsBczem0k7a73UliXiLmqdOyvsUvwN3UAyeTr5Ee7B+EpZQ ulGPIxo0GNTyUezG1XnnOrDVaRUSMzkQsO1+KwwJIt14bSoFyKZonMG5G2RuDcEGoFnb SiBpvywZGXgCHjqWeaLBbTWWyP6vyLls+tBFZQ9D+dQdHhFZBBSl661UGA4tu460a9YE 5LGHbepNAPcf/rH2SlijJgk2R5en9vFx3EeeSEu95jLXPQ8IIWXmlgwncwfolGWiH3lP jxgEobet57aTbZkXl5c0QT/kLVAwemMOU+dBVeMOp4irohu7naQPTvjjiLVE4yF7YVZg 0pDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Klayg+WpkH+CJg/U8pw+zZPeMnY3Djc00WEgkmrbmK4=; b=U01k33PHMvdpc1Gj8FfAx2Vy8DNEIVd6K6ReEbHtTYDujQBry4TQbpddBzbZoXihIY /HT2v4XNDj/yA0vJWxx5zw4FdpJ7o7D3EtsIuTpsiiEaj81tmI3CNsDTGPVg+JVL9Sni 54zxACZqJWdujhRe7dVPtp3z3cpwdbK9wEAu+AkayVb5AlXLPzM3wIitAk78KByNjbJ+ Gcyh4IH2QanNYOYpFpR6saI/DCabGRfHLJoqSi6disV/jxJceqcu2Gc4sh/+pUiaaUBJ SV/46rYcWJ4lBEP5wH4wp9sSuQ7YKnM5Qs8VLu9rc+/Y6vwEZ6RV2izyn8Y+LapDX1jt 6K/Q== X-Gm-Message-State: ACrzQf2AQTsfOC5GQXXcVB5l+t73cPe66bH4H95Bf5YMaeURttLchCpn OVWM55aZoJhNmYNbopU6Jej+Vw== X-Google-Smtp-Source: AMsMyM63ZGK16hwf9GNARKJB+Na1kQkQ7v/5CLvJlRnX/4eit8Fdb6QzpIrPvanvB4KEI2WCQA4CjA== X-Received: by 2002:adf:a74a:0:b0:236:6dc8:f562 with SMTP id e10-20020adfa74a000000b002366dc8f562mr31688305wrd.717.1667832752844; Mon, 07 Nov 2022 06:52:32 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal Subject: [RFC PATCH] tests/docker: allow user to override check target Date: Mon, 7 Nov 2022 14:52:27 +0000 Message-Id: <20221107145227.1210499-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1667832782170100001 This is useful when trying to bisect a particular failing test behind a docker run. For example: make docker-test-clang@fedora \ TARGET_LIST=3Darm-softmmu \ CHECK_TARGET=3D"meson test qtest-arm/qos-test" \ J=3D9 V=3D1 Signed-off-by: Alex Benn=C3=A9e --- tests/docker/Makefile.include | 2 ++ tests/docker/common.rc | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index c87f14477a..ece0aa77df 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -184,6 +184,7 @@ docker: @echo ' TARGET_LIST=3Da,b,c Override target list in builds.' @echo ' EXTRA_CONFIGURE_OPTS=3D"..."' @echo ' Extra configure options.' + @echo ' CHECK_TARGET=3D"..." Override the default `make check` targe= t ' @echo ' IMAGES=3D"a b c ..": Restrict available images to subset.' @echo ' TESTS=3D"x y z .." Restrict available tests to subset.' @echo ' J=3D[0..9]* Overrides the -jN parameter for make co= mmands' @@ -230,6 +231,7 @@ docker-run: docker-qemu-src $(if $(NETWORK),$(if $(subst $(NETWORK),,1),--net=3D$(NETWORK)),--net= =3Dnone) \ -e TARGET_LIST=3D$(subst $(SPACE),$(COMMA),$(TARGET_LIST)) \ -e EXTRA_CONFIGURE_OPTS=3D"$(EXTRA_CONFIGURE_OPTS)" \ + -e CHECK_TARGET=3D"$(CHECK_TARGET)" \ -e V=3D$V -e J=3D$J -e DEBUG=3D$(DEBUG) \ -e SHOW_ENV=3D$(SHOW_ENV) \ $(if $(NOUSER),, \ diff --git a/tests/docker/common.rc b/tests/docker/common.rc index e6f8cee0d6..f2769c1ff6 100755 --- a/tests/docker/common.rc +++ b/tests/docker/common.rc @@ -63,12 +63,12 @@ check_qemu() { # default to make check unless the caller specifies if [ $# =3D 0 ]; then - INVOCATION=3D"check" + INVOCATION=3D"${CHECK_TARGET:-make $MAKEFLAGS check}" else - INVOCATION=3D"$@" + INVOCATION=3D"make $MAKEFLAGS $@" fi =20 - make $MAKEFLAGS $INVOCATION + $INVOCATION } =20 test_fail() --=20 2.34.1