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