xref: /freebsd/tools/regression/geom/ConfCmp/Makefile (revision a03411e84728e9b267056fd31c7d1d9d1dc1b01e)
1
2PROG=	ConfCmp
3SRCS+=	ConfCmp.c
4SRCS+=	subr_sbuf.c
5
6.PATH:	../../../../sys/kern
7
8NO_OBJ=
9WARNS?=	5
10CFLAGS+=	 -g -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -static
11# Uncomment for ElectricFence
12#LDADD += -lefence -L/usr/local/lib
13
14LIBADD= bsdxml
15
16MAN=
17CLEANFILES	+= _*
18
19.include <bsd.prog.mk>
20
21test:	${PROG}
22	rm -f _* *.core
23	./${PROG} a1.conf a1.conf
24	./${PROG} a1.conf a1a.conf
25	if ./${PROG} a1.conf a1b.conf > /dev/null 2>&1 ; then exit 1 ; fi
26	if ./${PROG} a1.conf a1c.conf > /dev/null 2>&1 ; then exit 1 ; fi
27	if ./${PROG} a1.conf a1d.conf > /dev/null 2>&1 ; then exit 1 ; fi
28	./${PROG} a2.conf a2.conf
29	./${PROG} a2.conf a2a.conf
30	if ./${PROG} a2.conf a2b.conf > /dev/null 2>&1 ; then exit 1 ; fi
31	if ./${PROG} a2.conf a2c.conf > /dev/null 2>&1 ; then exit 1 ; fi
32	if ./${PROG} a2.conf a2d.conf > /dev/null 2>&1 ; then exit 1 ; fi
33
34