1#	$OpenBSD: Makefile,v 1.4 2002/12/08 19:25:08 millert Exp $
2
3NOMAN=
4PROG=getopt_long_test
5CLEANFILES+=test.out
6
7# test getopt_long and getopt_long_only
8run-regress-${PROG}: ${PROG}
9	@( test -n "$$POSIXLY_CORRECT" && unset POSIXLY_CORRECT; \
10	  test -n "$$LONG_ONLY" && unset LONG_ONLY; \
11	  ./${PROG} myfile --force -f infile -9 ; \
12	  ./${PROG} onefile twofile --best -Williterate -i foo.in threefile ; \
13	  ./${PROG} -1bfast - ; \
14	  ./${PROG} --fast --drinking=guiness -i foo.in somefile ; \
15	  export POSIXLY_CORRECT=1 ; \
16	  ./${PROG} myfile --force -f infile -9 ; \
17	  ./${PROG} onefile twofile --best -Williterate -i foo.in threefile ; \
18	  ./${PROG} -1bfast - ; \
19	  ./${PROG} --fast --drinking=guiness -i foo.in somefile ; \
20	  unset POSIXLY_CORRECT ; export LONG_ONLY=1 ; \
21	  ./${PROG} myfile -force -f infile -9 ; \
22	  ./${PROG} onefile twofile -best -Williterate -i foo.in threefile ; \
23	  ./${PROG} -1bfast - ; \
24	  ./${PROG} --fast -drinking=guiness -i foo.in somefile ; \
25	  export POSIXLY_CORRECT=1 ; \
26	  ./${PROG} myfile -force -f infile -9 ; \
27	  ./${PROG} onefile twofile -best -Williterate -i foo.in threefile ; \
28	  ./${PROG} -1bfast - ; \
29	  ./${PROG} --fast -drinking=guiness -i foo.in somefile ) >test.out 2>&1
30	cmp -s ${.OBJDIR}/test.out ${.CURDIR}/test.ok
31
32.include <bsd.regress.mk>
33