summaryrefslogtreecommitdiff
path: root/regress/sbin/ipsecctl/Makefile
blob: f5f5294fd1eddfab6549b0d325277514a07df41d (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
# $OpenBSD: Makefile,v 1.1 2005/08/05 09:18:26 hshoexer Exp $

# TARGETS
# ipsec: feed ipsecNN.in through ipsecctl and check wether the output matches
# 	 ipsecNN.ok
# tcpmd5: same as above, but for tcpmd5 rules

IPSECTESTS=1 2 3 4 5 6 7 8 9 10 11 12
TCPMD5TESTS=1 2

SHELL=/bin/sh

.MAIN: all

.for n in ${IPSECTESTS}
IPSEC_TARGETS+=ipsec${n}

ipsec${n}:
	ipsecctl -nv -f - < ${.CURDIR}/ipsec${n}.in | \
	    diff -u ${.CURDIR}/ipsec${n}.ok /dev/stdin

.endfor

.for n in ${TCPMD5TESTS}
TCPMD5_TARGETS+=tcpmd5${n}

tcpmd5${n}:
	ipsecctl -nv -f - < ${.CURDIR}/tcpmd5${n}.in | \
	    diff -u ${.CURDIR}/tcpmd5${n}.ok /dev/stdin
.endfor

ipsec:		${IPSEC_TARGETS}
REGRESS_TARGETS+=ipsec

tcpmd5:		${TCPMD5_TARGETS}
REGRESS_TARGETS+=tcpmd5

alltests: ${REGRESS_TARGETS}

.PHONY: ${REGRESS_TARGETS}

.include <bsd.regress.mk>