pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/time/khal Fix self-test target.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/88304a1aa7bb
branches:  trunk
changeset: 350729:88304a1aa7bb
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Aug 03 20:13:19 2016 +0000

description:
Fix self-test target.

Some tests fail, see
https://github.com/pimutils/khal/issues/466

diffstat:

 time/khal/Makefile |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r b0a83f6b54e1 -r 88304a1aa7bb time/khal/Makefile
--- a/time/khal/Makefile        Wed Aug 03 15:53:38 2016 +0000
+++ b/time/khal/Makefile        Wed Aug 03 20:13:19 2016 +0000
@@ -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}-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 @@
 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"



Home | Main Index | Thread Index | Old Index