blob: fddda6d6cf9f277f44f0266e6d3bacdaf049c300 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
PORTNAME= parameterized
PORTVERSION= 0.8.1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= koobs@FreeBSD.org
COMMENT= Parameterized testing with any Python test framework
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}nose2>0:devel/py-nose2@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}unittest2>0:devel/py-unittest2@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist distutils
NO_ARCH=yes
do-test:
cd ${WRKSRC}; rc=0; \
${PYTHON_CMD} -m nose || rc=1; \
${PYTHON_CMD} -m nose2 || rc=1; \
${PYTHON_CMD} -m pytest || rc=1; \
${PYTHON_CMD} -m unittest || rc=1; \
${PYTHON_CMD} -m unittest2 || rc=1; \
exit $$rc
.include <bsd.port.mk>
|