1# $OpenBSD: Makefile,v 1.14 2021/04/13 07:39:17 claudio Exp $
2
3REGRESS_TARGETS	= 	network_statement md5 ovs mrt \
4			maxprefix maxprefixout as0 med \
5			eval_all
6
7BGPD ?=			/usr/sbin/bgpd
8
9CLEANFILES +=		*.mrt *.out *.conf *.log *.fifo api-exabgp*
10
11api-exabgp: api-exabgp.c
12
13network_statement:
14	${SUDO} ksh ${.CURDIR}/$@.sh ${BGPD} ${.CURDIR} 11 12 pair11 pair12
15
16md5:
17	${SUDO} ksh ${.CURDIR}/$@.sh ${BGPD} ${.CURDIR} 11 12 pair11 pair12
18
19ovs:
20	${SUDO} ksh ${.CURDIR}/$@.sh ${BGPD} ${.CURDIR} 11 12 pair11 pair12
21
22mrt:
23	${SUDO} ksh ${.CURDIR}/$@.sh ${BGPD} ${.CURDIR} 11
24
25maxprefix:
26	${SUDO} ksh ${.CURDIR}/$@.sh ${BGPD} ${.CURDIR} 11 12 pair11 pair12
27
28maxprefixout:
29	${SUDO} ksh ${.CURDIR}/$@.sh ${BGPD} ${.CURDIR} 11 12 pair11 pair12
30
31.if ! exists(/usr/local/bin/exabgp)
32as0:
33	# install exabgp from ports for additional tests
34	@echo SKIPPED
35
36med:
37	# install exabgp from ports for additional tests
38	@echo SKIPPED
39.else
40
41.SUFFIXES: .conf .in
42.in.conf:
43	sed -e 's|##OBJDIR##|${.OBJDIR}|g' \
44	    ${.IMPSRC} > ${.TARGET} || \
45	(rm ${.TARGET} && exit 1)
46
47as0: api-exabgp exabgp.as0.test1.conf exabgp.as0.test2.conf
48	${SUDO} ksh ${.CURDIR}/$@.sh ${BGPD} ${.CURDIR} 11 12 pair11 pair12
49
50med: api-exabgp exabgp.med.conf
51	${SUDO} ksh ${.CURDIR}/$@.sh ${BGPD} ${.CURDIR} 11 12 pair11 pair12
52
53eval_all: api-exabgp exabgp.eval_all.conf
54	${SUDO} ksh ${.CURDIR}/$@.sh ${BGPD} ${.CURDIR} 11 12 pair11 pair12
55
56.endif
57
58.include <bsd.regress.mk>
59