git: 954a7e86dc74 - main - mail/mailio: Add test target

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 28 Mar 2024 17:28:44 UTC
The branch main has been updated by yuri:

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

commit 954a7e86dc7482720bd75088974f12f86a04b2c2
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-03-28 05:52:04 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-03-28 17:28:26 +0000

    mail/mailio: Add test target
---
 mail/mailio/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/mail/mailio/Makefile b/mail/mailio/Makefile
index 27d093443c00..d98f6db5649c 100644
--- a/mail/mailio/Makefile
+++ b/mail/mailio/Makefile
@@ -19,6 +19,11 @@ USE_GITHUB=	yes
 GH_ACCOUNT=	karastojko
 
 CMAKE_OFF=	MAILIO_BUILD_TESTS MAILIO_BUILD_EXAMPLES MAILIO_BUILD_DOCUMENTATION
-CMAKE_TESTING_ON=	MAILIO_BUILD_TESTS # tests fail to link, see https://github.com/karastojko/mailio/issues/159
+CMAKE_ON=	MAILIO_DYN_LINK_TESTS # workaround for https://github.com/karastojko/mailio/issues/159
+CMAKE_TESTING_ON=	MAILIO_BUILD_TESTS # tests fail, see https://github.com/karastojko/mailio/issues/160
+CMAKE_TESTING_TARGET=	all
+
+post-test:
+	@cd ${WRKSRC}/test && ${BUILD_WRKSRC}/test/test_message
 
 .include <bsd.port.mk>