Home | History | Annotate | Line # | Download | only in dist
tst revision 1.12
      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.8  agc env USETOOLS=no MAKEOBJDIRPREFIX=/usr/obj/i386 sh -c 'cd ../netpgp && \
      8   1.8  agc 	make cleandir ; \
      9   1.8  agc 	make ; \
     10   1.8  agc 	su root -c "make install"'
     11  1.11  agc env USETOOLS=no MAKEOBJDIRPREFIX=/usr/obj/i386 sh -c 'cd ../netpgpkeys && \
     12  1.11  agc 	make cleandir ; \
     13  1.11  agc 	make ; \
     14  1.11  agc 	su root -c "make install"'
     15   1.8  agc env USETOOLS=no MAKEOBJDIRPREFIX=/usr/obj/i386 sh -c 'cd ../netpgpverify && \
     16   1.2  agc 	make cleandir ; \
     17   1.2  agc 	make ; \
     18   1.2  agc 	su root -c "make install"'
     19   1.6  agc 
     20   1.6  agc passed=0
     21  1.12  agc total=18
     22   1.1  agc echo "======> sign/verify 180938 file"
     23   1.1  agc cp configure a
     24   1.2  agc /usr/bin/netpgp --sign a
     25   1.6  agc /usr/bin/netpgp --verify a.gpg && passed=$(expr $passed + 1)
     26   1.1  agc echo "======> attempt to verify an unsigned file"
     27   1.6  agc /usr/bin/netpgp --verify a || passed=$(expr $passed + 1)
     28   1.1  agc echo "======> encrypt/decrypt 10809 file"
     29  1.10  agc cp src/netpgp/netpgp.1 b
     30   1.2  agc /usr/bin/netpgp --encrypt b
     31   1.2  agc /usr/bin/netpgp --decrypt b.gpg
     32  1.10  agc diff src/netpgp/netpgp.1 b && passed=$(expr $passed + 1)
     33   1.1  agc echo "======> encrypt/decrypt 180938 file"
     34   1.1  agc cp configure c
     35   1.2  agc /usr/bin/netpgp --encrypt c
     36   1.2  agc /usr/bin/netpgp --decrypt c.gpg
     37   1.6  agc diff configure c && passed=$(expr $passed + 1)
     38   1.1  agc echo "======> encrypt/decrypt bigass file"
     39   1.1  agc cat configure configure configure configure configure configure > d
     40   1.1  agc ls -l d
     41   1.1  agc cp d e
     42   1.2  agc /usr/bin/netpgp --encrypt d
     43   1.2  agc /usr/bin/netpgp --decrypt d.gpg
     44   1.6  agc diff e d && passed=$(expr $passed + 1)
     45   1.3  agc echo "======> sign/verify detached signature file"
     46   1.3  agc cat configure configure configure configure configure configure > f
     47   1.3  agc /usr/bin/netpgp --sign --detached f
     48   1.3  agc ls -l f f.sig
     49   1.6  agc /usr/bin/netpgp --verify f.sig && passed=$(expr $passed + 1)
     50   1.4  agc echo "======> cat signature - verified cat command"
     51   1.4  agc /usr/bin/netpgp --cat a.gpg > a2
     52   1.6  agc diff a a2 && passed=$(expr $passed + 1)
     53   1.4  agc echo "======> another cat signature - verified cat command"
     54   1.4  agc /usr/bin/netpgp --cat --output=a3 a.gpg
     55   1.6  agc diff a a3 && passed=$(expr $passed + 1)
     56   1.8  agc echo "======> netpgp list-packets test"
     57   1.8  agc /usr/bin/netpgp --list-packets || passed=$(expr $passed + 1)
     58   1.1  agc echo "======> version information"
     59   1.2  agc /usr/bin/netpgp --version
     60   1.8  agc echo "======> netpgpverify file"
     61   1.8  agc /usr/bin/netpgpverify a.gpg && passed=$(expr $passed + 1)
     62   1.8  agc echo "======> attempt to verify an unsigned file"
     63   1.8  agc /usr/bin/netpgpverify a || passed=$(expr $passed + 1)
     64   1.8  agc echo "======> sign/verify detached signature file"
     65   1.8  agc ls -l f f.sig
     66   1.8  agc /usr/bin/netpgpverify f.sig && passed=$(expr $passed + 1)
     67   1.8  agc echo "======> another verify signature - verified cat command"
     68   1.8  agc /usr/bin/netpgpverify --output=a3 a.gpg
     69   1.8  agc diff a a3 && passed=$(expr $passed + 1)
     70  1.11  agc echo "======> list keys"
     71  1.11  agc /usr/bin/netpgpkeys --list-keys && passed=$(expr $passed + 1)
     72  1.12  agc echo "======> null file to verify"
     73  1.12  agc /usr/bin/netpgp --verify || passed=$(expr $passed + 1)
     74  1.12  agc echo "======> null file to sign"
     75  1.12  agc /usr/bin/netpgp --sign || passed=$(expr $passed + 1)
     76  1.12  agc echo "======> null file to encrypt"
     77  1.12  agc /usr/bin/netpgp --encrypt || passed=$(expr $passed + 1)
     78  1.12  agc echo "======> null file to decrypt"
     79  1.12  agc /usr/bin/netpgp --decrypt || passed=$(expr $passed + 1)
     80   1.8  agc echo "======> version information"
     81   1.8  agc /usr/bin/netpgpverify --version
     82   1.4  agc rm -f a a.gpg b b.gpg c c.gpg d d.gpg e f f.sig a2 a3
     83   1.6  agc echo "Passed ${passed}/${total} tests"
     84