[packages/ruby-base62] run tests

glen glen at pld-linux.org
Wed Apr 24 10:08:41 CEST 2013


commit 6215dac6102c514243ca156bc4b98259d256c46e
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Apr 24 11:08:37 2013 +0300

    run tests

 ruby-base62.spec | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/ruby-base62.spec b/ruby-base62.spec
index ffb248d..c967dae 100644
--- a/ruby-base62.spec
+++ b/ruby-base62.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without	tests		# build without tests
+
 %define	pkgname	base62
 Summary:	module that monkeypatches Integer and String to add Base62 encoder
 Name:		ruby-%{pkgname}
@@ -22,6 +26,11 @@ string and turn it back into a valid integer.
 %prep
 %setup -q -n %{pkgname}-%{version}
 
+%build
+%if %{with tests}
+testrb -Ilib test/test_*.rb
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{_bindir}}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-base62.git/commitdiff/6215dac6102c514243ca156bc4b98259d256c46e



More information about the pld-cvs-commit mailing list