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