diff options
| author | millert <> | 2002-12-08 19:25:08 +0000 |
|---|---|---|
| committer | millert <> | 2002-12-08 19:25:08 +0000 |
| commit | d11eb7755cffa6a8796c5922ee06499acfcb120c (patch) | |
| tree | eebe590fc3b34b8f07c7a54b6a0805724911a1c7 /src/regress/lib/libc/getopt_long/Makefile | |
| parent | e2a937d6505165b947df5bec71c8a4f8c66156cc (diff) | |
| download | openbsd-d11eb7755cffa6a8796c5922ee06499acfcb120c.tar.gz openbsd-d11eb7755cffa6a8796c5922ee06499acfcb120c.tar.bz2 openbsd-d11eb7755cffa6a8796c5922ee06499acfcb120c.zip | |
Test option "-" (BSD extension)
Diffstat (limited to 'src/regress/lib/libc/getopt_long/Makefile')
| -rw-r--r-- | src/regress/lib/libc/getopt_long/Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/regress/lib/libc/getopt_long/Makefile b/src/regress/lib/libc/getopt_long/Makefile index 7729261079..13a187e190 100644 --- a/src/regress/lib/libc/getopt_long/Makefile +++ b/src/regress/lib/libc/getopt_long/Makefile | |||
| @@ -1,7 +1,8 @@ | |||
| 1 | # $OpenBSD: Makefile,v 1.3 2002/12/07 19:57:24 millert Exp $ | 1 | # $OpenBSD: Makefile,v 1.4 2002/12/08 19:25:08 millert Exp $ |
| 2 | 2 | ||
| 3 | NOMAN= | 3 | NOMAN= |
| 4 | PROG=getopt_long_test | 4 | PROG=getopt_long_test |
| 5 | CLEANFILES+=test.out | ||
| 5 | 6 | ||
| 6 | # test getopt_long and getopt_long_only | 7 | # test getopt_long and getopt_long_only |
| 7 | run-regress-${PROG}: ${PROG} | 8 | run-regress-${PROG}: ${PROG} |
| @@ -9,22 +10,22 @@ run-regress-${PROG}: ${PROG} | |||
| 9 | test -n "$$LONG_ONLY" && unset LONG_ONLY; \ | 10 | test -n "$$LONG_ONLY" && unset LONG_ONLY; \ |
| 10 | ./${PROG} myfile --force -f infile -9 ; \ | 11 | ./${PROG} myfile --force -f infile -9 ; \ |
| 11 | ./${PROG} onefile twofile --best -Williterate -i foo.in threefile ; \ | 12 | ./${PROG} onefile twofile --best -Williterate -i foo.in threefile ; \ |
| 12 | ./${PROG} -1bfast ; \ | 13 | ./${PROG} -1bfast - ; \ |
| 13 | ./${PROG} --fast --drinking=guiness -i foo.in somefile ; \ | 14 | ./${PROG} --fast --drinking=guiness -i foo.in somefile ; \ |
| 14 | export POSIXLY_CORRECT=1 ; \ | 15 | export POSIXLY_CORRECT=1 ; \ |
| 15 | ./${PROG} myfile --force -f infile -9 ; \ | 16 | ./${PROG} myfile --force -f infile -9 ; \ |
| 16 | ./${PROG} onefile twofile --best -Williterate -i foo.in threefile ; \ | 17 | ./${PROG} onefile twofile --best -Williterate -i foo.in threefile ; \ |
| 17 | ./${PROG} -1bfast ; \ | 18 | ./${PROG} -1bfast - ; \ |
| 18 | ./${PROG} --fast --drinking=guiness -i foo.in somefile ; \ | 19 | ./${PROG} --fast --drinking=guiness -i foo.in somefile ; \ |
| 19 | unset POSIXLY_CORRECT ; export LONG_ONLY=1 ; \ | 20 | unset POSIXLY_CORRECT ; export LONG_ONLY=1 ; \ |
| 20 | ./${PROG} myfile -force -f infile -9 ; \ | 21 | ./${PROG} myfile -force -f infile -9 ; \ |
| 21 | ./${PROG} onefile twofile -best -Williterate -i foo.in threefile ; \ | 22 | ./${PROG} onefile twofile -best -Williterate -i foo.in threefile ; \ |
| 22 | ./${PROG} -1bfast ; \ | 23 | ./${PROG} -1bfast - ; \ |
| 23 | ./${PROG} --fast -drinking=guiness -i foo.in somefile ; \ | 24 | ./${PROG} --fast -drinking=guiness -i foo.in somefile ; \ |
| 24 | export POSIXLY_CORRECT=1 ; \ | 25 | export POSIXLY_CORRECT=1 ; \ |
| 25 | ./${PROG} myfile -force -f infile -9 ; \ | 26 | ./${PROG} myfile -force -f infile -9 ; \ |
| 26 | ./${PROG} onefile twofile -best -Williterate -i foo.in threefile ; \ | 27 | ./${PROG} onefile twofile -best -Williterate -i foo.in threefile ; \ |
| 27 | ./${PROG} -1bfast ; \ | 28 | ./${PROG} -1bfast - ; \ |
| 28 | ./${PROG} --fast -drinking=guiness -i foo.in somefile ) >test.out 2>&1 | 29 | ./${PROG} --fast -drinking=guiness -i foo.in somefile ) >test.out 2>&1 |
| 29 | cmp -s ${.OBJDIR}/test.out ${.CURDIR}/test.ok | 30 | cmp -s ${.OBJDIR}/test.out ${.CURDIR}/test.ok |
| 30 | 31 | ||
