git: d84c97ab7ed1 - main - devel/readerwriterqueue: Add tests

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Wed, 19 Oct 2022 04:04:59 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d84c97ab7ed1856ffbc3f568d580f47d786ce1a6

commit d84c97ab7ed1856ffbc3f568d580f47d786ce1a6
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-10-19 04:04:29 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-10-19 04:04:54 +0000

    devel/readerwriterqueue: Add tests
---
 devel/readerwriterqueue/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/devel/readerwriterqueue/Makefile b/devel/readerwriterqueue/Makefile
index d06bd4ca2a94..c3c1aa606ee1 100644
--- a/devel/readerwriterqueue/Makefile
+++ b/devel/readerwriterqueue/Makefile
@@ -23,4 +23,9 @@ PLIST_FILES=	include/readerwriterqueue/LICENSE.md \
 		include/readerwriterqueue/readerwritercircularbuffer.h \
 		include/readerwriterqueue/readerwriterqueue.h
 
+BINARY_ALIAS=	g++=${CXX}
+
+do-test:
+	@cd ${WRKSRC}/tests/unittests && ${SETENV} ${MAKE_ENV} ${GMAKE} run
+
 .include <bsd.port.mk>