diff options
| author | millert <> | 2002-12-05 21:42:17 +0000 |
|---|---|---|
| committer | millert <> | 2002-12-05 21:42:17 +0000 |
| commit | 33cc42bb698271fab5f0273c3b9acc3a530efb59 (patch) | |
| tree | bc3cf3876859499512cf37e6beb5fa254e9939f9 /src/regress/lib/libc/getopt_long/Makefile | |
| parent | 2e23f44ecc2454409cc9334d4501be2d9ee88dd4 (diff) | |
| download | openbsd-33cc42bb698271fab5f0273c3b9acc3a530efb59.tar.gz openbsd-33cc42bb698271fab5f0273c3b9acc3a530efb59.tar.bz2 openbsd-33cc42bb698271fab5f0273c3b9acc3a530efb59.zip | |
simple regress for getopt_long() and getopt_long_only()
Diffstat (limited to 'src/regress/lib/libc/getopt_long/Makefile')
| -rw-r--r-- | src/regress/lib/libc/getopt_long/Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/regress/lib/libc/getopt_long/Makefile b/src/regress/lib/libc/getopt_long/Makefile new file mode 100644 index 0000000000..5237d82dd2 --- /dev/null +++ b/src/regress/lib/libc/getopt_long/Makefile | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.1 2002/12/05 21:42:17 millert Exp $ | ||
| 2 | |||
| 3 | NOMAN= | ||
| 4 | PROG=getopt_long_test | ||
| 5 | |||
| 6 | # test getopt_long and getopt_long_only | ||
| 7 | run-regress-${PROG}: ${PROG} | ||
| 8 | @( test -n "$$POSIXLY_CORRECT" && unset POSIXLY_CORRECT; \ | ||
| 9 | test -n "$$LONG_ONLY" && unset LONG_ONLY; \ | ||
| 10 | ./${PROG} myfile --force -f infile -9 ; \ | ||
| 11 | ./${PROG} onefile twofile --best --illiterate -i foo.in threefile ; \ | ||
| 12 | ./${PROG} --fast --drinking guiness -i foo.in somefile ; \ | ||
| 13 | export POSIXLY_CORRECT=1 ; \ | ||
| 14 | ./${PROG} myfile --force -f infile -9 ; \ | ||
| 15 | ./${PROG} onefile twofile --best --illiterate -i foo.in threefile ; \ | ||
| 16 | ./${PROG} --fast --drinking guiness -i foo.in somefile ; \ | ||
| 17 | unset POSIXLY_CORRECT ; export LONG_ONLY=1 ; \ | ||
| 18 | ./${PROG} myfile -force -f infile -9 ; \ | ||
| 19 | ./${PROG} onefile twofile --best -illiterate -i foo.in threefile ; \ | ||
| 20 | ./${PROG} --fast -drinking guiness -i foo.in somefile ; \ | ||
| 21 | export POSIXLY_CORRECT=1 ; \ | ||
| 22 | ./${PROG} myfile -force -f infile -9 ; \ | ||
| 23 | ./${PROG} onefile twofile --best -illiterate -i foo.in threefile ; \ | ||
| 24 | ./${PROG} --fast -drinking guiness -i foo.in somefile ) >test.out 2>&1 | ||
| 25 | cmp -s ${.OBJDIR}/test.out ${.CURDIR}/test.ok | ||
| 26 | |||
| 27 | .include <bsd.regress.mk> | ||
