From 672009bebc8fc7cfc1811e1c069cd5837d11bc57 Mon Sep 17 00:00:00 2001 From: Tom M Date: Thu, 5 Jan 2017 21:24:41 +0100 Subject: [PATCH] PKGBUILD: use unit tests --- contrib/PKGBUILD | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/contrib/PKGBUILD b/contrib/PKGBUILD index f3160d4e..ed2b925b 100644 --- a/contrib/PKGBUILD +++ b/contrib/PKGBUILD @@ -23,3 +23,10 @@ package() { cd build make DESTDIR="${pkgdir}" install } + +check() { + cd "${srcdir}/${pkgname}-${pkgver}" + cd build + export CTEST_OUTPUT_ON_FAILURE=1 + make check +}