ruby-hdfeos5 (1.0-2) add-test-target.patch

Summary

 extconf.rb |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

    
download this patch

Patch contents

--- ruby-hdfeos5.orig/extconf.rb
+++ ruby-hdfeos5/extconf.rb
@@ -59,8 +59,11 @@
    when /^all:/
       newmkfl.puts(line)
       newmkfl.puts("")
-      newmkfl.puts("test: all")            # insert the "test" target
-      newmkfl.puts("\t\t@cd test && ruby test.rb && echo 'test did not fail :-p (please ignore the warnings)' && cd ..")
+      newmkfl.puts("\t\t-@( [ ! -d lib/numru ] && ( mkdir -p lib/numru && cd lib/numru && ln -s ../../hdfeos5raw.so hdfeos5raw.so && ln -s ../hdfeos5.rb hdfeos5.rb )) ")
+      newmkfl.puts("\t\tcd test && /usr/bin/ruby$(CDBS_RUBY_VER) -I../lib test_pt.rb 1>/dev/null && cd ..")
+      newmkfl.puts("\t\tcd test && /usr/bin/ruby$(CDBS_RUBY_VER) -I../lib test_sw.rb 1>/dev/null && cd ..")
+      newmkfl.puts("\t\tcd test && /usr/bin/ruby$(CDBS_RUBY_VER) -I../lib test_za.rb 1>/dev/null && cd ..")
+      newmkfl.puts("\t\t-@( [ -d lib/numru ] && ( rm -rf lib/numru ))")
    else
       newmkfl.puts(line)
    end