1# $NetBSD: cat.at,v 1.5 2009/06/11 02:48:20 lukem Exp $ 2 3AT_SETUP([attached signature and verification]) 4 5AT_CHECK([cp $abs_top_builddir/libtool file3], [0], [ignore], [ignore]) 6 7# Make signature 8AT_CHECK([echo '' | netpgp --pass-fd 0 --homedir $testhomedir --sign file3], 9 [0], [ignore], [ignore]) 10 11# Verify sig file 12AT_CHECK([netpgp --homedir $testhomedir --cat --output=file3.copy file3.gpg], 13 [0], [ignore], [ignore]) 14AT_CHECK([diff file3 file3.copy]) 15 16# Verify sig to stdout 17AT_CHECK([netpgp --homedir $testhomedir --cat file3.gpg], 18 [0], [stdout], [ignore]) 19AT_CHECK([diff file3 stdout]) 20 21# XXXTODO: deliberately corrupt file3.gpg and attempt to verify 22 23AT_CLEANUP 24