Running tests in ports Makefiles?

Adam Jimerson vendion at gmail.com
Tue Apr 7 16:20:35 UTC 2020


On Tuesday, April 7, 2020 11:35:38 AM EDT Adam Weinberger wrote:
> Optional tests should never be run during a normal build. There is a
> "do-test:" target for that purpose. Can you fold the test suite into
> that target?

Yeah it would be completely possible to use that target for the tests, and 
thanks for pointing that out as I don't see it listed under Section 5.13.3.12 
of the Porter's Handbook [0].

I just didn't know if this was common place to do so with FreeBSD ports. The 
only thing I have to compare it with is Arch Linux's build system where if a 
packages PKGBUILD file defines a `check` function [1] then it is called during 
the build process automatically. I know comparing apples to oranges, hence why 
I wanted to know what is commonplace/acceptable here.

[0]: https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/
makefile-options.html
[1]: https://wiki.archlinux.org/index.php/Creating_packages#check()

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20200407/a75114ef/attachment.sig>


More information about the freebsd-ports mailing list