pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-cffi Run self-tests using py.test, better rea...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/db92f066153f
branches:  trunk
changeset: 357786:db92f066153f
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sat Jan 28 15:34:19 2017 +0000

description:
Run self-tests using py.test, better readable output.

Remove mprotect comment; even with it turned off, a segfault happens.

diffstat:

 devel/py-cffi/Makefile |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (25 lines):

diff -r 006ca7df0059 -r db92f066153f devel/py-cffi/Makefile
--- a/devel/py-cffi/Makefile    Sat Jan 28 15:33:25 2017 +0000
+++ b/devel/py-cffi/Makefile    Sat Jan 28 15:34:19 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2016/11/14 14:31:18 wiz Exp $
+# $NetBSD: Makefile,v 1.24 2017/01/28 15:34:19 wiz Exp $
 
 DISTNAME=      cffi-1.9.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -13,12 +13,10 @@
 USE_TOOLS+=    pkg-config
 
 DEPENDS+=      ${PYPKGPREFIX}-cparser-[0-9]*:../../devel/py-cparser
-
-NOT_PAX_MPROTECT_SAFE= ${PYSITELIB}/_cffi_backend.so
+BUILD_DEPENDS+=        ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
 
-# tests don't run on MPROTECT enabled systems, and I haven't found
-# the magic to fix that, so workaround:
-# sysctl -w security.pax.mprotect.global=0
+do-test:
+       cd ${WRKSRC} && py.test-${PYVERSSUFFIX} -v
 
 .include "../../devel/libffi/buildlink3.mk"
 .include "../../lang/python/egg.mk"



Home | Main Index | Thread Index | Old Index