1# $OpenBSD: Makefile,v 1.11 2020/01/26 00:54:47 claudio Exp $ 2 3REGRESS_TARGETS = network_statement md5 ovs mrt \ 4 maxprefix maxprefixout as0 5 6BGPD ?= /usr/sbin/bgpd 7 8CLEANFILES += *.mrt *.out *.conf *.log 9 10network_statement: 11 ${SUDO} ksh ${.CURDIR}/$@.sh ${BGPD} ${.CURDIR} 11 12 pair11 pair12 12 13md5: 14 ${SUDO} ksh ${.CURDIR}/$@.sh ${BGPD} ${.CURDIR} 11 12 pair11 pair12 15 16ovs: 17 ${SUDO} ksh ${.CURDIR}/$@.sh ${BGPD} ${.CURDIR} 11 12 pair11 pair12 18 19mrt: 20 ${SUDO} ksh ${.CURDIR}/$@.sh ${BGPD} ${.CURDIR} 11 21 22maxprefix: 23 ${SUDO} ksh ${.CURDIR}/$@.sh ${BGPD} ${.CURDIR} 11 12 pair11 pair12 24 25maxprefixout: 26 ${SUDO} ksh ${.CURDIR}/$@.sh ${BGPD} ${.CURDIR} 11 12 pair11 pair12 27 28.if ! exists(/usr/local/bin/exabgp) 29as0: 30 # install exabgp from ports for additional tests 31 @echo SKIPPED 32.else 33 34.SUFFIXES: .conf .in 35.in.conf: 36 sed 's|##BGPDCONFIGDIR##|${.CURDIR}|' ${.IMPSRC} > ${.TARGET} || \ 37 (rm ${.TARGET} && exit 1) 38 39AS0_CONFS = exabgp.as0.test1.conf \ 40 exabgp.as0.test2.conf exabgp.as0.test2_2.conf exabgp.as0.test2_3.conf 41 42as0: ${AS0_CONFS} 43 ${SUDO} ksh ${.CURDIR}/$@.sh ${BGPD} ${.CURDIR} 11 12 pair11 pair12 44.endif 45 46.include <bsd.regress.mk> 47