Add the netpgpverify tests into the test script.

This commit is contained in:
agc 2009-06-08 06:16:34 +00:00
parent b3acd3dbb1
commit da8de2a7e7
1 changed files with 20 additions and 2 deletions

View File

@ -4,13 +4,17 @@ env USETOOLS=no MAKEOBJDIRPREFIX=/usr/obj/i386 sh -c 'cd ../lib && \
make cleandir ; \
make ; \
su root -c "make install"'
env USETOOLS=no MAKEOBJDIRPREFIX=/usr/obj/i386 sh -c 'cd ../bin && \
env USETOOLS=no MAKEOBJDIRPREFIX=/usr/obj/i386 sh -c 'cd ../netpgp && \
make cleandir ; \
make ; \
su root -c "make install"'
env USETOOLS=no MAKEOBJDIRPREFIX=/usr/obj/i386 sh -c 'cd ../netpgpverify && \
make cleandir ; \
make ; \
su root -c "make install"'
passed=0
total=9
total=13
echo "======> sign/verify 180938 file"
cp configure a
/usr/bin/netpgp --sign a
@ -45,8 +49,22 @@ diff a a2 && passed=$(expr $passed + 1)
echo "======> another cat signature - verified cat command"
/usr/bin/netpgp --cat --output=a3 a.gpg
diff a a3 && passed=$(expr $passed + 1)
echo "======> netpgp list-packets test"
/usr/bin/netpgp --list-packets || passed=$(expr $passed + 1)
echo "======> version information"
/usr/bin/netpgp --version
echo "======> netpgpverify file"
/usr/bin/netpgpverify a.gpg && passed=$(expr $passed + 1)
echo "======> attempt to verify an unsigned file"
/usr/bin/netpgpverify a || passed=$(expr $passed + 1)
echo "======> sign/verify detached signature file"
ls -l f f.sig
/usr/bin/netpgpverify f.sig && passed=$(expr $passed + 1)
echo "======> another verify signature - verified cat command"
/usr/bin/netpgpverify --output=a3 a.gpg
diff a a3 && passed=$(expr $passed + 1)
echo "======> version information"
/usr/bin/netpgpverify --version
rm -f a a.gpg b b.gpg c c.gpg d d.gpg e f f.sig a2 a3
echo "======> no list-packets file"
/usr/bin/netpgp --list-packets || passed=$(expr $passed + 1)