commit afb564a0c8643b77ee44c70d7e9ba140a026e6e0
Author: Elan Ruusamäe <[email protected]>
Date:   Sat Mar 26 22:47:02 2016 +0200

    run tests

 leveldb.spec | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/leveldb.spec b/leveldb.spec
index a26ac20..71cd2c9 100644
--- a/leveldb.spec
+++ b/leveldb.spec
@@ -1,6 +1,7 @@
 #
 # Conditional build:
 %bcond_without tcmalloc        # don't use tcmalloc
+%bcond_without tests           # build without tests
 
 %ifarch x32
 %undefine      with_tcmalloc
@@ -65,6 +66,12 @@ Statyczna biblioteka LevelDB.
        CXX="%{__cxx}" \
        OPT="%{rpmcflags} %{!?debug:-DNDEBUG}"
 
+%if %{with tests}
+%{__make} check \
+       CXX="%{__cxx}" \
+       OPT="%{rpmcflags} %{!?debug:-DNDEBUG}"
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/leveldb.git/commitdiff/afb564a0c8643b77ee44c70d7e9ba140a026e6e0

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to