summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorgenstern2021-01-23 10:31:26 +1300
committerMorgenstern2021-01-23 10:31:26 +1300
commit177d878623260a956803b27f79e509de82af331a (patch)
tree35b21f2bfe6c05e0fb1aa0ece718dd9dc9647051
parentb11119c093b02ef1b4b0ab30d1b1ead1088442e8 (diff)
downloadaur-177d878623260a956803b27f79e509de82af331a.tar.gz
Build and run tests separately
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD19
2 files changed, 8 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b177e09466b..69aeaf5c638 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = cherrytree-git
pkgdesc = Hierarchical note-taking application, git version
- pkgver = 0.99.28.r0.g4d0eba74
+ pkgver = 0.99.29.r13.gcf073985
pkgrel = 1
url = https://github.com/giuspen/cherrytree
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 813ea83ffcd..d5176b77c3d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=cherrytree-git
_pkgname="${pkgname%%-git}"
-pkgver=0.99.28.r0.g4d0eba74
+pkgver=0.99.29.r13.gcf073985
pkgrel=1
pkgdesc="Hierarchical note-taking application, git version"
arch=('x86_64')
@@ -41,8 +41,8 @@ build() {
cmake \
-B "${_pkgname}/build" \
-S "${_pkgname}" \
- -DBUILD_GMOCK:BOOL='OFF' \
- -DBUILD_TESTING:BOOL='OFF' \
+ -DINSTALL_GTEST:BOOL='OFF' \
+ -DAUTO_RUN_TESTING:BOOL='OFF' \
-Wno-dev
make -C "${_pkgname}/build"
}
@@ -50,15 +50,10 @@ build() {
# NOTE: In order to run tests in a clean chroot, you must allow it access your X server:
# xhost +local:
# https://wiki.archlinux.org/index.php/chroot#Run_graphical_applications_from_chroot
-#check() {
-# export DISPLAY=:0
-# cmake \
-# -B "${_pkgname}/test-build" \
-# -S "${_pkgname}" \
-# -DINSTALL_GTEST:BOOL='OFF' \
-# -Wno-dev
-# make -C "${_pkgname}/test-build/tests"
-#}
+#export DISPLAY=:0
+check() {
+ ./"${_pkgname}/build/run_tests"
+}
package() {
make -C "${_pkgname}/build" DESTDIR="${pkgdir}" install