From 0be0d5f339ec4f82b38843515d74881f0beeccec Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Thu, 9 Oct 2014 00:41:42 +0000 Subject: [PATCH] Integrate usr.sbin/basename/tests from NetBSD into atf/kyua In collaboration with: pho Sponsored by: EMC / Isilon Storage Division --- etc/mtree/BSD.tests.dist | 2 ++ usr.bin/basename/Makefile | 6 ++++++ usr.bin/basename/tests/Makefile | 12 ++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 usr.bin/basename/tests/Makefile diff --git a/etc/mtree/BSD.tests.dist b/etc/mtree/BSD.tests.dist index bf3484de340a..0042e9c7302b 100644 --- a/etc/mtree/BSD.tests.dist +++ b/etc/mtree/BSD.tests.dist @@ -143,6 +143,8 @@ usr.bin apply .. + basename + .. bmake archives fmt_44bsd diff --git a/usr.bin/basename/Makefile b/usr.bin/basename/Makefile index d647395c83d9..b392c3f378df 100644 --- a/usr.bin/basename/Makefile +++ b/usr.bin/basename/Makefile @@ -1,7 +1,13 @@ # From: @(#)Makefile 8.1 (Berkeley) 6/6/93 # $FreeBSD$ +.include + PROG= basename MLINKS= basename.1 dirname.1 +.if ${MK_TESTS} != "no" +SUBDIR+= tests +.endif + .include diff --git a/usr.bin/basename/tests/Makefile b/usr.bin/basename/tests/Makefile new file mode 100644 index 000000000000..32dedabc5f4d --- /dev/null +++ b/usr.bin/basename/tests/Makefile @@ -0,0 +1,12 @@ +# $FreeBSD$ + +TESTSRC= ${.CURDIR}/../../../contrib/netbsd-tests/usr.bin/basename +.PATH: ${TESTSRC} + +.include + +TESTSDIR= ${TESTSBASE}/usr.bin/basename +ATF_TESTS_SH= basename_test +ATF_TESTS_SH_SRC_basename_test= t_basename.sh + +.include