it might be useful to be able to enable specific configure commands only when running tests

Ryan Schmidt ryandesign at macports.org
Sun Jan 19 06:52:18 UTC 2020



On Jan 18, 2020, at 17:37, Ken Cunningham wrote:

> It might be helpful if there was a configure command in the portfile that was only enabled when “port test” was run.
> 
> Specifically, for example, something that would enable the following command:
> 
> configure.args-replace --disable-tests --enable-tests
> 
> only when tests were being run.

Not possible. The phases are independent. When the configure phase runs, it has no idea whether or not the test phase will be run later.



More information about the macports-dev mailing list