From 57e5793c4fd5cf1734c1d3abaef7ece426951e1f Mon Sep 17 00:00:00 2001 From: Tim Rakowski Date: Thu, 4 Jan 2018 23:50:39 +0100 Subject: [PATCH] Added check() --- .SRCINFO | 2 +- PKGBUILD | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.SRCINFO b/.SRCINFO index 9cb5d2b141f..d23000933e6 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -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 diff --git a/PKGBUILD b/PKGBUILD index ecb9b24fe2b..032f14cc750 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -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