[DRE-commits] [SCM] ruby-bdb.git branch, debian-sid, updated. debian/0.6.5-1-14-ge3b5802

Ondřej Surý ondrej at sury.org
Wed May 25 12:39:12 UTC 2011


The following commit has been merged in the debian-sid branch:
commit a8b0b4d776faea75000b33e4996101609f546f9e
Author: Ondřej Surý <ondrej at sury.org>
Date:   Wed May 25 14:21:00 2011 +0200

    Add custom script to run ruby tests

diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
new file mode 100644
index 0000000..a879e6d
--- /dev/null
+++ b/debian/ruby-tests.rb
@@ -0,0 +1,7 @@
+#!/usr/bin/ruby
+
+Dir.foreach('tests') do |test_file|
+  next if /^\./ =~ test_file || /(_\.rb|~)$/ =~ test_file
+  next if FileTest.directory?(test_file)
+  system("#{ENV['RUBY_TEST_BIN']} tests/#{test_file}") || exit($?)
+end

-- 
ruby-bdb.git



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