[DRE-commits] [ruby-mail-gpg] 03/05: - debian/ruby-tests.rake: Re-enable the upstream provided tests; not working yet
Georg Faerber
georg-alioth-guest at moszumanska.debian.org
Sun May 15 21:26:00 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 cd8926763371fb9da61006002ccb9f13eeba3057
Author: Georg Faerber <georg at riseup.net>
Date: Sat May 14 22:04:21 2016 +0200
- debian/ruby-tests.rake: Re-enable the upstream provided tests; not
working yet
---
debian/ruby-tests.rake | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..4aefcf6
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,25 @@
+require 'rake/testtask'
+
+def setup_gpghome
+ ENV['GNUPGHOME'] = File.join File.expand_path("..", ".."), 'build-area', 'ruby-mail-gpg-0.2.6', 'test', 'gpghome'
+ ENV['GPG_AGENT_INFO'] = ENV['GNUPGHOME'] + '/S.gpg-agent:0:1'
+ sh 'echo $GPG_AGENT_INFO'
+ sh 'gpgconf --launch gpg-agent'
+ sh 'gpgconf --reload 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