Added check()

This commit is contained in:
Tim Rakowski 2018-01-04 23:50:39 +01:00
parent 36d9b37b63
commit 57e5793c4f
2 changed files with 13 additions and 1 deletions

View file

@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
# Fri Dec 8 17:16:24 UTC 2017
# Thu Jan 4 22:50:45 UTC 2018
pkgbase = ignition-math
pkgdesc = Math classes and functions for robot applications
pkgver = 3.3.0

View file

@ -34,6 +34,18 @@ build() {
make
}
check() {
cd "$srcdir/$_dir/build"
cmake .. -DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_INSTALL_LIBDIR="lib" \
-DENABLE_TESTS_COMPILATION:BOOL=True
make
make test
}
package() {
cd "$srcdir/$_dir/build"
make DESTDIR="$pkgdir/" install