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