[DRE-commits] [ruby-rubypants] 09/11: Allow tests to run with autopkgtest

Jérémy Bobbio lunar at moszumanska.debian.org
Wed Nov 30 21:50:19 UTC 2016


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch master
in repository ruby-rubypants.

commit c4e38b1bb45902e39ff3e22932df2bb51165c271
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Wed Nov 30 19:25:34 2016 +0100

    Allow tests to run with autopkgtest
---
 ...sts-to-be-run-against-system-installation.patch | 31 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 debian/ruby-tests.rb                               |  2 ++
 3 files changed, 34 insertions(+)

diff --git a/debian/patches/allow-tests-to-be-run-against-system-installation.patch b/debian/patches/allow-tests-to-be-run-against-system-installation.patch
new file mode 100644
index 0000000..afe11ab
--- /dev/null
+++ b/debian/patches/allow-tests-to-be-run-against-system-installation.patch
@@ -0,0 +1,31 @@
+From: =?utf-8?q?J=C3=A9r=C3=A9my_Bobbio?= <lunar at debian.org>
+Date: Wed, 30 Nov 2016 19:24:22 +0100
+Subject: Allow tests to be run against system installation
+
+---
+ Rakefile               | 2 +-
+ test/rubypants_test.rb | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Rakefile b/Rakefile
+index 99c8dd3..0ff4b6d 100644
+--- a/Rakefile
++++ b/Rakefile
+@@ -3,5 +3,5 @@ task :default => [:test]
+ 
+ desc "Run all the tests"
+ task :test do
+-  ruby 'test/rubypants_test.rb'
++  ruby -Ilib 'test/rubypants_test.rb'
+ end
+diff --git a/test/rubypants_test.rb b/test/rubypants_test.rb
+index 3c8d886..9547963 100644
+--- a/test/rubypants_test.rb
++++ b/test/rubypants_test.rb
+@@ -1,5 +1,5 @@
+ require 'minitest/autorun'
+-require_relative '../lib/rubypants'
++require 'rubypants'
+ 
+ # Test EVERYTHING against SmartyPants.pl output!
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 3d00cb3..fe3af8e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 remove-simplecov-and-codecov-from-test-dependencies.patch
+allow-tests-to-be-run-against-system-installation.patch
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
index 45f8728..90dd5b9 100644
--- a/debian/ruby-tests.rb
+++ b/debian/ruby-tests.rb
@@ -1 +1,3 @@
+$: << 'lib'
+
 require 'test/rubypants_test.rb'

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-rubypants.git



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