summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Piotrowski <0mp@FreeBSD.org>2020-03-06 22:50:07 +0000
committerMateusz Piotrowski <0mp@FreeBSD.org>2020-03-06 22:50:07 +0000
commit9dd1d953e76abcca86e7442de2174613e7e252fc (patch)
tree742b877403a39ba0c2b3afda27536487f3a2cf6b
parentAdd tests for more robustness (diff)
Add tests
Notes
Notes: svn path=/head/; revision=527899
-rw-r--r--devel/py-archinfo/Makefile11
-rw-r--r--devel/py-archinfo/distinfo4
2 files changed, 14 insertions, 1 deletions
diff --git a/devel/py-archinfo/Makefile b/devel/py-archinfo/Makefile
index b33350cd5636..05fcb50e4875 100644
--- a/devel/py-archinfo/Makefile
+++ b/devel/py-archinfo/Makefile
@@ -5,6 +5,7 @@ DISTVERSION= 8.20.1.7
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= 0mp@FreeBSD.org
COMMENT= Classes with architecture-specific information useful to other projects
@@ -12,9 +13,19 @@ COMMENT= Classes with architecture-specific information useful to other projects
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR}
+
USES= python:3.5+
+USE_GITHUB= nodefault
+GH_TUPLE= angr:${PORTNAME}:fa979436bd07b4178877d31a5166d28063a89807:tests
USE_PYTHON= autoplist distutils
NO_ARCH= yes
+pre-test:
+ @${LN} -Fs ${WRKSRC_tests}/tests ${WRKSRC}/tests
+
+do-test:
+ @(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} nosetests-${PYTHON_VER} tests/*)
+
.include <bsd.port.mk>
diff --git a/devel/py-archinfo/distinfo b/devel/py-archinfo/distinfo
index 71cb017eb1a9..e95b2e3e4fc5 100644
--- a/devel/py-archinfo/distinfo
+++ b/devel/py-archinfo/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1583180265
+TIMESTAMP = 1583534717
SHA256 (archinfo-8.20.1.7.tar.gz) = fc0cf661c7c416701cc0947566ad162823dd4ed8039619201f854887dcc6709a
SIZE (archinfo-8.20.1.7.tar.gz) = 43408
+SHA256 (angr-archinfo-fa979436bd07b4178877d31a5166d28063a89807_GH0.tar.gz) = 031a284e357c8890b9523e8420a9c3b54e98c21f3d6e3a995b7e77d06415fa09
+SIZE (angr-archinfo-fa979436bd07b4178877d31a5166d28063a89807_GH0.tar.gz) = 47444