5 # Remove any previous testsuite run's $testhomedir
6 AT_CHECK([rm -rf $testhomedir], [0], [ignore], [ignore])
8 # Create $testhomedir as fake $HOME/.gnupg
9 AT_CHECK([mkdir -m 700 -p $testhomedir], [0], [ignore], [ignore])
12 AT_CHECK([echo "default-key $testuserid" > $testhomedir/gpg.conf],
13 [0], [ignore], [ignore])
15 # Import private key for tests
16 # XXX: Use GPG until NetPGP's key management is overhauled
17 AT_CHECK([gpg --batch --homedir $testhomedir --import < $testprivatekey],
18 [0], [ignore], [ignore])