summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDave Reisner2019-10-19 19:53:04 -0400
committerDave Reisner2019-10-19 19:53:29 -0400
commitc4772b54a51d90e36882c0c9308ebf79c29a4646 (patch)
tree2d1a51521df5a068000e08693ba39882f54e5954 /PKGBUILD
parent3aaf80acf2e95f69c7729480654d69e5035539b9 (diff)
downloadaur-c4772b54a51d90e36882c0c9308ebf79c29a4646.tar.gz
Add check() function for tests
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD9
1 files changed, 8 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 7ec23c62cd5..43163b669f1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Contributor: Dave Reisner <d@falconindy.com>
pkgname=pkgfile-git
-pkgver=18.2.g6e6150d
+pkgver=21
pkgrel=1
pkgdesc="a pacman .files metadata explorer"
arch=('x86_64' 'i686')
@@ -9,6 +9,7 @@ url="http://github.com/falconindy/pkgfile"
license=('MIT')
depends=('libarchive' 'curl' 'pcre' 'pacman')
makedepends=('git' 'perl' 'meson')
+checkdepends=('python' 'gtest' 'gmock')
conflicts=('pkgfile')
provides=('pkgfile')
install=pkgfile.install
@@ -28,6 +29,12 @@ build() {
ninja -C build
}
+check() {
+ cd pkgfile
+
+ meson test -C build
+}
+
package() {
cd pkgfile