Skip to content

Commit 242408c

Browse files
committed
hyprwire-git: add checkdepends & check() function
1 parent ecd4ee1 commit 242408c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

archlinuxcn/hyprwire-git/PKGBUILD

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ url="https://github.com/hyprwm/${_pkgname}"
1010
license=('BSD-3-Clause')
1111
depends=('gcc-libs' 'hyprutils-git' 'libffi' 'pugixml')
1212
makedepends=('git' 'cmake')
13+
checkdepends=('gtest')
1314
conflicts=("${_pkgname}")
1415
provides=("${_pkgname}" "lib${_pkgname}.so")
1516
source=("git+${url}.git")
@@ -32,6 +33,10 @@ build() {
3233
cmake --build build
3334
}
3435

36+
check() {
37+
ctest --test-dir build --output-on-failure
38+
}
39+
3540
package() {
3641
DESTDIR="${pkgdir}" cmake --install build
3742
install -Dm644 "${_pkgname}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}/"

0 commit comments

Comments
 (0)