[DRE-commits] [ruby-rbpdf] 05/25: also run tests from rbpdf-font
Antonio Terceiro
terceiro at moszumanska.debian.org
Sun Feb 14 15:56:44 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository ruby-rbpdf.
commit fd2778d5b126fb06129cab537d230a1a1b17654a
Author: Antonio Terceiro <terceiro at softwarelivre.org>
Date: Sat Jan 23 12:19:53 2016 -0200
also run tests from rbpdf-font
---
...test-test-font-path-contents-not-exact-lo.patch | 23 ++++++++++++++++++++++
debian/patches/series | 1 +
debian/ruby-tests.rake | 9 +++++++++
3 files changed, 33 insertions(+)
diff --git a/debian/patches/0003-rbpdf-font-test-test-font-path-contents-not-exact-lo.patch b/debian/patches/0003-rbpdf-font-test-test-font-path-contents-not-exact-lo.patch
new file mode 100644
index 0000000..4f6c57d
--- /dev/null
+++ b/debian/patches/0003-rbpdf-font-test-test-font-path-contents-not-exact-lo.patch
@@ -0,0 +1,23 @@
+From: Antonio Terceiro <terceiro at softwarelivre.org>
+Date: Sat, 23 Jan 2016 12:22:07 -0200
+Subject: rbpdf-font/test: test font path contents, not exact location
+
+---
+ rbpdf-font/test/rbpdf_font_file_test.rb | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/rbpdf-font/test/rbpdf_font_file_test.rb b/rbpdf-font/test/rbpdf_font_file_test.rb
+index 9593c5a..17a2f10 100644
+--- a/rbpdf-font/test/rbpdf_font_file_test.rb
++++ b/rbpdf-font/test/rbpdf_font_file_test.rb
+@@ -3,9 +3,7 @@ require 'test_helper'
+ class RbpdfFontFileTest < Test::Unit::TestCase
+ test "Font path test" do
+ font_path = RBPDFFontDescriptor.getfontpath
+- exp_path = File.join File.dirname(__FILE__).gsub(/test$/, '') , 'lib', 'fonts'
+-
+- assert_equal exp_path, font_path
++ assert_include Dir.entries(font_path), 'courier.rb'
+ end
+
+ test "Core Font File test" do
diff --git a/debian/patches/series b/debian/patches/series
index 1425efe..0770bdf 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
0001-Skip-tests-related-to-alpha-channel-support-in-rmagi.patch
0002-Relax-dependency-on-htmlentities.patch
+0003-rbpdf-font-test-test-font-path-contents-not-exact-lo.patch
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
index 63f3fd6..8e6a310 100644
--- a/debian/ruby-tests.rake
+++ b/debian/ruby-tests.rake
@@ -4,3 +4,12 @@ Gem2Deb::Rake::TestTask.new do |t|
t.libs = ['test']
t.test_files = FileList['test/**/*_test.rb'] + FileList['test/**/test_*.rb']
end
+
+task :default => :test_fonts
+
+Rake::TestTask.new(:test_fonts) do |t|
+ t.libs = ['rbpdf-font/test']
+ t.test_files = FileList['rbpdf-font/test/*_test.rb']
+ t.verbose = true
+ t.options = '-v'
+end
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-rbpdf.git
More information about the Pkg-ruby-extras-commits
mailing list