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 0A8F1158089 for ; Sat, 14 Oct 2023 23:00:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B7C072BC03F; Sat, 14 Oct 2023 23:00:04 +0000 (UTC) Received: from matoro.tk (unknown [IPv6:2600:1700:4b10:9d80::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7BE2A2BC021 for ; Sat, 14 Oct 2023 23:00:04 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=oYAtfFybkB+tYK4L84trsATishRd64B8twRzEujiwM0=; c=relaxed/relaxed; d=matoro.tk; h=Subject:Subject:Sender:To:To:Cc:From:From:Date:Date:MIME-Version:MIME-Version:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Reply-To:In-Reply-To:Message-Id:Message-Id:References:Autocrypt:Openpgp; i=@matoro.tk; s=20230917; t=1697324403; v=1; x=1697756403; b=dEl+7UiYEQJT+wdBTIbHH5LuGhYx1DKZYNTKyioMM4K57tagbmsuvic9mhaEgymZWO17XIjH G+WPs7MeygSXDcsoz8b+DwuHaeMblfUXjp7D92WOProA+PA8mRr8ckOe4Uxrwvt96IW4ut2WCUx zq9YzrcEQkwBefeFPpbplSt8KB2cVSuBqcjxMlxkLY2q95W1rrCBNWSCOqcXuSZOacngOHzBhae IK+AN79aZusz6LBaXFf7HkQ4TX8Qc8ElEMH6bPce5LnVe759Ld+9+2LtItm9CSHjIVdgLpKOhMB 4LGXVimBeNaGXeJOfJ/6st7dSBsj0R/2wc5pHDVXOXQLv2zitM33UdO9lkhngARd+qI66NgLIP1 KXUm30qbU5eXP+JuUc8xDUVqXLeu8NsRQoAciwrgtgZ9itkOVvcVj9iuLV5GHTVBCx2zZbSk5rH ouH58q1X1uQibc8mCu7348si7o5PukjjYXhsqwVn8W3l5fldOlidbZV8lktUMaUf3fjkw4WmH5i RDEuaphbR9lUNoN+ZE6NdVV4uZP6xgBYZkaDXhLo+LVazOzJH8AYsj5j/UDR1yhWRi4nFa0cTij BhEI32g1yf3Srl3/WxVPiv4DxBedY+Iq3/CBMHYKbAOO2845t47/yAVIksVuh0g1dqy220JhKx9 actzr9wtgDc= Received: by matoro.tk (envelope-sender ) with ESMTPS id 50ae7cca; Sat, 14 Oct 2023 19:00:03 -0400 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Date: Sat, 14 Oct 2023 19:00:03 -0400 From: matoro To: Gentoo Dev Subject: [gentoo-dev] [PATCH] perl-module.eclass: extend DIST_TEST="do" to cover make-based tests Message-ID: X-Sender: matoro_mailinglist_gentoo-dev@matoro.tk Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 09f66559-47d6-466e-92ff-336140714d24 X-Archives-Hash: c8c5d96763e0507e88befbd2a04f8bf1 For packages using make to run tests rather than Test::Harness, DIST_TEST="do" is ineffective at disabling parallelization. This forces -j1 on these packages when set. Bug: https://bugs.gentoo.org/909051 Signed-off-by: Matoro Mahri --- eclass/perl-module.eclass | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass index 32cd603c7be5..7bb02abed8c5 100644 --- a/eclass/perl-module.eclass +++ b/eclass/perl-module.eclass @@ -335,6 +335,7 @@ perl-module_src_test() { local my_test_control local my_test_verbose + local my_test_makeopts [[ -n "${DIST_TEST_OVERRIDE}" ]] && ewarn "DIST_TEST_OVERRIDE is set to ${DIST_TEST_OVERRIDE}" my_test_control=${DIST_TEST_OVERRIDE:-${DIST_TEST:-do parallel}} @@ -344,6 +345,10 @@ perl-module_src_test() { return 0 fi + if has 'do' ${my_test_control} && ! has 'parallel' ${my_test_control} ; then + my_test_makeopts="-j1" + fi + if has verbose ${my_test_control} ; then my_test_verbose=1 else @@ -383,7 +388,7 @@ perl-module_src_test() { if [[ -f Build ]] ; then ./Build test verbose=${my_test_verbose} || die "test failed" elif [[ -f Makefile ]] ; then - emake test TEST_VERBOSE=${my_test_verbose} + emake ${my_test_makeopts} test TEST_VERBOSE=${my_test_verbose} fi } -- 2.42.0