summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRich Li2018-01-10 16:29:03 -0800
committerRich Li2018-01-10 16:29:03 -0800
commit42744e937fc16fc860201a7be25f63e5b2eb2947 (patch)
treec99ff9349658d63c4a68cb32c31a2523a301e08a
parentc2f9ee77c049e0415be007b774bfca7ee21fbbf6 (diff)
downloadaur-42744e937fc16fc860201a7be25f63e5b2eb2947.tar.gz
Re-enable tests
-rw-r--r--PKGBUILD10
1 files changed, 5 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index d37f0e155ee..74e69d05eb5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -18,11 +18,11 @@ build() {
python setup.py build
}
-# # Doesn't work
-# check() {
-# cd "${srcdir}/line_profiler-${pkgver}"
-# python -m unittest discover -v tests
-# }
+check() {
+ cd "${srcdir}/line_profiler-${pkgver}"
+ py_ver=$(python -c 'import sys; print("{0.major}.{0.minor}".format(sys.version_info))')
+ PYTHONPATH="./build/lib.linux-${CARCH}-${py_ver}" python -m unittest discover -v tests
+}
package() {
cd "${srcdir}/line_profiler-${pkgver}"