summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner2019-10-19 19:53:04 -0400
committerDave Reisner2019-10-19 19:53:29 -0400
commitc4772b54a51d90e36882c0c9308ebf79c29a4646 (patch)
tree2d1a51521df5a068000e08693ba39882f54e5954
parent3aaf80acf2e95f69c7729480654d69e5035539b9 (diff)
downloadaur-c4772b54a51d90e36882c0c9308ebf79c29a4646.tar.gz
Add check() function for tests
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD9
2 files changed, 12 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3ba31f774c9..45bcd607bf6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,15 @@
pkgbase = pkgfile-git
pkgdesc = a pacman .files metadata explorer
- pkgver = 18.2.g6e6150d
+ pkgver = 21
pkgrel = 1
url = http://github.com/falconindy/pkgfile
install = pkgfile.install
arch = x86_64
arch = i686
license = MIT
+ checkdepends = python
+ checkdepends = gtest
+ checkdepends = gmock
makedepends = git
makedepends = perl
makedepends = meson
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