blob: 9244b11bf831273c25b0ae081643bd769c7f3259 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# $OpenBSD: Makefile.inc,v 1.16 2021/12/01 09:03:19 claudio Exp $
.PATH: ${.CURDIR}/../../../../usr.sbin/rpki-client
PROGS += test-ip
PROGS += test-cert
PROGS += test-gbr
PROGS += test-mft
PROGS += test-roa
PROGS += test-tal
PROGS += test-rrdp
.for p in ${PROGS}
REGRESS_TARGETS += run-regress-$p
.endfor
CFLAGS+= -I${.CURDIR}/.. -I${.CURDIR}/../../../../usr.sbin/rpki-client
LDADD+= -lcrypto -lutil
DPADD+= ${LIBCRYPTO} ${LIBUTIL}
SRCS_test-ip= test-ip.c ip.c io.c encoding.c print.c
run-regress-test-ip: test-ip
./test-ip
TALARGS += ta/AfriNIC.cer tal/afrinic.tal
TALARGS += ta/apnic-rpki-root-iana-origin.cer tal/apnic.tal
TALARGS += ta/ripe-ncc-ta.cer tal/ripe.tal
SRCS_test-cert+= test-cert.c cert.c cms.c x509.c ip.c as.c io.c \
log.c tal.c validate.c encoding.c print.c
run-regress-test-cert: test-cert
./test-cert -v ${.CURDIR}/../cer/*.cer
./test-cert -vt ${TALARGS:S,,${.CURDIR}/../&,}
SRCS_test-mft+= test-mft.c mft.c cms.c x509.c ip.c io.c log.c validate.c \
encoding.c print.c dummy.c
run-regress-test-mft: test-mft
./test-mft -v ${.CURDIR}/../mft/*.mft
SRCS_test-roa+= test-roa.c roa.c cms.c x509.c ip.c as.c io.c log.c \
encoding.c print.c
run-regress-test-roa: test-roa
./test-roa -v ${.CURDIR}/../roa/*.roa
SRCS_test-gbr+= test-gbr.c gbr.c cms.c x509.c ip.c io.c log.c \
encoding.c print.c
run-regress-test-gbr: test-gbr
./test-gbr -v ${.CURDIR}/../gbr/*.gbr
SRCS_test-tal+= test-tal.c tal.c ip.c io.c log.c validate.c \
encoding.c print.c dummy.c
run-regress-test-tal: test-tal
./test-tal -v ${.CURDIR}/../tal/*.tal
SRCS_test-rrdp+= test-rrdp.c rrdp_delta.c rrdp_notification.c \
rrdp_snapshot.c rrdp_util.c \
log.c encoding.c ip.c validate.c dummy.c
LDADD_test-rrdp+= -lexpat ${LDADD}
DPADD_test-rrdp+= ${LIBEXPAT} ${DPADD}
run-regress-test-rrdp: test-rrdp
./test-rrdp \
-n < ${.CURDIR}/../rrdp/notification.xml 2>&1 | tee rrdp-r1.out
cmp ${.CURDIR}/../rrdp/rrdp-r1.out rrdp-r1.out
./test-rrdp -S 8fe05c2e-047d-49e7-8398-cd4250a572b1 -N 50500 \
-n < ${.CURDIR}/../rrdp/notification.xml 2>&1 | tee rrdp-r2.out
cmp ${.CURDIR}/../rrdp/rrdp-r2.out rrdp-r2.out
./test-rrdp -S 9b3f7e31-4979-ef8c-d818-73e4dadc3e6b -N 13755 \
-H 27571e365a4c87b51a03731415ce2118cc268d686db3209ae752f01ba2d74bc5 \
-d < ${.CURDIR}/../rrdp/delta.xml 2>&1 | tee rrdp-r3.out
cmp ${.CURDIR}/../rrdp/rrdp-r3.out rrdp-r3.out
./test-rrdp -S 7e7d2563-5bbb-40b0-8723-6a2e90c85d9e -N 28483 \
-H 2a051bfd199150fe6bcdc777d09e70fe1acdf239fbf98ba378a793685e5adb21 \
-s < ${.CURDIR}/../rrdp/snapshot.xml 2>&1 | tee rrdp-r4.out
cmp ${.CURDIR}/../rrdp/rrdp-r4.out rrdp-r4.out
./test-rrdp \
-n < ${.CURDIR}/../rrdp/xxe.xml 2>&1 | tee rrdp-r5.out
cmp ${.CURDIR}/../rrdp/rrdp-r5.out rrdp-r5.out
./test-rrdp \
-n < ${.CURDIR}/../rrdp/billion_lol.xml 2>&1 | tee rrdp-r6.out
cmp ${.CURDIR}/../rrdp/rrdp-r6.out rrdp-r6.out
|