Page MenuHomeFreeBSD

Mk/Uses/go.mk: Add GO_TESTTARGET and provide default do-test (take #2)
ClosedPublic

Authored by dmgk on Nov 16 2019, 7:02 PM.

Details

Summary
Add GO_TESTTARGET defaulting to `./...` (the current package and all
subpackages) and create do-test target unless already provided by port's
Makefile.

In many cases this would allow us to remove explicit do-test and rely on
defaults provided by ports framework for testing.

While here also

- remove GO_WRKDIR_SRC - it is not used anywhere anymore
- sync GO_PKGNAME and GO_TARGET descriptions with Porter's Handbook

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Nov 17 2019, 4:19 PM
This revision was automatically updated to reflect the committed changes.
dmgk retitled this revision from Mk/Uses/go.mk: Add GO_TEST_TARGET and provide default do-test to Mk/Uses/go.mk: Add GO_TESTTARGET and provide default do-test (take #2).
dmgk edited the summary of this revision. (Show Details)

Rename to GO_TESTTARGET to avoid sanity check false positives.

This revision was not accepted when it landed; it landed in state Needs Review.Feb 20 2020, 12:15 PM
This revision was automatically updated to reflect the committed changes.