[packages/leveldb] run tests
glen
glen at pld-linux.org
Sat Mar 26 21:47:06 CET 2016
commit afb564a0c8643b77ee44c70d7e9ba140a026e6e0
Author: Elan Ruusamäe <glen at delfi.ee>
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
More information about the pld-cvs-commit
mailing list