diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-28 02:11:29 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-28 02:13:28 +0000 |
commit | b0d3210c7c5ee681992ec3d0ebfd144b355d5842 (patch) | |
tree | c3366985fd10cdb03db12757f51a88b321dd74d3 /community | |
parent | cfba716f4cd51a78d3ab9d31e9c1621b05899f9b (diff) | |
download | aports-b0d3210c7c5ee681992ec3d0ebfd144b355d5842.tar.bz2 aports-b0d3210c7c5ee681992ec3d0ebfd144b355d5842.tar.xz |
community/gcovr: add simple check
Add a simple test as upstream doesn't provide a test suite.
Diffstat (limited to 'community')
-rw-r--r-- | community/gcovr/APKBUILD | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/community/gcovr/APKBUILD b/community/gcovr/APKBUILD index 97f137694a..a751fea130 100644 --- a/community/gcovr/APKBUILD +++ b/community/gcovr/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: André Klitzing <aklitzing@gmail.com> pkgname=gcovr pkgver=3.3 -pkgrel=0 +pkgrel=1 pkgdesc="Generates a simple report that summarizes the gcc code coverage" url="http://gcovr.com/" arch="noarch" @@ -14,14 +14,17 @@ builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" - python2 setup.py build || return 1 + python2 setup.py build +} + +check() { + cd "$builddir" + ./scripts/gcovr --help > /dev/null } package() { cd "$builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 + python2 setup.py install --prefix=/usr --root="$pkgdir" } -md5sums="85af705ca6e1187d2bae967d26810c55 gcovr-3.3.tar.gz" -sha256sums="8a60ba6242d67a58320e9e16630d80448ef6d5284fda5fb3eff927b63c8b04a2 gcovr-3.3.tar.gz" sha512sums="e5046bc4e38c99691c3bcc58abdfbbe965c46d02c8c50dbf135bd5108bd9bba1fa450ab0b5e23157a178f7c1303ec9c285470e9be1a14274528e5d7051013a08 gcovr-3.3.tar.gz" |