[DRE-commits] [SCM] ruby-libxml.git branch, master, updated. 0616ade5ab3d29e517a90a9a9facc149a823a3af

Gunnar Wolf gwolf at debian.org
Thu Nov 24 20:11:39 UTC 2011


The following commit has been merged in the master branch:
commit 0616ade5ab3d29e517a90a9a9facc149a823a3af
Author: Gunnar Wolf <gwolf at debian.org>
Date:   Thu Nov 24 13:40:53 2011 -0600

    Run the provided tests (although many of them fail - We must currently ignore their results :( )

diff --git a/debian/ruby-test-files.yaml b/debian/ruby-test-files.yaml
deleted file mode 100644
index 1a45933..0000000
--- a/debian/ruby-test-files.yaml
+++ /dev/null
@@ -1,37 +0,0 @@
---- 
-- test/tc_attr.rb
-- test/tc_attributes.rb
-- test/tc_attr_decl.rb
-- test/tc_deprecated_require.rb
-- test/tc_document.rb
-- test/tc_document_write.rb
-- test/tc_dtd.rb
-- test/tc_encoding.rb
-- test/tc_error.rb
-- test/tc_gc.rb
-- test/tc_html_parser.rb
-- test/tc_html_parser_context.rb
-- test/tc_namespace.rb
-- test/tc_namespaces.rb
-- test/tc_node.rb
-- test/tc_node_cdata.rb
-- test/tc_node_comment.rb
-- test/tc_node_copy.rb
-- test/tc_node_edit.rb
-- test/tc_node_text.rb
-- test/tc_node_write.rb
-- test/tc_node_xlink.rb
-- test/tc_parser.rb
-- test/tc_parser_context.rb
-- test/tc_properties.rb
-- test/tc_reader.rb
-- test/tc_relaxng.rb
-- test/tc_sax_parser.rb
-- test/tc_schema.rb
-- test/tc_traversal.rb
-- test/tc_xinclude.rb
-- test/tc_xml.rb
-- test/tc_xpath.rb
-- test/tc_xpath_context.rb
-- test/tc_xpath_expression.rb
-- test/tc_xpointer.rb
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
new file mode 100644
index 0000000..56978dd
--- /dev/null
+++ b/debian/ruby-tests.rb
@@ -0,0 +1,15 @@
+#!/usr/bin/ruby
+### $LOAD_PATH << Dir.pwd + '/lib' << Dir.pwd + '/ext'
+instdir = 'debian/ruby-libxml'
+$LOAD_PATH.map {|path| '%s/%s/%s' % [Dir.pwd, instdir, path]}.
+  select {|path| File.exist?(path)}.
+  each {|path| $LOAD_PATH << path}
+
+Dir.chdir('test')
+Dir.open('.').select {|f| f=~/\.rb$/}.each do |f|
+  begin
+    require f
+  rescue
+    'Error loading test: %s' % f
+  end
+end

-- 
ruby-libxml.git



More information about the Pkg-ruby-extras-commits mailing list