From nobody Mon Feb 9 08:28:26 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1615570136; cv=none; d=zohomail.com; s=zohoarc; b=WFOuHo5Xgwszu4OtMvGkjDM5vI2h1AZMkvNDs1VJz50mrE0BnWePr46UNUbSuM/99UC6EhkDwmfYRVVe0e6xmCjQer5jiXQI57mNA93ogK9/9+SXk8Gh2nHOEeIZsz/maBcFTayCwyA5HueB/s9VL0UE/3bb9if3y6TMy53OPL8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1615570136; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=ICytadiYx/nIl9Xab8ILap54eOukdt+92paXtA9Bu4U=; b=fLCL2cFa1T02pn065uSK9NqnsPCGPfQJLbxa0ctYLAsUCz/XphjMBmMNOwDURQj2tBfsEIKk3lTF1pDrCl7dzwF8+cdWJBcs9q6QWyBolJ3VjFofwYZ41TIT2r8KxPvLavEWlAecsYnwjH62KZt5KkPq4QU8I4x+sNt1+ZgE0UQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1615570136121160.81324696160834; Fri, 12 Mar 2021 09:28:56 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-379-IbsdXhdNNeCFFODXIjkHlA-1; Fri, 12 Mar 2021 12:28:50 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 30495801817; Fri, 12 Mar 2021 17:28:44 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 02F2060C5F; Fri, 12 Mar 2021 17:28:44 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id A6F1B57DC5; Fri, 12 Mar 2021 17:28:43 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 12CHSgEf031426 for ; Fri, 12 Mar 2021 12:28:42 -0500 Received: by smtp.corp.redhat.com (Postfix) id 33C525D760; Fri, 12 Mar 2021 17:28:42 +0000 (UTC) Received: from harajuku.usersys.redhat.com (unknown [10.40.194.186]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7ED7A5D6D7 for ; Fri, 12 Mar 2021 17:28:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1615570134; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=ICytadiYx/nIl9Xab8ILap54eOukdt+92paXtA9Bu4U=; b=OS0WNodbR5loUBsR94apQ5GTgOUUQZFF8To/Uv80+sr+XiWFIvLnWSq8aHkwnoz38z6nh7 3bKQG+5HULFy6kjuWnVh0oZ2it42njTPeRShng2PHhiXwDoIJy+Y3A0hkpABgRWtRqFJNe A0rToXQBmnUJhtpILZRlhAs4LUu7CEg= X-MC-Unique: IbsdXhdNNeCFFODXIjkHlA-1 From: Andrea Bolognani To: libvir-list@redhat.com Subject: [libvirt PATCH v3 08/10] ci: Implement 'test' helper action Date: Fri, 12 Mar 2021 18:28:20 +0100 Message-Id: <20210312172822.244833-9-abologna@redhat.com> In-Reply-To: <20210312172822.244833-1-abologna@redhat.com> References: <20210312172822.244833-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" This simply calls the underlying Makefile target, but allows additional arguments to be specified in a more convenient and discoverable way. Signed-off-by: Andrea Bolognani --- ci/helper | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/ci/helper b/ci/helper index 4a552595df..4d6dfab19b 100755 --- a/ci/helper +++ b/ci/helper @@ -94,6 +94,14 @@ class Parser: ) buildparser.set_defaults(func=3DApplication.action_build) =20 + # test action + testparser =3D subparsers.add_parser( + "test", + help=3D"run a build in a container (including tests)", + parents=3D[containerparser, mesonparser], + ) + testparser.set_defaults(func=3DApplication.action_test) + # shell action shellparser =3D subparsers.add_parser( "shell", @@ -137,7 +145,7 @@ class Application: target, ] =20 - if self.args.action in ["build", "shell"]: + if self.args.action in ["build", "test", "shell"]: args.extend([ f"CI_ENGINE=3D{self.args.engine}", f"CI_USER_LOGIN=3D{self.args.login}", @@ -145,7 +153,7 @@ class Application: f"CI_IMAGE_TAG=3D{self.args.image_tag}", ]) =20 - if self.args.action =3D=3D "build": + if self.args.action in ["build", "test"]: args.extend([ f"CI_MESON_ARGS=3D{self.args.meson_args}", f"CI_NINJA_ARGS=3D{self.args.ninja_args}", @@ -231,6 +239,9 @@ class Application: def action_build(self): self.make_run(f"ci-build@{self.args.target}") =20 + def action_test(self): + self.make_run(f"ci-test@{self.args.target}") + def action_shell(self): self.make_run(f"ci-shell@{self.args.target}") =20 --=20 2.26.2