diff options
author | Rich Li | 2018-01-10 16:29:03 -0800 |
---|---|---|
committer | Rich Li | 2018-01-10 16:29:03 -0800 |
commit | 42744e937fc16fc860201a7be25f63e5b2eb2947 (patch) | |
tree | c99ff9349658d63c4a68cb32c31a2523a301e08a | |
parent | c2f9ee77c049e0415be007b774bfca7ee21fbbf6 (diff) | |
download | aur-42744e937fc16fc860201a7be25f63e5b2eb2947.tar.gz |
Re-enable tests
-rw-r--r-- | PKGBUILD | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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}" |