blob: 60e84c5d89017bd5734a1758481b6d2dfcb1a860 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# $NetBSD: init.at,v 1.3 2009/05/27 06:47:57 lukem Exp $
AT_SETUP([init])
# Remove any previous testsuite run's $testhomedir
AT_CHECK([rm -rf $testhomedir], [0], [ignore], [ignore])
# Create $testhomedir as fake $HOME/.gnupg
AT_CHECK([mkdir -m 700 -p $testhomedir], [0], [ignore], [ignore])
# Create a gpg.conf
AT_CHECK([echo "default-key $testuserid" > $testhomedir/gpg.conf],
[0], [ignore], [ignore])
# Import private key for tests
# XXX: Use GPG until NetPGP's key management is overhauled
AT_CHECK([gpg --batch --homedir $testhomedir --import < $testprivatekey],
[0], [ignore], [ignore])
AT_CLEANUP
|