Daniel J. Luke <[email protected]> writes: > The newest version of clamav uses cmake for builds. In the 'configure' stage, > I have it disabling tests because otherwise it won't build without the test > dependencies installed (check and pytest). > > Do we have a template or example of a canonical way to handle this? I don't > see an obvious hook for when someone is running `port test` to change > configure.args (I could, of course, add a post-extract/pre-configure and do > some non-declaritive test to see if `port test` is being run and use that to > branch - but that feels like a bad design choice).
The rapidjson port implements a 'tests' variant to handle a similar situation. I used the same pattern for the libosmium port. The tests can then be run with `sudo port -d test current +tests`. HTH Frank
