From nobody Sun May 22 10:37:12 2022 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id CFF111B57A49 for ; Sun, 22 May 2022 10:37:18 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L5cNG5Qgvz3Pwn; Sun, 22 May 2022 10:37:18 +0000 (UTC) (envelope-from se@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653215838; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=m/ojoG58HXbm/s7kOfTmeqUrlGWBa7iPDLoo+I/aaZA=; b=J85yc96kunV95M9EeB63X9DhrT21bOVJQoYrfawnvMqeF4eZK5lfqnvBc2vwQBDTfR0Z1e /38j3+6hNw+Dqlcu9oaMgJm3z5KJaXH7fgBRv2omOoRP0lf1G2mzRomDXiC/137hr09Rab ticcy/NXwubuyYAQghhN2mFrB/P41hBMvb1FZDh+YHBpdNeUkRUU7KW0gCemzB0wn3NWEX mDBheBzFVU539VXztDeF7IaiqXl3BIV0ikzWf2dpKXBH9rMEZv/bPeAjMDQGFLXQm0kh+N 7pkn7t0q8mRNqh9ivNcc32M8X10QcJqinx4m2/pCXX4L/o94UWA+oJ7rAlYrww== Received: from [IPV6:2003:cd:5f12:400:add5:10c0:d57e:38df] (p200300cd5f120400add510c0d57e38df.dip0.t-ipconnect.de [IPv6:2003:cd:5f12:400:add5:10c0:d57e:38df]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: se/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id E2CF54361; Sun, 22 May 2022 10:37:17 +0000 (UTC) (envelope-from se@FreeBSD.org) Message-ID: <848ba292-d306-dcd7-2456-383f1a3652f6@FreeBSD.org> Date: Sun, 22 May 2022 12:37:12 +0200 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: NO_TEST, do-test: and TEST_DEPENDS? Content-Language: en-US To: "Bjoern A. Zeeb" References: From: Stefan Esser Cc: freebsd-ports@freebsd.org In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------PK6bQXAev0s2y1SjoeEkQ3rY" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653215838; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=m/ojoG58HXbm/s7kOfTmeqUrlGWBa7iPDLoo+I/aaZA=; b=Mml+KGFujs3QtjOE5zaFLgXQSo3y8avjyebQsTzjqsPNam6/SHYEttBDO+tCBzMD48GYNQ UejpKDAqU/RmI7OGcw0JIvmma2CmSto3DZQKbMvizsmxlqV2/c/PuYCSnFN1hbYIJtz3vi /k2rM2BSKCx/h4ErP9dAp0cJf7326mnFMMXp0sX8HsSaIIMF+ux1t8Eji6NIBR4Fe2OlHK m0NiNZqVM77eAx8mSM9fucSz2newFj39mhHmtnyJPxMNo/pFgikfaZJiXkYsMjkqNaaM76 +eSsrFDJKdDSuWmTe5FmG8Ne4hQwN21gzlGBGt0LXWbU2IM8jH/zzT9UG+nmug== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653215838; a=rsa-sha256; cv=none; b=FPF4jl6xw9yyn5YTaw/rM6c61Wqw7wBZfWXM8cchtAqnFgV8DiowzgNCud26v9pkulwMYz H6794y1jdpDxiqNx9FnzSzZazs9VjS9npCPTbQzG+GDqU2yxyS26poUEUkpLRIpZMnvbdQ aHirkf6kwLM3+JVCatGUtwh3qQxUBUtdwjmh9jo7mbQjlOIVREQs2xUP+UCmvxEM+6ROUB InxcKXfk+v4spJMS/WdeFQbzcaRnfN0HGZjJwWGGgSoRAN3ejqAhT6h9qW+RAQUaqoUEG/ L/UWoW6o7nQuorS8jR8iGDHhyYGVq71FMu6tvx5hSa2Uu4qZhxGcuX/RCjRsaA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------PK6bQXAev0s2y1SjoeEkQ3rY Content-Type: multipart/mixed; boundary="------------abnE5RafK58k8GiI530sH2Ix"; protected-headers="v1" From: Stefan Esser To: "Bjoern A. Zeeb" Cc: freebsd-ports@freebsd.org Message-ID: <848ba292-d306-dcd7-2456-383f1a3652f6@FreeBSD.org> Subject: Re: NO_TEST, do-test: and TEST_DEPENDS? References: In-Reply-To: --------------abnE5RafK58k8GiI530sH2Ix Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Am 21.05.22 um 16:37 schrieb Bjoern A. Zeeb: > Hi, >=20 > I just grabbed a random example and made put the NO_TEST into the Makef= ile to > make things clear. Hi Bjoern, I'm not sure I understand the goal of your request. Do you want to have a switch that prevents the execution of tests when "make test" explicitly asks for the tests to be run??? This could easily be added to bsd.port.mk, but what for??? > What is the proper way to > =C2=A0=C2=A0=C2=A0=C2=A0(1) disable tests That's what I do not understand ... Tests are not run by default, and thus I never saw the need to disable them in any of my ports. Quite the opposite: If "make test" is invoked for a port that supports tests, I definitely want them to be executed. > and more important > =C2=A0=C2=A0=C2=A0=C2=A0(2) to amke sure the TEST_DEPENDS and not build= in these cases? You can set "DO_MAKE_TEST=3Dtrue" to execute the command "true" instead of "make" when bsd.port.mk wants to execute the tests. But this is an undocumented internal variable of the ports system, and it could be removed or renamed at any time, when changes are applied to bsd.port.mk. And you could override the TEST_DEPENDS macro instead of wrapping it into an .if block. > While I can iterate on port after port and apply a change like the belo= w it > feels utterly wrong and it seems I am doing something silly here which = has a > proper knob I cannot find? Please explain what you want to achieve. There may be other ways to achieve your goal, but I think I do not understand what your goal is ... Regards, STefan --------------abnE5RafK58k8GiI530sH2Ix-- --------------PK6bQXAev0s2y1SjoeEkQ3rY Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEo3HqZZwL7MgrcVMTR+u171r99UQFAmKKElgFAwAAAAAACgkQR+u171r99USA GQgAwTyJUycrgMHt4JTBsc6B9A/ZPjSSu+PyAJ4nYASBMDxEXNxmQqHB9E3oN85JTjAfmzyGcAJN GZMaLvwDDaBkfE3B7nC3I/asqxNX1SxZKfrh9YS85cQechtBH2OzE0I01KQdrQ7QiOww+Kmh3uv3 flUxa2k5ZQsDkogeZXvwq0oS4HqAqrpeij/gvN+YjmqCMz4O2AsvDW3xEU86KgOudbytEwzlhZ87 fbqvSc9WI7vkvmL6u4sUjRmfvo+ZrApXxAZpqwDXEaJP8FISbrHTgMgeCo7YXL5wSIikhNX70/Zd pl/Rzgs5BqcLTio5KauLos+/Yr1c9MjtxezWXUuqTg== =2ipU -----END PGP SIGNATURE----- --------------PK6bQXAev0s2y1SjoeEkQ3rY--