From 48e0fbc3f95f23f5b9f1db9537ae357436ce3590 Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Thu, 9 Oct 2014 01:46:31 +0000 Subject: [PATCH] Integrate usr.bin/cut/tests from NetBSD into atf/kyua Sponsored by: EMC / Isilon Storage Division --- etc/mtree/BSD.tests.dist | 2 ++ usr.bin/cut/Makefile | 6 ++++++ usr.bin/cut/tests/Makefile | 21 +++++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 usr.bin/cut/tests/Makefile diff --git a/etc/mtree/BSD.tests.dist b/etc/mtree/BSD.tests.dist index e91af3d325be..6932551fd7ba 100644 --- a/etc/mtree/BSD.tests.dist +++ b/etc/mtree/BSD.tests.dist @@ -251,6 +251,8 @@ .. comm .. + cut + .. dirname .. file2c diff --git a/usr.bin/cut/Makefile b/usr.bin/cut/Makefile index 5be029a3d9d1..21c1a1c6354f 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 + PROG= cut +.if ${MK_TESTS} != "no" +SUBDIR+= tests +.endif + .include diff --git a/usr.bin/cut/tests/Makefile b/usr.bin/cut/tests/Makefile new file mode 100644 index 000000000000..b324a7804196 --- /dev/null +++ b/usr.bin/cut/tests/Makefile @@ -0,0 +1,21 @@ +# $FreeBSD$ + +TESTSRC= ${.CURDIR}/../../../contrib/netbsd-tests/usr.bin/cut +.PATH: ${TESTSRC} + +.include + +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