1*0f17222cSlukem# $NetBSD: init.at,v 1.3 2009/05/27 06:47:57 lukem Exp $ 21c576705Slukem 31c576705SlukemAT_SETUP([init]) 41c576705Slukem 5*0f17222cSlukem# Remove any previous testsuite run's $testhomedir 6*0f17222cSlukemAT_CHECK([rm -rf $testhomedir], [0], [ignore], [ignore]) 71c576705Slukem 8*0f17222cSlukem# Create $testhomedir as fake $HOME/.gnupg 9*0f17222cSlukemAT_CHECK([mkdir -m 700 -p $testhomedir], [0], [ignore], [ignore]) 101c576705Slukem 11*0f17222cSlukem# Create a gpg.conf 12*0f17222cSlukemAT_CHECK([echo "default-key $testuserid" > $testhomedir/gpg.conf], 131c576705Slukem [0], [ignore], [ignore]) 141c576705Slukem 15*0f17222cSlukem# Import private key for tests 16*0f17222cSlukem# XXX: Use GPG until NetPGP's key management is overhauled 17*0f17222cSlukemAT_CHECK([gpg --batch --homedir $testhomedir --import < $testprivatekey], 181c576705Slukem [0], [ignore], [ignore]) 191c576705Slukem 201c576705SlukemAT_CLEANUP 21