awk(1): Add necessary bits for connecting tests, but leave disconnected

The NetBSD test suite has 24 tests for awk, and we pass exactly 4 of them.
Add the necessary pieces for interested parties to easily connect the
tests and run them, but leave them disconnected for the time being.

Some of these tests outright segfault in our awk, others just exhibit the
wrong behavior.
This commit is contained in:
Kyle Evans 2018-01-11 05:36:13 +00:00
parent 045f8bc8e4
commit de45c289b9
3 changed files with 41 additions and 0 deletions

View File

@ -536,6 +536,8 @@
usr.bin
apply
..
awk
..
basename
..
bmake

View File

@ -1,5 +1,7 @@
# $FreeBSD$
.include <src.opts.mk>
AWKSRC= ${SRCTOP}/contrib/one-true-awk
.PATH: ${AWKSRC}
@ -28,4 +30,8 @@ proctab.c: maketab
build-tools: maketab
maketab: ytab.h maketab.c ${BUILD_TOOLS_META}
# awk needs some work before we can connect these tests to the build
#HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>

View File

@ -0,0 +1,33 @@
# $FreeBSD$
PACKAGE= tests
NETBSD_ATF_TESTS_SH= awk_test
${PACKAGE}FILES+= d_assign_NF.awk
${PACKAGE}FILES+= d_assign_NF.in
${PACKAGE}FILES+= d_assign_NF.out
${PACKAGE}FILES+= d_big_regexp.awk
${PACKAGE}FILES+= d_big_regexp.in
${PACKAGE}FILES+= d_big_regexp.out
${PACKAGE}FILES+= d_end1.awk
${PACKAGE}FILES+= d_end1.in
${PACKAGE}FILES+= d_end1.out
${PACKAGE}FILES+= d_end2.awk
${PACKAGE}FILES+= d_end2.in
${PACKAGE}FILES+= d_end2.out
${PACKAGE}FILES+= d_period.awk
${PACKAGE}FILES+= d_period.in
${PACKAGE}FILES+= d_period.out
${PACKAGE}FILES+= d_string1.awk
${PACKAGE}FILES+= d_string1.out
${PACKAGE}FILES+= d_tolower.awk
${PACKAGE}FILES+= d_tolower.in
${PACKAGE}FILES+= d_tolower.out
${PACKAGE}FILES+= d_toupper.awk
${PACKAGE}FILES+= d_toupper.in
${PACKAGE}FILES+= d_toupper.out
.include <netbsd-tests.test.mk>
.include <bsd.test.mk>