chiark / gitweb /
test suite: lib-reprepro: Allow configuring for another distro
[dgit.git] / tests / setup / gnupg
1 #!/bin/bash
2 set -e
3 . tests/lib
4
5 mkdir -p $tmp/gnupg
6 cp $troot/gnupg/* $tmp/gnupg
7 chmod go-rw $tmp/gnupg/*
8
9 export GNUPGHOME=$tmp/gnupg
10
11 cat >$tmp/gnupg/gpg-agent.conf <<END
12 log-file $tmp/gnupg/AGENT.log
13 END
14 #debug-all
15
16 setup='
17         export DGIT_TEST_REAL_GPG_AGENT=$(type -p gpg-agent)
18         export DGIT_STUNT_AGENT=$troot/tstunt/gpg-agent
19         export GNUPGHOME
20         t-tstunt gpg
21 '
22
23 eval "$setup"
24
25 gpg --list-secret
26
27 t-setup-done 'GNUPGHOME' 'gnupg' "$setup"
28
29 t-ok