[DRE-commits] [ruby-nokogiri] 04/04: switch running tests to debian/ruby-tests.rake
Antonio Terceiro
terceiro at moszumanska.debian.org
Tue Nov 17 17:11:27 UTC 2015
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository ruby-nokogiri.
commit a3450bc5a6b4b76db1d779a4e0aba426fd6ce071
Author: Antonio Terceiro <terceiro at debian.org>
Date: Tue Nov 17 14:49:53 2015 -0200
switch running tests to debian/ruby-tests.rake
---
debian/changelog | 1 +
debian/control | 2 +-
debian/ruby-tests.rake | 5 +++++
debian/ruby-tests.rb | 4 ----
4 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index cbad98d..306788e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ ruby-nokogiri (1.6.6.3-1) UNRELEASED; urgency=medium
* New upstream release
* Refresh patches
+ * switch running tests to debian/ruby-tests.rake
-- Antonio Terceiro <terceiro at debian.org> Tue, 17 Nov 2015 14:39:46 -0200
diff --git a/debian/control b/debian/control
index fe8cc95..df0820c 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: ruby
Priority: optional
Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
Uploaders: Lucas Nussbaum <lucas at debian.org>, Cédric Boutillier <boutil at debian.org>
-Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.7.5~), libxml2-dev, libxslt-dev, ruby-minitest, pkg-config
+Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.7.5~), libxml2-dev, libxslt-dev, ruby-minitest, pkg-config, rake
Standards-Version: 3.9.6
Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-nokogiri.git
Vcs-Browser: http://anonscm.debian.org/?p=pkg-ruby-extras/ruby-nokogiri.git;a=summary
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..642f3a6
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,5 @@
+require 'gem2deb/rake/testtask'
+Gem2Deb::Rake::TestTask.new do |t|
+ t.libs = [ 'test' ]
+ t.test_files = FileList['test/**/test_*.rb']
+end
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
deleted file mode 100644
index 46bb600..0000000
--- a/debian/ruby-tests.rb
+++ /dev/null
@@ -1,4 +0,0 @@
-$: << 'test'
-Encoding.default_external = "UTF-8" if RUBY_VERSION >= '1.9.1'
-Dir['test/**/test_*.rb'].each { |f| require f }
-
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-nokogiri.git
More information about the Pkg-ruby-extras-commits
mailing list