summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/bgpd/integrationtests/Makefile
blob: 09f58e5741f7727a335698aabaf0eda9a04fa565 (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
# $OpenBSD: Makefile,v 1.8 2019/08/07 07:57:48 claudio Exp $

REGRESS_TARGETS	= 	network_statement md5 ovs mrt as0

BGPD ?=			/usr/sbin/bgpd

CLEANFILES +=		*.mrt *.out *.conf *.log

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

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

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

.SUFFIXES: .conf .in
.in.conf:
	sed 's|##BGPDCONFIGDIR##|${.CURDIR}|' ${.IMPSRC} > ${.TARGET} || \
	(rm ${.TARGET} && exit 1)

AS0_CONFS = 	exabgp.as0.test1.conf \
	exabgp.as0.test2.conf exabgp.as0.test2_2.conf exabgp.as0.test2_3.conf

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

.include <bsd.regress.mk>