Re: NO_TEST, do-test: and TEST_DEPENDS?
- Reply: Bjoern A. Zeeb: "Re: NO_TEST, do-test: and TEST_DEPENDS?"
- In reply to: Bjoern A. Zeeb: "NO_TEST, do-test: and TEST_DEPENDS?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 22 May 2022 10:37:12 UTC
Am 21.05.22 um 16:37 schrieb Bjoern A. Zeeb: > Hi, > > I just grabbed a random example and made put the NO_TEST into the Makefile 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 > (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 > (2) to amke sure the TEST_DEPENDS and not build in these cases? You can set "DO_MAKE_TEST=true" 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 below 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