summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2016-08-03 20:13:19 +0000
committerwiz <wiz@pkgsrc.org>2016-08-03 20:13:19 +0000
commited7f55f18c4340a54c1f4f029f73a8e77ba03662 (patch)
treeee07b264c94912f470b8347dea95259f588a0766 /time
parent22d70374b7fa0a5aacb38f8242fc223f13eab960 (diff)
downloadpkgsrc-ed7f55f18c4340a54c1f4f029f73a8e77ba03662.tar.gz
Fix self-test target.
Some tests fail, see https://github.com/pimutils/khal/issues/466
Diffstat (limited to 'time')
-rw-r--r--time/khal/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/time/khal/Makefile b/time/khal/Makefile
index 4b1f66f5efb..34899ab4d1e 100644
--- a/time/khal/Makefile
+++ b/time/khal/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2016/07/28 14:00:17 wiz Exp $
+# $NetBSD: Makefile,v 1.11 2016/08/03 20:13:19 wiz Exp $
DISTNAME= khal-0.8.2
CATEGORIES= time net
@@ -22,8 +22,9 @@ DEPENDS+= ${PYPKGPREFIX}-vdirsyncer>=0.5.2:../../time/py-vdirsyncer
DEPENDS+= ${PYPKGPREFIX}-xdg>=0.17:../../devel/py-xdg
# not needed, but recommended, so let's just depend on it
DEPENDS+= ${PYPKGPREFIX}-setproctitle-[0-9]*:../../sysutils/py-setproctitle
-# test dependency, not packaged yet
-# freezegun
+# TEST_DEPENDS
+BUILD_DEPENDS+= ${PYPKGPREFIX}-freezegun-[0-9]*:../../devel/py-freezegun
+BUILD_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
PYTHON_VERSIONS_INCOMPATIBLE= 27 # not supported as of 0.8.0
@@ -36,6 +37,9 @@ REPLACE_PYTHON+= khal/*.py
post-install:
${INSTALL_DATA} ${WRKSRC}/khal.conf.sample ${DESTDIR}${PREFIX}/share/doc/khal
+do-test:
+ cd ${WRKSRC} && py.test-${PYVERSSUFFIX} tests
+
.include "../../lang/python/application.mk"
.include "../../lang/python/egg.mk"
.include "../../lang/python/versioned_dependencies.mk"