1 # $NetBSD: cat.at,v 1.5 2009/06/11 02:48:20 lukem Exp $
3 AT_SETUP([attached signature and verification])
5 AT_CHECK([cp $abs_top_builddir/libtool file3], [0], [ignore], [ignore])
8 AT_CHECK([netpgp --homedir $testhomedir --sign file3],
9 [0], [ignore], [ignore])
12 AT_CHECK([netpgp --homedir $testhomedir --cat --output=file3.copy file3.gpg],
13 [0], [ignore], [ignore])
14 AT_CHECK([diff file3 file3.copy])
16 # Verify sig to stdout
17 AT_CHECK([netpgp --homedir $testhomedir --cat file3.gpg],
18 [0], [stdout], [ignore])
19 AT_CHECK([diff file3 stdout])
21 # XXXTODO: deliberately corrupt file3.gpg and attempt to verify