xref: /openbsd/regress/usr.sbin/bgpd/config/Makefile (revision d89ec533)
1# $OpenBSD: Makefile,v 1.11 2020/04/24 10:34:54 claudio Exp $
2
3BGPDTESTS=1 2 3 4 5 6 7 8 9 10 11 12 13
4
5.for n in ${BGPDTESTS}
6BGPD_TARGETS+=bgpd${n}
7BGPD_UPDATES+=bgpd${n}-update
8
9bgpd${n}:
10	bgpd -nv -f /dev/stdin < ${.CURDIR}/bgpd.conf.${n}.in | \
11	    sed 's/router-id .*/router-id 127.0.0.1/' | \
12	    diff -u ${.CURDIR}/bgpd.conf.${n}.ok /dev/stdin
13
14bgpd${n}-update:
15	bgpd -nv -f /dev/stdin < ${.CURDIR}/bgpd.conf.${n}.in | \
16	    sed 's/router-id .*/router-id 127.0.0.1/' > \
17	    ${.CURDIR}/bgpd.conf.${n}.ok
18.endfor
19
20REGRESS_TARGETS = bgpd-example bgpd-printconf ${BGPD_TARGETS}
21
22bgpd-update: ${BGPD_UPDATES}
23
24# check that the example configuration file we ship is ok
25bgpd-example:
26	bgpd -nf ${.CURDIR}/../../../../etc/examples/bgpd.conf
27
28# check that the output of bgpd -nvv is parseable
29bgpd-printconf:
30	bgpd -nvf ${.CURDIR}/bgpd.conf.printconf | \
31	    bgpd -nf /dev/stdin
32
33.include <bsd.regress.mk>
34