From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9CEFA158089 for ; Thu, 12 Oct 2023 15:52:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0C2DB2BC027; Thu, 12 Oct 2023 15:52:37 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DD5592BC027 for ; Thu, 12 Oct 2023 15:52:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C0CF4335C8E for ; Thu, 12 Oct 2023 15:52:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 985C21146 for ; Thu, 12 Oct 2023 15:52:32 +0000 (UTC) From: "Maciej Barć" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Maciej Barć" Message-ID: <1697125947.aacf18af0892739127048628e6c8ea11f26fc4d2.xgqt@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/dotnet-pkg.eclass X-VCS-Directories: eclass/ X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: aacf18af0892739127048628e6c8ea11f26fc4d2 X-VCS-Branch: master Date: Thu, 12 Oct 2023 15:52:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4792536b-78fd-4835-937c-2e0f1822bc63 X-Archives-Hash: 034221a2a3ef4d7f1fd967332d459937 commit: aacf18af0892739127048628e6c8ea11f26fc4d2 Author: Maciej Barć gentoo org> AuthorDate: Thu Oct 12 08:18:57 2023 +0000 Commit: Maciej Barć gentoo org> CommitDate: Thu Oct 12 15:52:27 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aacf18af eclass/dotnet-pkg.eclass: add DOTNET_PKG_TEST_EXTRA_ARGS Extra arguments to pass to the package test, in the "src_test" phase. Signed-off-by: Maciej Barć gentoo.org> eclass/dotnet-pkg.eclass | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/eclass/dotnet-pkg.eclass b/eclass/dotnet-pkg.eclass index b4f0c053d69a..86ec2e5a7fc1 100644 --- a/eclass/dotnet-pkg.eclass +++ b/eclass/dotnet-pkg.eclass @@ -117,6 +117,28 @@ DOTNET_PKG_RESTORE_EXTRA_ARGS=() # For more info see the "DOTNET_PROJECT" variable and "dotnet-pkg_src_compile". DOTNET_PKG_BUILD_EXTRA_ARGS=() +# @ECLASS_VARIABLE: DOTNET_PKG_TEST_EXTRA_ARGS +# @DESCRIPTION: +# Extra arguments to pass to the package test, in the "src_test" phase. +# +# This is passed only when testing found ".sln" solution files +# (see also "dotnet-pkg-base_foreach-solution"). +# Other project builds do not use this variable. +# +# This variable should be set after inheriting "dotnet-pkg.eclass", +# it is also advised that it is set after the variable +# "DOTNET_PROJECT" (from "dotnet-pkg-base" eclass) is set. +# +# Default value is an empty array. +# +# Example: +# @CODE +# DOTNET_PKG_TEST_EXTRA_ARGS=( -p:RollForward=Major ) +# @CODE +# +# For more info see the "DOTNET_PROJECT" variable and "dotnet-pkg_src_test". +DOTNET_PKG_TEST_EXTRA_ARGS=() + # @FUNCTION: dotnet-pkg_pkg_setup # @DESCRIPTION: # Default "pkg_setup" for the "dotnet-pkg" eclass. @@ -215,7 +237,9 @@ dotnet-pkg_src_compile() { # will execute wrong or incomplete test suite. Maintainers should inspect if # any and/or correct tests are ran. dotnet-pkg_src_test() { - dotnet-pkg-base_foreach-solution "$(pwd)" dotnet-pkg-base_test + dotnet-pkg-base_foreach-solution \ + "$(pwd)" \ + dotnet-pkg-base_test "${DOTNET_PKG_TEST_EXTRA_ARGS[@]}" } # @FUNCTION: dotnet-pkg_src_install