Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/bsd/netpgp/dist add an additional test for t...



details:   https://anonhg.NetBSD.org/src/rev/771953e54645
branches:  trunk
changeset: 758427:771953e54645
user:      agc <agc%NetBSD.org@localhost>
date:      Thu Nov 04 15:39:42 2010 +0000

description:
add an additional test for the user-specified cipher

diffstat:

 crypto/external/bsd/netpgp/dist/tst |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r ddb4ac740c51 -r 771953e54645 crypto/external/bsd/netpgp/dist/tst
--- a/crypto/external/bsd/netpgp/dist/tst       Thu Nov 04 15:39:08 2010 +0000
+++ b/crypto/external/bsd/netpgp/dist/tst       Thu Nov 04 15:39:42 2010 +0000
@@ -36,7 +36,7 @@
        su root -c "make install"'
 
 passed=0
-total=35
+total=36
 rm -f passed
 date > passed
 echo "======> sign/verify 180938 file"
@@ -184,5 +184,9 @@
 echo "======> single key listing"
 /usr/bin/netpgpkeys -l agc && passed=$(expr $passed + 1)
 echo "35 " $passed >> passed
-rm -f a a.gpg b b.gpg c c.gpg d d.gpg e f f.sig g g.asc g2 a2 a3 a4 a5 h h.sig i i.asc
+echo "======> pipeline and memory encrypt/decrypt with specified cipher"
+/usr/bin/netpgp -e --cipher camellia128 < a | /usr/bin/netpgp -d > a6
+diff a a6 && passed=$(expr $passed + 1)
+echo "36 " $passed >> passed
+rm -f a a.gpg b b.gpg c c.gpg d d.gpg e f f.sig g g.asc g2 a2 a3 a4 a5 a6 h h.sig i i.asc
 echo "Passed ${passed}/${total} tests"



Home | Main Index | Thread Index | Old Index