Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Jun 2022 16:06:22 +0100
From:      Nuno Teixeira <eduardo@freebsd.org>
To:        FreeBSD Mailing List <freebsd-ports@freebsd.org>
Subject:   GO ports: Makefile do-test: 'make test'
Message-ID:  <CAFDf7U%2Bogdxd5cFBAf_ExNGBa28cgs9i8RAMSVp_s5949UZFzw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
--000000000000426ac405e1ce553f
Content-Type: text/plain; charset="UTF-8"

Hello,

Recently I adopted a GO port sysutils/siegfried
<https://www.freshports.org/sysutils/siegfried/>; and it as very nice
feature:
---
do-test:
        @cd ${WRKSRC} && \
                ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} test
${GO_BUILDFLAGS} \
                ./cmd/sf
---
URL: https://github.com/richardlehane/siegfried

Running 'make test' in a interactive poudriere jail gives me extra tests
and results.

My question is: how do I know if a GO project have or not this tests
feature?
I can undertand 'do-test:' that tells to execute 'test' on .cmd/sf source
directory.

Once I understand the mechanics I can investigate "my" GO ports and see if
I can add this feature to them.

Thanks,

Nuno Teixeira

--000000000000426ac405e1ce553f
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hello,<br><br></div>Recently I adopted a GO port <a h=
ref=3D"https://www.freshports.org/sysutils/siegfried/">sysutils/siegfried</=
a> and it as very nice feature:<br>---<br>do-test:<br>=C2=A0 =C2=A0 =C2=A0 =
=C2=A0 @cd ${WRKSRC} &amp;&amp; \<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} test ${GO_BUILD=
FLAGS} \<br><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ./=
cmd/sf</div><div>---<br></div><div>URL: <a href=3D"https://github.com/richa=
rdlehane/siegfried">https://github.com/richardlehane/siegfried</a></div><di=
v><br></div><div>Running &#39;make test&#39; in a interactive poudriere jai=
l gives me extra tests and results.<br><br></div><div>My question is: how d=
o I know if a GO project have or not this tests feature?<br></div><div>I ca=
n undertand &#39;do-test:&#39; that tells to execute &#39;test&#39; on .cmd=
/sf source directory.<br><br></div><div>Once I understand the mechanics I c=
an investigate &quot;my&quot; GO ports and see if I can add this feature to=
 them.<br><br></div><div>Thanks,<br><br></div><div>Nuno Teixeira<br></div><=
/div>

--000000000000426ac405e1ce553f--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7U%2Bogdxd5cFBAf_ExNGBa28cgs9i8RAMSVp_s5949UZFzw>