summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/getopt/Makefile
diff options
context:
space:
mode:
authorschwarze <>2020-03-23 03:01:21 +0000
committerschwarze <>2020-03-23 03:01:21 +0000
commited759aa6a877b98293e7fa74ea83ad183ea1157d (patch)
treed69c1a3c72fe892dcd93216b0b88609a95810c0a /src/regress/lib/libc/getopt/Makefile
parentafbeb5d666df4224373ad3c47cef95d0c68ed8d5 (diff)
downloadopenbsd-ed759aa6a877b98293e7fa74ea83ad183ea1157d.tar.gz
openbsd-ed759aa6a877b98293e7fa74ea83ad183ea1157d.tar.bz2
openbsd-ed759aa6a877b98293e7fa74ea83ad183ea1157d.zip
Add a test program for getopt(3) that is adequate for manual testing
and a compact test suite for getopt(3) intended automated regression testing, both written from scratch. The suite is intended to provide full coverage, except that it doesn't test manual changes of optind and optreset and except that it so far avoids the situation where we have a known bug.
Diffstat (limited to 'src/regress/lib/libc/getopt/Makefile')
-rw-r--r--src/regress/lib/libc/getopt/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/regress/lib/libc/getopt/Makefile b/src/regress/lib/libc/getopt/Makefile
new file mode 100644
index 0000000000..bdafc965fe
--- /dev/null
+++ b/src/regress/lib/libc/getopt/Makefile
@@ -0,0 +1,10 @@
1# $OpenBSD: Makefile,v 1.1 2020/03/23 03:01:21 schwarze Exp $
2
3REGRESS_TARGETS = getopt
4PROG = getopt-test
5MAN =
6
7getopt: ${PROG}
8 sh ${.CURDIR}/getopt.sh
9
10.include <bsd.regress.mk>