1 1.1 agc #! /bin/sh 2 1.1 agc 3 1.2 agc env USETOOLS=no MAKEOBJDIRPREFIX=/usr/obj/i386 sh -c 'cd ../lib && \ 4 1.2 agc make cleandir ; \ 5 1.2 agc make ; \ 6 1.2 agc su root -c "make install"' 7 1.2 agc env USETOOLS=no MAKEOBJDIRPREFIX=/usr/obj/i386 sh -c 'cd ../bin && \ 8 1.2 agc make cleandir ; \ 9 1.2 agc make ; \ 10 1.2 agc su root -c "make install"' 11 1.6 agc 12 1.6 agc passed=0 13 1.6 agc total=8 14 1.1 agc echo "======> sign/verify 180938 file" 15 1.1 agc cp configure a 16 1.2 agc /usr/bin/netpgp --sign a 17 1.6 agc /usr/bin/netpgp --verify a.gpg && passed=$(expr $passed + 1) 18 1.1 agc echo "======> attempt to verify an unsigned file" 19 1.6 agc /usr/bin/netpgp --verify a || passed=$(expr $passed + 1) 20 1.1 agc echo "======> encrypt/decrypt 10809 file" 21 1.1 agc cp src/bin/netpgp.1 b 22 1.2 agc /usr/bin/netpgp --encrypt b 23 1.2 agc /usr/bin/netpgp --decrypt b.gpg 24 1.6 agc diff src/bin/netpgp.1 b && passed=$(expr $passed + 1) 25 1.1 agc echo "======> encrypt/decrypt 180938 file" 26 1.1 agc cp configure c 27 1.2 agc /usr/bin/netpgp --encrypt c 28 1.2 agc /usr/bin/netpgp --decrypt c.gpg 29 1.6 agc diff configure c && passed=$(expr $passed + 1) 30 1.1 agc echo "======> encrypt/decrypt bigass file" 31 1.1 agc cat configure configure configure configure configure configure > d 32 1.1 agc ls -l d 33 1.1 agc cp d e 34 1.2 agc /usr/bin/netpgp --encrypt d 35 1.2 agc /usr/bin/netpgp --decrypt d.gpg 36 1.6 agc diff e d && passed=$(expr $passed + 1) 37 1.3 agc echo "======> sign/verify detached signature file" 38 1.3 agc cat configure configure configure configure configure configure > f 39 1.3 agc /usr/bin/netpgp --sign --detached f 40 1.3 agc ls -l f f.sig 41 1.6 agc /usr/bin/netpgp --verify f.sig && passed=$(expr $passed + 1) 42 1.4 agc echo "======> cat signature - verified cat command" 43 1.4 agc /usr/bin/netpgp --cat a.gpg > a2 44 1.6 agc diff a a2 && passed=$(expr $passed + 1) 45 1.4 agc echo "======> another cat signature - verified cat command" 46 1.4 agc /usr/bin/netpgp --cat --output=a3 a.gpg 47 1.6 agc diff a a3 && passed=$(expr $passed + 1) 48 1.1 agc echo "======> version information" 49 1.2 agc /usr/bin/netpgp --version 50 1.4 agc rm -f a a.gpg b b.gpg c c.gpg d d.gpg e f f.sig a2 a3 51 1.6 agc echo "Passed ${passed}/${total} tests" 52