chiark / gitweb /
Test suite: Introduce setup/gnupg
[dgit.git] / tests / setup / gnupg
diff --git a/tests/setup/gnupg b/tests/setup/gnupg
new file mode 100755 (executable)
index 0000000..97cdb64
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+set -e
+. tests/lib
+
+mkdir -p $tmp/gnupg
+cp $troot/gnupg/* $tmp/gnupg
+chmod go-rw $tmp/gnupg/*
+
+export GNUPGHOME=$tmp/gnupg
+
+gpg --list-secret
+
+t-setup-done 'GNUPGHOME' 'gnupg'
+
+echo ok.