[liborcus] enable test suite

David Tardon dtardon at fedoraproject.org
Tue May 28 15:28:20 UTC 2013


commit c0d6af2122cffb220524a39b6acae5941115e35f
Author: David Tardon <dtardon at redhat.com>
Date:   Tue May 28 17:09:57 2013 +0200

    enable test suite

 liborcus.spec |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/liborcus.spec b/liborcus.spec
index 375a42f..629a2f2 100644
--- a/liborcus.spec
+++ b/liborcus.spec
@@ -40,8 +40,14 @@ Tools for working with Orcus.
 %prep
 %setup -q
 # fix build of orcus-zip-dump
-sed -i -e 's/orcus_zip_dump_LDADD = /& $(BOOST_SYSTEM_LIB)/' \
+sed -i -e 's/orcus_zip_dump_LDADD = /& $(BOOST_SYSTEM_LIB) /' \
     src/Makefile.in
+# TODO: upstream the changes
+sed -i \
+    -e 's/[a-z_]*_test_LDADD = /& $(BOOST_SYSTEM_LIB) /' \
+    -e 's/parser_test_[a-z_]*_LDADD = /& $(BOOST_SYSTEM_LIB) /' \
+    -e 's/liborcus_test_xml_structure_tree_LDADD = /& $(BOOST_SYSTEM_LIB) /' \
+    src/liborcus/Makefile.in src/parser/Makefile.in
 
 
 %build
@@ -61,6 +67,11 @@ make install DESTDIR=%{buildroot}
 rm -f %{buildroot}/%{_libdir}/*.la
 
 
+%check
+export LD_LIBRARY_PATH=`pwd`/src/liborcus/.libs:`pwd`/src/parser/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
+make check %{?_smp_mflags}
+
+
 %post -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 


More information about the scm-commits mailing list