[DRE-commits] [ruby-mail-gpg] 01/01: - ADD: gpg.conf, gpg-agent.conf and test_runner.sh to develop a way to run the tests with gpg2.

Georg Faerber georg-alioth-guest at moszumanska.debian.org
Wed May 11 23:16:16 UTC 2016


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

georg-alioth-guest pushed a commit to branch tmp/tests
in repository ruby-mail-gpg.

commit eb12dfaeeb7aaa558bfa0837b6499a7d63ae88ca
Author: Georg Faerber <georg at riseup.net>
Date:   Thu May 12 01:10:17 2016 +0200

    - ADD: gpg.conf, gpg-agent.conf and test_runner.sh to develop a way to
      run the tests with gpg2.
---
 test/gpghome/gpg-agent.conf |  2 ++
 test/gpghome/gpg.conf       |  1 +
 test_runner.sh              | 21 +++++++++++++++++++++
 3 files changed, 24 insertions(+)

diff --git a/test/gpghome/gpg-agent.conf b/test/gpghome/gpg-agent.conf
new file mode 100644
index 0000000..c447651
--- /dev/null
+++ b/test/gpghome/gpg-agent.conf
@@ -0,0 +1,2 @@
+allow-loopback-pinentry
+use-standard-socket
diff --git a/test/gpghome/gpg.conf b/test/gpghome/gpg.conf
new file mode 100644
index 0000000..065d80c
--- /dev/null
+++ b/test/gpghome/gpg.conf
@@ -0,0 +1 @@
+pinentry-mode loopback
diff --git a/test_runner.sh b/test_runner.sh
new file mode 100755
index 0000000..67a176d
--- /dev/null
+++ b/test_runner.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+# Get some output, in case things go fishy..
+set -e
+set -x
+
+# Set up the env..
+export DISPLAY=
+export GNUPGHOME=$(pwd)/test/gpghome
+export GPG_AGENT_INFO=$GNUPGHOME/S.gpg-agent:0:1
+
+# Reload 'gpg-agent', so it picks up the right env..
+# (Does the following work even if 'gpg-agent' is not running yet?)
+# (Or do we've to execute 'gpg-agent --daemon' in this case?)
+gpgconf --reload gpg-agent
+
+# Let's run the tests...
+bundle exec rake
+
+# Success...
+exit 0

-- 
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