[packages/lrzip] trivial compress/decompress test
glen
glen at pld-linux.org
Sun Apr 10 14:42:33 CEST 2016
commit 592352c49376d8562d17a0e7327c8ba5e1988ad2
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Apr 10 15:42:23 2016 +0300
trivial compress/decompress test
lrzip.spec | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/lrzip.spec b/lrzip.spec
index 2b686eb..5b69421 100644
--- a/lrzip.spec
+++ b/lrzip.spec
@@ -5,6 +5,7 @@
%bcond_with system_lzma # use system lzma instead of internal
%bcond_without asm # Enable native Assembly code (ia32 only)
%bcond_without jit # JIT in bundled libzpaq
+%bcond_without tests # build without tests
%ifnarch %{ix86} %{x8664}
%undefine with_jit
@@ -87,6 +88,14 @@ rm -rf lzma
%{__enable_disable asm}
%{__make}
+%if %{with tests}
+./lrzip -z COPYING
+./lrzip --info COPYING.lrz
+./lrzip -d -o COPYING.new COPYING.lrz
+cmp COPYING COPYING.new
+rm COPYING.new
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/lrzip.git/commitdiff/592352c49376d8562d17a0e7327c8ba5e1988ad2
More information about the pld-cvs-commit
mailing list