Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Apr 2020 09:35:38 -0600
From:      Adam Weinberger <adamw@adamw.org>
To:        Adam Jimerson <vendion@gmail.com>
Cc:        "freebsd-ports@freebsd.org" <freebsd-ports@freebsd.org>
Subject:   Re: Running tests in ports Makefiles?
Message-ID:  <CAP7rwchd=9oZ5o%2BHf=ByjgEDQL5A_y%2BRNB2izP0P0zTGLLgcHw@mail.gmail.com>
In-Reply-To: <2970225.0P3pStmDMi@heimdall>
References:  <2970225.0P3pStmDMi@heimdall>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Apr 7, 2020 at 5:17 AM Adam Jimerson <vendion@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@adamw.org
https://www.adamw.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAP7rwchd=9oZ5o%2BHf=ByjgEDQL5A_y%2BRNB2izP0P0zTGLLgcHw>