[libcmis] enable unit tests

David Tardon dtardon at fedoraproject.org
Thu Nov 21 08:00:05 UTC 2013


commit 85f85c400f6c536180c4c2fdc10c3c04dc02de8a
Author: David Tardon <dtardon at redhat.com>
Date:   Wed Nov 6 10:53:06 2013 +0100

    enable unit tests

 libcmis.spec |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/libcmis.spec b/libcmis.spec
index ea3d853..449ba09 100644
--- a/libcmis.spec
+++ b/libcmis.spec
@@ -11,6 +11,7 @@ URL: http://sourceforge.net/projects/libcmis/
 Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
 
 BuildRequires: boost-devel
+BuildRequires: cppunit-devel
 BuildRequires: libcurl-devel
 BuildRequires: libxml2-devel
 BuildRequires: xmlto
@@ -44,8 +45,8 @@ command line.
 %setup -q
 
 %build
-%configure --disable-silent-rules --disable-static --disable-tests --disable-werror \
-    DOCBOOK2MAN='xmlto man'
+%configure --disable-silent-rules --disable-static --disable-werror \
+    --disable-long-tests DOCBOOK2MAN='xmlto man'
 sed -i \
     -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
     -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
@@ -59,6 +60,10 @@ rm -f %{buildroot}/%{_libdir}/*.la
 %post -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
+%check
+export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
+make check
+
 %files
 %doc AUTHORS COPYING.* NEWS README
 %{_libdir}/%{name}-%{apiversion}.so.*


More information about the scm-commits mailing list