[Bug 278533] Mk/Uses/cmake.mk: use proper environment in do-test

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 22 Apr 2024 20:16:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278533

            Bug ID: 278533
           Summary: Mk/Uses/cmake.mk: use proper environment in do-test
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Ports Framework
          Assignee: portmgr@FreeBSD.org
          Reporter: mandree@FreeBSD.org
                CC: adridg@freebsd.org, diizzy@FreeBSD.org,
                    ports-bugs@FreeBSD.org, tijl@FreeBSD.org
            Blocks: 278500

Created attachment 250163
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=250163&action=edit
git format-patch (to apply with git am) patch to fix cmake.mk's do-test:
environment

* the actual test run used MAKE_ENV but should use TEST_ENV
* also, ctest(1) defaults to running tests serially, so add
  CTEST_PARALLEL_LEVEL here and set it to _MAKE_JOBS_NUMBER.
  NOTE: cmake 3.29 changes semantics for _MAKE_JOBS_NUMBER empty or 0.

(Also note that Uses/cmake.mk advertises itself as supporting ctest... then it
should deliver on that promise. Make it so.)

NOTE: please DO apply with git-am and then DO amend the commit message with
this PR's number.


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278500
[Bug 278500] graphics/openexr: Convert to cmake:testing
-- 
You are receiving this mail because:
You are on the CC list for the bug.