sssd: enable tests with cmocka and check.

This commit is contained in:
maxice8 2018-05-30 19:00:03 -03:00
parent 8e7df6870d
commit 9f56ed1aca

View File

@ -1,15 +1,16 @@
# Template file for 'sssd'
pkgname=sssd
version=1.16.1
revision=1
revision=2
build_style=gnu-configure
configure_args="--without-selinux --without-semanage
--disable-cifs-idmap-plugin --without-samba --disable-config-lib"
--disable-cifs-idmap-plugin --without-samba --disable-config-lib
--with-test-dir=/dev/shm"
hostmakedepends="pkg-config nscd bind xmlcatmgr docbook-xsl"
makedepends="pam-devel popt-devel talloc-devel tdb-devel tevent-devel ldb-devel
ding-libs-devel libldap-devel mit-krb5-devel c-ares-devel glib-devel
libxslt-devel python-devel nss-devel libnfsidmap-devel http-parser-devel
jansson-devel python3-devel libcurl-devel"
jansson-devel python3-devel libcurl-devel cmocka-devel check-devel"
make_dirs="/var/lib/sss/db 0700 root root
/var/lib/sss/secrets 0700 root root
/var/lib/sss/pubconf/krb5.include.d 0700 root root
@ -27,6 +28,12 @@ homepage="https://pagure.io/SSSD/sssd/"
distfiles="https://releases.pagure.org/SSSD/sssd/sssd-${version}.tar.gz"
checksum=2dbf677851afdefcdf57eccaf25d59eb682a2994ad2a2dbf419003930a0b506e
do_check() {
export CK_TIMEOUT_MULTIPLIER=10
make check VERBOSE=yes
unset CK_TIMEOUT_MULTIPLIER
}
post_install() {
rm -rf ${DESTDIR}/etc/rc.d