[Bug 249024] cmake.mk: Add USES=cmake:testing to facilitate defining test targets for cmake-based ports

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Aug 31 05:25:49 BST 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=249024

Tobias C. Berner <tcberner at freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tcberner at freebsd.org

--- Comment #2 from Tobias C. Berner <tcberner at freebsd.org> ---
Moin moin 

I like the idea in principal, I myself looked at adding these targets a few
years ago, and lbartoletti@ had the same idea a few weeks back.

However...

The reason kde@ never added those targets is, that up to a few years ago, KDE
had unit tests which assumed you are *not* running the build as root (which
most port builds are). 
They did funny things in the spirit of "rm -r /etc" as a "failing test case",
which of course when running the `make test` as root, would pretty much ruin
your day. And of course, took quite a lot of time to figure out that a
test-case was doing it.

So, while I technically think this new target is a good idea, with the memory
of a broken system, I kind of does do not want this, out of fear that other
upstreams are doing similar assumptions about the rights of a user running the
tests.


mfg Tobias

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the kde-freebsd mailing list