summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2015-12-15 18:09:03 +0000
committerEnji Cooper <ngie@FreeBSD.org>2015-12-15 18:09:03 +0000
commit80a7c67a67879244cd25d2f7e1a69a6770d5baad (patch)
treebf15272b74aa0c3921426a2f0ff5e36e60e1ab3c /bin
parent965b0ce7c5b9d82a3cc259b4c04b536c3a098058 (diff)
Notes
Diffstat (limited to 'bin')
-rw-r--r--bin/cat/Makefile6
-rw-r--r--bin/cat/tests/Makefile18
2 files changed, 24 insertions, 0 deletions
diff --git a/bin/cat/Makefile b/bin/cat/Makefile
index 672a4eeeeff5..3d6a7f0bcd65 100644
--- a/bin/cat/Makefile
+++ b/bin/cat/Makefile
@@ -1,6 +1,12 @@
# @(#)Makefile 8.1 (Berkeley) 5/31/93
# $FreeBSD$
+.include <bsd.own.mk>
+
PROG= cat
+.if ${MK_TESTS} != "no"
+SUBDIR+= tests
+.endif
+
.include <bsd.prog.mk>
diff --git a/bin/cat/tests/Makefile b/bin/cat/tests/Makefile
new file mode 100644
index 000000000000..73f82e125d6f
--- /dev/null
+++ b/bin/cat/tests/Makefile
@@ -0,0 +1,18 @@
+# $FreeBSD$
+
+OBJTOP= ${.OBJDIR}/../../..
+SRCTOP= ${.CURDIR}/../../..
+TESTSRC= ${SRCTOP}/contrib/netbsd-tests/bin/cat
+
+TESTSDIR= ${TESTSBASE}/bin/cat
+
+NETBSD_ATF_TESTS_SH= cat_test
+
+FILESDIR= ${TESTSDIR}
+
+FILES= d_align.in
+FILES+= d_align.out
+
+.include <netbsd-tests.test.mk>
+
+.include <bsd.test.mk>