pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

liboqs: Add test target.



Module Name:	pkgsrc-wip
Committed By:	Taylor R Campbell <riastradh%NetBSD.org@localhost>
Pushed By:	riastradh
Date:		Sat Mar 23 18:23:03 2024 +0000
Changeset:	ce299989d224a825706f799bfc5c6ea67b000579

Modified Files:
	liboqs/Makefile

Log Message:
liboqs: Add test target.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=ce299989d224a825706f799bfc5c6ea67b000579

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 liboqs/Makefile | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diffs:
diff --git a/liboqs/Makefile b/liboqs/Makefile
index 908f0fb98b..d9ae54f32b 100644
--- a/liboqs/Makefile
+++ b/liboqs/Makefile
@@ -18,5 +18,23 @@ WRKSRC=		${WRKDIR}/liboqs-0.9.2
 
 PKGCONFIG_OVERRIDE+=	src/liboqs.pc.in
 
+# Used only for tests, not for other parts of the build.
+USE_TOOLS+=		bash:test
+PYTHON_FOR_BUILD_ONLY=	test
+TOOLS_CREATE+=		python3
+TOOLS_PATH.python3=	${TOOL_PYTHONBIN:Q}
+
+REPLACE_BASH+=		tests/run_astyle.sh
+REPLACE_BASH+=		tests/test_spdx.sh
+REPLACE_BASH+=		tests/test_vectors.sh
+
+TEST_DEPENDS+=		astyle>=0:../../devel/astyle
+TEST_DEPENDS+=		${PYPKGPREFIX}-test>=0:../../devel/py-test
+TEST_DEPENDS+=		${PYPKGPREFIX}-test-xdist>=0:../../devel/py-test-xdist
+TEST_DEPENDS+=		${PYPKGPREFIX}-yaml>=0:../../textproc/py-yaml
+
+TEST_TARGET=		run_tests
+
 .include "../../devel/cmake/build.mk"
+.include "../../lang/python/pyversion.mk"
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index