[DRE-commits] [SCM] rake.git branch, master, updated. debian/0.9.2-1-5-gc6c187b

Antonio Terceiro terceiro at debian.org
Fri Nov 18 18:18:09 UTC 2011


The following commit has been merged in the master branch:
commit c6c187ba34f087e59a603f5cec818bd6d7deab7e
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Fri Nov 18 16:16:20 2011 -0200

    Run unit tests during build

diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
index eac5ce6..4bcf1c3 100644
--- a/debian/ruby-tests.rb
+++ b/debian/ruby-tests.rb
@@ -1,13 +1,3 @@
-# FIXME
-# there's a spec/ or a test/ directory in the upstream source, but
-# no test suite was defined in the Gem specification. It would be
-# a good idea to define it here so the package gets tested at build time.
-# Examples:
-# $: << 'lib' << '.'
-# Dir['{spec,test}/**/*.rb'].each { |f| require f }
-#
-# require 'test/ts_foo.rb'
-#
-# require 'rbconfig'
-# ruby = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
-# exec("#{ruby} -I. test/runtests.rb")
+Dir.glob('test/test_*.rb').each do |f|
+  require f
+end

-- 
rake.git



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