diff options
author | Tyler Veness | 2020-01-07 18:43:49 -0800 |
---|---|---|
committer | Tyler Veness | 2020-01-07 18:43:49 -0800 |
commit | 0a8e631ec8135ca8df62d82a063a5a6bbb7ca0ad (patch) | |
tree | c22b7e0cdfa72bb7178bdd0397ad42ffe6839d1b /PKGBUILD | |
parent | 6935e22978c9841ec22d445bc84a2f2787b2262b (diff) | |
download | aur-0a8e631ec8135ca8df62d82a063a5a6bbb7ca0ad.tar.gz |
Add check() function to run unit tests
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-x | PKGBUILD | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1,7 +1,7 @@ # Maintainer: Modelmat <modelmat@outlook.com.au> pkgname=python-frccontrol-git -pkgver=2020.21 +pkgver=2020.23 pkgrel=1 pkgdesc="Provides wrappers around Python Control for making development of state-space models for the FIRST Robotics Competition easier." arch=("x86_64") @@ -9,7 +9,7 @@ url="https://github.com/calcmogul/frccontrol.git" license=("BSD") depends=("python-control") source=(${pkgname}::"git+https://github.com/calcmogul/frccontrol.git") -md5sums=("SKIP") +md5sums=('SKIP') pkgver() { cd "${srcdir}/${pkgname}" @@ -17,6 +17,11 @@ pkgver() { echo $year.$(git rev-list --count --after="master@{$(($year - 1))-01-01}" master) } +check() { + cd "${srcdir}/${pkgname}" + python setup.py test +} + build() { cd "${srcdir}/${pkgname}" python setup.py build |