summaryrefslogtreecommitdiffstats
path: root/usr.bin/cut
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2014-10-09 01:46:31 +0000
committerngie <ngie@FreeBSD.org>2014-10-09 01:46:31 +0000
commit429a4fc8f23942aadf2231e6c2d2e26eebe1b135 (patch)
tree1a2627013b2b479315ebf5ed809f27839b828717 /usr.bin/cut
parentd99fd4f0d70e31d83d6f2e000c265c3ddae1eb82 (diff)
downloadFreeBSD-src-429a4fc8f23942aadf2231e6c2d2e26eebe1b135.zip
FreeBSD-src-429a4fc8f23942aadf2231e6c2d2e26eebe1b135.tar.gz
Integrate usr.bin/cut/tests from NetBSD into atf/kyua
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'usr.bin/cut')
-rw-r--r--usr.bin/cut/Makefile6
-rw-r--r--usr.bin/cut/tests/Makefile21
2 files changed, 27 insertions, 0 deletions
diff --git a/usr.bin/cut/Makefile b/usr.bin/cut/Makefile
index 5be029a..21c1a1c 100644
--- a/usr.bin/cut/Makefile
+++ b/usr.bin/cut/Makefile
@@ -1,6 +1,12 @@
# From: @(#)Makefile 8.1 (Berkeley) 6/6/93
# $FreeBSD$
+.include <src.opts.mk>
+
PROG= cut
+.if ${MK_TESTS} != "no"
+SUBDIR+= tests
+.endif
+
.include <bsd.prog.mk>
diff --git a/usr.bin/cut/tests/Makefile b/usr.bin/cut/tests/Makefile
new file mode 100644
index 0000000..b324a78
--- /dev/null
+++ b/usr.bin/cut/tests/Makefile
@@ -0,0 +1,21 @@
+# $FreeBSD$
+
+TESTSRC= ${.CURDIR}/../../../contrib/netbsd-tests/usr.bin/cut
+.PATH: ${TESTSRC}
+
+.include <bsd.own.mk>
+
+TESTSDIR= ${TESTSBASE}/usr.bin/cut
+ATF_TESTS_SH= cut_test
+ATF_TESTS_SH_SRC_cut_test= t_cut.sh
+
+FILESDIR= ${TESTSDIR}
+FILES= d_basic.out
+FILES+= d_cut.in
+FILES+= d_dflag.out
+FILES+= d_dsflag.out
+FILES+= d_latin1.in
+FILES+= d_sflag.out
+FILES+= d_utf8.in
+
+.include <bsd.test.mk>
OpenPOWER on IntegriCloud