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