summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/bgpd/integrationtests/Makefile
blob: c7489f9cf86d19c9400c1b7df59a448164cc3ebd (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
# $OpenBSD: Makefile,v 1.18 2022/10/31 18:34:11 claudio Exp $

REGRESS_TARGETS	= 	network_statement md5 ovs mrt pftable \
			maxprefix maxprefixout maxcomm \
			as0 med eval_all policy

BGPD ?=			/usr/sbin/bgpd

CLEANFILES +=		*.mrt *.out exabgp.*.conf *.log *.fifo \
			api-exabgp api-exabgp.d

api-exabgp: api-exabgp.c

network_statement:
	${SUDO} ksh ${.CURDIR}/$@.sh ${BGPD} ${.CURDIR} 11 12 pair11 pair12

md5:
	${SUDO} ksh ${.CURDIR}/$@.sh ${BGPD} ${.CURDIR} 11 12 pair11 pair12

ovs:
	${SUDO} ksh ${.CURDIR}/$@.sh ${BGPD} ${.CURDIR} 11 12 pair11 pair12

policy:
	${SUDO} ksh ${.CURDIR}/$@.sh ${BGPD} ${.CURDIR} 11 12 pair11 pair12

pftable:
	${SUDO} ksh ${.CURDIR}/$@.sh ${BGPD} ${.CURDIR} 11 12 pair11 pair12

mrt:
	${SUDO} ksh ${.CURDIR}/$@.sh ${BGPD} ${.CURDIR} 11

maxprefix:
	${SUDO} ksh ${.CURDIR}/$@.sh ${BGPD} ${.CURDIR} 11 12 pair11 pair12

maxprefixout:
	${SUDO} ksh ${.CURDIR}/$@.sh ${BGPD} ${.CURDIR} 11 12 pair11 pair12

maxcomm:
	${SUDO} ksh ${.CURDIR}/$@.sh ${BGPD} ${.CURDIR} 11 12 pair11 pair12

.if ! exists(/usr/local/bin/exabgp)
as0:
	# install exabgp from ports for additional tests
	@echo SKIPPED

med:
	# install exabgp from ports for additional tests
	@echo SKIPPED

eval_all:
	# install exabgp from ports for additional tests
	@echo SKIPPED
.else

.SUFFIXES: .conf .in
.in.conf:
	sed -e 's|##OBJDIR##|${.OBJDIR}|g' \
	    ${.IMPSRC} > ${.TARGET} || \
	(rm ${.TARGET} && exit 1)

as0: api-exabgp exabgp.as0.test1.conf exabgp.as0.test2.conf
	${SUDO} ksh ${.CURDIR}/$@.sh ${BGPD} ${.CURDIR} 11 12 pair11 pair12

med: api-exabgp exabgp.med.conf
	${SUDO} ksh ${.CURDIR}/$@.sh ${BGPD} ${.CURDIR} 11 12 pair11 pair12

eval_all: api-exabgp exabgp.eval_all.conf
	${SUDO} ksh ${.CURDIR}/$@.sh ${BGPD} ${.CURDIR} 11 12 pair11 pair12

.endif

.include <bsd.regress.mk>