git: 20939d8299f2 - main - math/py-heyoka: Add testsuite to the test target

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 05 Oct 2021 18:37:35 UTC
The branch main has been updated by yuri:

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

commit 20939d8299f29b2faacc46a0169e143f481a406a
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2021-10-05 16:42:16 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2021-10-05 18:36:26 +0000

    math/py-heyoka: Add testsuite to the test target
---
 math/py-heyoka/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/math/py-heyoka/Makefile b/math/py-heyoka/Makefile
index ca6a769fb2aa..145a3fe4afd1 100644
--- a/math/py-heyoka/Makefile
+++ b/math/py-heyoka/Makefile
@@ -33,6 +33,8 @@ CMAKE_ON=	HEYOKA_PY_ENABLE_IPO
 CMAKE_ARGS=	-DFREEBSD_PYTHON_DISTVERSION=${PYTHON_DISTVERSION}
 
 do-test: install
+	# testsuite based on instructions in https://bluescarni.github.io/heyoka.py/install.html#verifying-the-installation
+	@${PYTHON_CMD} -c "import heyoka; heyoka.test.run_test_suite();"
 	# integrate and plot an example
 	@${PYTHON_CMD} ${FILESDIR}/example-restricted-three-body-problem.py