Home | History | Annotate | Line # | Download | only in libverify
      1 # $NetBSD: Makefile,v 1.2 2012/11/20 05:26:25 agc Exp $
      2 
      3 PROG=netpgpv
      4 SRCS=libverify.c b64.c pgpsum.c
      5 SRCS+=digest.c tiger.c
      6 SRCS+=bignum.c misc.c
      7 SRCS+=rsaglue.c rsa.c
      8 SRCS+=main.c
      9 WARNS=5
     10 MKMAN=no
     11 CPPFLAGS+=-I${.CURDIR}/../libbn
     12 CPPFLAGS+=-I${.CURDIR}/../librsa
     13 LDADD+=-lz
     14 LDADD+=-lbz2
     15 
     16 # XXX - debugging
     17 #CPPFLAGS+=-g -O0
     18 #LDFLAGS+=-g -O0
     19 #CPPFLAGS+=-O3
     20 #LDFLAGS+=-O3
     21 
     22 .PATH: ${.CURDIR} ${.CURDIR}/../libdigest ${.CURDIR}/../libverify ${.CURDIR}/../libbn ${.CURDIR}/../librsa
     23 
     24 .include <bsd.prog.mk>
     25 
     26 t: ${PROG}
     27 	./${PROG} -c verify b.gpg > output16
     28 	diff expected16 output16
     29 	rm -f output16
     30 	./${PROG} -c verify a.gpg > output17
     31 	diff expected17 output17
     32 	rm -f output17
     33 	./${PROG} -c verify gpgsigned-a.gpg > output18
     34 	diff expected18 output18
     35 	rm -f output18
     36 	./${PROG} -c verify NetBSD-6.0_RC2_hashes.asc > output19
     37 	diff expected19 output19
     38 	rm -f output19
     39 	./${PROG} -c cat jj.asc > output20
     40 	diff expected20 output20
     41 	rm -f output20
     42 	./${PROG} < a.gpg > output21
     43 	diff expected21 output21
     44 	rm -f output21
     45 	./${PROG} < jj.asc > output22
     46 	diff expected22 output22
     47 	rm -f output22
     48 	./${PROG} < NetBSD-6.0_RC2_hashes.asc > output23
     49 	diff expected23 output23
     50 	rm -f output23
     51 	./${PROG} < b.gpg > output24
     52 	diff expected24 output24
     53 	rm -f output24
     54 	./${PROG} NetBSD-6.0_RC1_hashes.gpg > output25
     55 	diff expected25 output25
     56 	rm -f output25
     57 	./${PROG} < NetBSD-6.0_RC1_hashes.gpg > output26
     58 	diff expected26 output26
     59 	rm -f output26
     60 	./${PROG} < NetBSD-6.0_hashes.asc > output27
     61 	diff expected27 output27
     62 	rm -f output27
     63 	./${PROG} NetBSD-6.0_hashes.asc > output28
     64 	diff expected28 output28
     65 	rm -f output28
     66 	./${PROG} NetBSD-6.0_RC1_hashes_ascii.gpg > output29
     67 	diff expected29 output29
     68 	rm -f output29
     69 	./${PROG} < NetBSD-6.0_RC1_hashes_ascii.gpg > output30
     70 	diff expected30 output30
     71 	rm -f output30
     72