[DRE-commits] [ruby-encryptor] 04/04: Make tests run

Balasankar C balasankarc-guest at moszumanska.debian.org
Sun May 17 19:58:36 UTC 2015


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

balasankarc-guest pushed a commit to branch master
in repository ruby-encryptor.

commit a9e153df539bc869c16be5958bc9c06e04502d5c
Author: Balasankar C <balasankarc at autistici.org>
Date:   Mon May 18 01:17:26 2015 +0530

    Make tests run
---
 debian/patches/series       |  1 +
 debian/patches/simplecov    | 29 +++++++++++++++++++++++++++++
 debian/ruby-test-files.yaml |  6 ------
 debian/ruby-tests.rake      |  7 +++++++
 4 files changed, 37 insertions(+), 6 deletions(-)

diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..f958273
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+simplecov
diff --git a/debian/patches/simplecov b/debian/patches/simplecov
new file mode 100644
index 0000000..f2c36c8
--- /dev/null
+++ b/debian/patches/simplecov
@@ -0,0 +1,29 @@
+Description: Disable simplecov
+ Disable simplecov while running tests
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/test/test_helper.rb
++++ b/test/test_helper.rb
+@@ -1,20 +1,6 @@
+-if RUBY_VERSION >= '1.9.3'
+-  require 'simplecov'
+-  require 'simplecov-rcov'
+-
+-  SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
+-    SimpleCov::Formatter::HTMLFormatter,
+-    SimpleCov::Formatter::RcovFormatter,
+-  ]
+-
+-  SimpleCov.start do
+-    add_filter 'test'
+-  end
+-end
+-
+ require 'test/unit'
+ require 'digest/sha2'
+ 
+ $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
+ $:.unshift(File.dirname(__FILE__))
+-require 'encryptor'
+\ No newline at end of file
++require 'encryptor'
diff --git a/debian/ruby-test-files.yaml b/debian/ruby-test-files.yaml
deleted file mode 100644
index ab1b29a..0000000
--- a/debian/ruby-test-files.yaml
+++ /dev/null
@@ -1,6 +0,0 @@
----
-- test/compatibility_test.rb
-- test/test_helper.rb
-- test/openssl_helper.rb
-- test/legacy_encryptor_test.rb
-- test/encryptor_test.rb
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..45796dd
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,7 @@
+
+require 'gem2deb/rake/testtask'
+
+Gem2Deb::Rake::TestTask.new do |t|
+  t.libs << 'test'
+  t.test_files = FileList['test/*_test.rb']
+end

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



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