Subject: [alpine-aports] [PATCH] main/py-cparser: enable tests

From: alpine-mips-patches <[email-masked]>
Date: Wed, 6 Feb 2019 10:10:13 +0000

Built-in unit tests pass on x86_64 and mipseln8hf at least.

---
 main/py-cparser/APKBUILD | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/main/py-cparser/APKBUILD b/main/py-cparser/APKBUILD
index 83e7f35fc9..53d9c58d98 100644
--- a/main/py-cparser/APKBUILD
+++ b/main/py-cparser/APKBUILD
@@ -3,7 +3,7 @@
 pkgname=py-cparser
 _pkgname=pycparser
 pkgver=2.19
-pkgrel=0
+pkgrel=1
 pkgdesc="A C parser written in Python"
 url="https://github.com/eliben/pycparser"
 arch="noarch"
@@ -20,6 +20,12 @@ build() {
 	python3 setup.py build || return 1
 }
 
+check() {
+	cd "$builddir"
+	python2 tests/all_tests.py
+	python3 tests/all_tests.py
+}
+
 package() {
 	mkdir -p "$pkgdir"
 }
-- 
2.20.1

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---