aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/awk
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2018-01-11 05:36:13 +0000
committerKyle Evans <kevans@FreeBSD.org>2018-01-11 05:36:13 +0000
commitde45c289b95bfb480e07cd1be6bd599fefb58a56 (patch)
tree34c09303624406ed37deda73ab5b458d14805a57 /usr.bin/awk
parent045f8bc8e4b096d8828d120d4e4a8f3bd39b9b73 (diff)
downloadsrc-de45c289b95bfb480e07cd1be6bd599fefb58a56.tar.gz
src-de45c289b95bfb480e07cd1be6bd599fefb58a56.zip
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.
Notes
Notes: svn path=/head/; revision=327806
Diffstat (limited to 'usr.bin/awk')
-rw-r--r--usr.bin/awk/Makefile6
-rw-r--r--usr.bin/awk/tests/Makefile33
2 files changed, 39 insertions, 0 deletions
diff --git a/usr.bin/awk/Makefile b/usr.bin/awk/Makefile
index b246713645d7..02202fb4fd47 100644
--- a/usr.bin/awk/Makefile
+++ b/usr.bin/awk/Makefile
@@ -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>
diff --git a/usr.bin/awk/tests/Makefile b/usr.bin/awk/tests/Makefile
new file mode 100644
index 000000000000..79a0bc14de80
--- /dev/null
+++ b/usr.bin/awk/tests/Makefile
@@ -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>