[DRE-commits] [ruby-mail-gpg] 03/03: debian/ruby-tests.rake: Not yet working

Georg Faerber georg-alioth-guest at moszumanska.debian.org
Sun Nov 20 18:36:35 UTC 2016


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

georg-alioth-guest pushed a commit to branch master
in repository ruby-mail-gpg.

commit 402f3d296dbdb48f2995abb638efcdbe34794960
Author: Georg Faerber <georg at riseup.net>
Date:   Sun Nov 20 19:07:20 2016 +0100

    debian/ruby-tests.rake: Not yet working
---
 debian/ruby-tests.rake | 25 +++++++++++++++++++++----
 1 file changed, 21 insertions(+), 4 deletions(-)

diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
index 63f3fd6..f1631c3 100644
--- a/debian/ruby-tests.rake
+++ b/debian/ruby-tests.rake
@@ -1,6 +1,23 @@
-require 'gem2deb/rake/testtask'
+require 'rake/testtask'
 
-Gem2Deb::Rake::TestTask.new do |t|
-  t.libs = ['test']
-  t.test_files = FileList['test/**/*_test.rb'] + FileList['test/**/test_*.rb']
+def setup_gpghome
+  gpghome = File.join File.dirname(__FILE__), 'test', 'gpghome'
+  ENV['GNUPGHOME'] = gpghome
+  ENV['GPG_AGENT_INFO'] = '' # disable gpg agent
+end
+
+task :default => ["mail_gpg:tests:setup", :test]
+
+namespace :mail_gpg do
+  namespace :tests do
+    task :setup do
+      setup_gpghome
+    end
+  end
+end
+
+Rake::TestTask.new(:test) do |test|
+  test.libs << 'test'
+  test.test_files = FileList['test/**/*_test.rb']
+  test.verbose = true
 end

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



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