[Bug 264454] Do not build TEST_DEPENDS in case NO_TEST is set and do not run tests

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 04 Jun 2022 17:12:14 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264454

            Bug ID: 264454
           Summary: Do not build TEST_DEPENDS in case NO_TEST is set and
                    do not run tests
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Ports Framework
          Assignee: portmgr@FreeBSD.org
          Reporter: bz@FreeBSD.org
                CC: ports-bugs@FreeBSD.org

Created attachment 234448
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=234448&action=edit
Honor NO_TEST

TEST_DEPENDS attributes to quite a few (often conflicting) dependencies often
not wanted or needed on personal package builds.
Rather than touching every port, disable building TEST_DEPENDS in one place in
bsd.port.mk if NO_TEST is set.
Likewise do not run the test: target if NO_TEST is set.

This is based on a suggestion by Tomoaki AOKI in
https://lists.freebsd.org/archives/freebsd-ports/2022-May/001944.html .

It saves a lot of Joules every day ...

-- 
You are receiving this mail because:
You are on the CC list for the bug.