pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/math/py-Theano py-Theano: use pytest for testing



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c229efc8c22b
branches:  trunk
changeset: 397069:c229efc8c22b
user:      adam <adam%pkgsrc.org@localhost>
date:      Sat Jun 15 18:13:14 2019 +0000

description:
py-Theano: use pytest for testing

diffstat:

 math/py-Theano/Makefile |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r 285ddd1f8104 -r c229efc8c22b math/py-Theano/Makefile
--- a/math/py-Theano/Makefile   Sat Jun 15 18:06:04 2019 +0000
+++ b/math/py-Theano/Makefile   Sat Jun 15 18:13:14 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2019/06/15 18:01:47 adam Exp $
+# $NetBSD: Makefile,v 1.5 2019/06/15 18:13:14 adam Exp $
 
 DISTNAME=      Theano-1.0.4
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -15,6 +15,7 @@
 TEST_DEPENDS+= ${PYPKGPREFIX}-flake8-[0-9]*:../../devel/py-flake8
 TEST_DEPENDS+= ${PYPKGPREFIX}-nose>=1.3.0:../../devel/py-nose
 TEST_DEPENDS+= ${PYPKGPREFIX}-parameterized-[0-9]*:../../devel/py-parameterized
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
 
 USE_TOOLS+=    bash
 USE_LANGUAGES= c c++
@@ -26,15 +27,14 @@
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27      # py-scipy
 
-zz-do-test:
-       cd ${WRKSRC}/theano/tests && \
-       ${SETENV} ${TEST_ENV} ${PYTHONBIN} main.py
-
 post-install:
        cd ${DESTDIR}${PREFIX}/bin && \
        ${MV} theano-cache theano-cache-${PYVERSSUFFIX} && \
        ${MV} theano-nose theano-nose-${PYVERSSUFFIX} || ${TRUE}
 
+do-test:
+       cd ${WRKSRC}/theano && pytest-${PYVERSSUFFIX} tests
+
 .include "../../lang/python/egg.mk"
 .include "../../math/py-numpy/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index