Running tests in ports Makefiles?

Adam Weinberger adamw at adamw.org
Tue Apr 7 15:35:57 UTC 2020


On Tue, Apr 7, 2020 at 5:17 AM Adam Jimerson <vendion at gmail.com> wrote:
>
> Hello all,
>
> Hopefully a quick question, is it common place in the ports tree to run tests
> for the software being ported in the Makefile or should we just expect/
> encourage upstream to do tests for FreeBSD and leave it at that?
>
> I ask because one of the ports that I am maintaining is written in Go, uses
> the standard test suite that is built into the Go tool chain which means no
> additional dependencies to be able to add this only a slightly longer build
> time, currently `make package` takes 27.8 seconds on a system with a 16 CPU
> cores and 32 Gb ram.

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?

# Adam


-- 
Adam Weinberger
adamw at adamw.org
https://www.adamw.org


More information about the freebsd-ports mailing list