[packages/ruby-hpricot] add tests, trivial load test for now
glen
glen at pld-linux.org
Sat Oct 17 10:41:11 CEST 2015
commit 997220a1605f45733aa0828441946446d827177c
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Oct 17 11:40:13 2015 +0300
add tests, trivial load test for now
dies with errors for now:
$ ruby -Ilib -Iext/fast_xs -Iext/hpricot_scan -r hpricot -e 1
ruby-hpricot-0.8.2/lib/hpricot/builder.rb:2:in `require': ruby-hpricot-0.8.2/ext/fast_xs/fast_xs.so: undefined symbol: ruby_digitmap - ruby-hpricot-0.8.2/ext/fast_xs/fast_xs.so (LoadError)
from ruby-hpricot-0.8.2/lib/hpricot/builder.rb:2:in `<top (required)>'
from ruby-hpricot-0.8.2/lib/hpricot.rb:26:in `require'
from ruby-hpricot-0.8.2/lib/hpricot.rb:26:in `<top (required)>'
from -e:1:in `require'
ruby-hpricot.spec | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/ruby-hpricot.spec b/ruby-hpricot.spec
index 8157328..0b2cfc8 100644
--- a/ruby-hpricot.spec
+++ b/ruby-hpricot.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without tests # build without tests
+
Summary: A fast and easy HTML parser
Summary(pl.UTF-8): Szybki i prosty analizator HTML-a
Name: ruby-hpricot
@@ -40,6 +44,10 @@ ls *.c *.h > MANIFEST
%{__ruby} setup.rb setup
+%if %{with tests}
+%{__ruby} -Ilib -Iext/fast_xs -Iext/hpricot_scan -r hpricot -e 1
+%endif
+
# rdoc crashes on _why's craaazy code.
#rdoc --op rdoc lib
#rdoc --ri --op ri lib
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-hpricot.git/commitdiff/997220a1605f45733aa0828441946446d827177c
More information about the pld-cvs-commit
mailing list