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