[DRE-commits] [asciidoctor] 01/01: Exclude lib/ directory from tests

Guillaume Grossetie ggrossetie-guest at moszumanska.debian.org
Fri Jun 19 19:40:38 UTC 2015


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

ggrossetie-guest pushed a commit to branch master
in repository asciidoctor.

commit becff7e943eec2d7a4d75ce32c69e485510c4a9d
Author: Guillaume Grossetie <ggrossetie at gmail.com>
Date:   Fri Jun 19 21:40:24 2015 +0200

    Exclude lib/ directory from tests
---
 debian/patches/lib_directory_in_tests.patch | 28 ++++++++++++++++++++++++++++
 debian/patches/series                       |  1 +
 2 files changed, 29 insertions(+)

diff --git a/debian/patches/lib_directory_in_tests.patch b/debian/patches/lib_directory_in_tests.patch
new file mode 100644
index 0000000..a3aac26
--- /dev/null
+++ b/debian/patches/lib_directory_in_tests.patch
@@ -0,0 +1,28 @@
+From: Guillaume Grossetie <ggrossetie at gmail.com>
+Subject: Exclude lib/ directory from tests
+Index: asciidoctor/Rakefile
+===================================================================
+--- asciidoctor.orig/Rakefile	2015-05-27 21:24:17.003082432 +0200
++++ asciidoctor/Rakefile	2015-06-19 21:34:30.198079043 +0200
+@@ -20,7 +20,7 @@
+   Rake::TestTask.new(:test) do |test|
+     prepare_test_env
+     puts %(LANG: #{ENV['LANG']}) if ENV.key? 'TRAVIS_BUILD_ID'
+-    test.libs << 'test'
++    test.libs = ['test']
+     test.pattern = 'test/**/*_test.rb'
+     test.verbose = true
+     test.warning = true
+Index: asciidoctor/test/test_helper.rb
+===================================================================
+--- asciidoctor.orig/test/test_helper.rb	2015-05-27 21:24:17.087082433 +0200
++++ asciidoctor/test/test_helper.rb	2015-06-19 21:34:06.406078658 +0200
+@@ -8,7 +8,7 @@
+ 
+ require 'simplecov' if ENV['COVERAGE'] == 'true'
+ 
+-require File.join(ASCIIDOCTOR_PROJECT_DIR, 'lib', 'asciidoctor')
++require 'asciidoctor'
+ 
+ require 'minitest/autorun'
+ require 'socket'
diff --git a/debian/patches/series b/debian/patches/series
index a4a45bb..416ae1d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 update-asciidoctor.1-manpage.patch
 require-asciidoctor.patch
 data_path.patch
+lib_directory_in_tests.patch

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



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