Right now, ctest unconditionally take jobs/load-avg from MAKEOPTS. However, unlike most build systems, ctest does not start any jobs if load-avg is exceeded. Which means package builds can block for hours without doing anything. I think it would be helpful to be able to override these values for ctest specifically, i.e. have CTEST_JOBS and CTEST_LOAD_AVG variables, or alike.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=643d2156371598447342722fae90f614fad3432c commit 643d2156371598447342722fae90f614fad3432c Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2024-12-01 16:50:31 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2025-04-02 07:06:07 +0000 cmake.eclass: Permit overriding CTEST_{JOBS,LOADAVG} Closes: https://bugs.gentoo.org/945081 Signed-off-by: Michał Górny <mgorny@gentoo.org> eclass/cmake.eclass | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-)