aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/awk
diff options
context:
space:
mode:
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>