diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-09-06 01:01:10 -0500 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-09-20 10:01:08 +0000 |
commit | 09e4dd994fe45731bb5d2d11a333e2d17c9d8a05 (patch) | |
tree | 647deef212b84cc06301716eae0ef3b6ca20fe9b /main/cmake | |
parent | 8b80511705f4913eb739443b36ec9c3f70039918 (diff) | |
download | aports-09e4dd994fe45731bb5d2d11a333e2d17c9d8a05.tar.bz2 aports-09e4dd994fe45731bb5d2d11a333e2d17c9d8a05.tar.xz |
main/cmake: add test suite
Diffstat (limited to 'main/cmake')
-rw-r--r-- | main/cmake/APKBUILD | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/main/cmake/APKBUILD b/main/cmake/APKBUILD index 4116e87804..ce81d55e53 100644 --- a/main/cmake/APKBUILD +++ b/main/cmake/APKBUILD @@ -2,13 +2,15 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=cmake pkgver=3.9.1 -pkgrel=1 +pkgrel=2 pkgdesc="CMake is a cross-platform open-source make system" url="http://www.cmake.org" arch="all" license="CMake" makedepends="ncurses-dev curl-dev expat-dev zlib-dev bzip2-dev libarchive-dev libuv-dev xz-dev rhash-dev" +options="!checkroot" +checkdepends="musl-utils file" subpackages="$pkgname-doc" case $pkgver in @@ -44,6 +46,11 @@ build() { make } +check() { + cd "$builddir" + CTEST_OUTPUT_ON_FAILURE=TRUE bin/ctest +} + package() { cd $startdir/src/$pkgname-$pkgver make DESTDIR="$pkgdir" install |