pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
py-puremagic: add test target
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By: wiz
Date: Thu Jun 1 06:47:35 2023 +0200
Changeset: 1a6fd1f217ca7c6f13914906131a6a09afe9621e
Modified Files:
py-puremagic/Makefile
Log Message:
py-puremagic: 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=1a6fd1f217ca7c6f13914906131a6a09afe9621e
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
py-puremagic/Makefile | 8 ++++++++
1 file changed, 8 insertions(+)
diffs:
diff --git a/py-puremagic/Makefile b/py-puremagic/Makefile
index 69bb637318..8a18f584ca 100644
--- a/py-puremagic/Makefile
+++ b/py-puremagic/Makefile
@@ -10,7 +10,15 @@ HOMEPAGE= https://github.com/cdgriffith/puremagic
COMMENT= Pure python implementation of magic file detection
LICENSE= gnu-lgpl-v3
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+
USE_LANGUAGES= # none
+PYTHON_VERSIONS_INCOMPATIBLE= 27
+
+TEST_ENV+= PYTHONPATH=${WRKSRC}/build/lib
+do-test:
+ cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
+
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index