]> git.pld-linux.org Git - packages/ruby-hpricot.git/commitdiff
add tests, trivial load test for now
authorElan Ruusamäe <glen@delfi.ee>
Sat, 17 Oct 2015 08:40:13 +0000 (11:40 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 17 Oct 2015 08:41:05 +0000 (11:41 +0300)
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

index 815732864c3af7d43ffd5f4043eb81d5ae2ff088..0b2cfc83ddc73b14dc0d7476d2ee7d7a2b916908 100644 (file)
@@ -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
This page took 0.112605 seconds and 4 git commands to generate.