svn commit: r272781 - in head: etc/mtree usr.bin/dirname usr.bin/dirname/tests

Garrett Cooper ngie at FreeBSD.org
Thu Oct 9 00:55:06 UTC 2014


Author: ngie
Date: Thu Oct  9 00:55:04 2014
New Revision: 272781
URL: https://svnweb.freebsd.org/changeset/base/272781

Log:
  Integrate usr.bin/dirname/tests from NetBSD into atf/kyua
  
  In collaboration with: pho, sjg
  Sponsored by: EMC / Isilon Storage Division

Added:
  head/usr.bin/dirname/tests/
  head/usr.bin/dirname/tests/Makefile   (contents, props changed)
Modified:
  head/etc/mtree/BSD.tests.dist
  head/usr.bin/dirname/Makefile

Modified: head/etc/mtree/BSD.tests.dist
==============================================================================
--- head/etc/mtree/BSD.tests.dist	Thu Oct  9 00:50:33 2014	(r272780)
+++ head/etc/mtree/BSD.tests.dist	Thu Oct  9 00:55:04 2014	(r272781)
@@ -249,6 +249,8 @@
             ..
             comm
             ..
+            dirname
+            ..
             file2c
             ..
             join

Modified: head/usr.bin/dirname/Makefile
==============================================================================
--- head/usr.bin/dirname/Makefile	Thu Oct  9 00:50:33 2014	(r272780)
+++ head/usr.bin/dirname/Makefile	Thu Oct  9 00:55:04 2014	(r272781)
@@ -1,7 +1,13 @@
 #	From: @(#)Makefile	8.1 (Berkeley) 6/6/93
 # $FreeBSD$
 
+.include <src.opts.mk>
+
 PROG=	dirname
 MAN=
 
+.if ${MK_TESTS} != "no"
+SUBDIR+=	tests
+.endif
+
 .include <bsd.prog.mk>

Added: head/usr.bin/dirname/tests/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/usr.bin/dirname/tests/Makefile	Thu Oct  9 00:55:04 2014	(r272781)
@@ -0,0 +1,12 @@
+# $FreeBSD$
+
+TESTSRC=	${.CURDIR}/../../../contrib/netbsd-tests/usr.bin/dirname
+.PATH: ${TESTSRC}
+
+.include <bsd.own.mk>
+
+TESTSDIR=	${TESTSBASE}/usr.bin/dirname
+ATF_TESTS_SH=	dirname_test
+ATF_TESTS_SH_SRC_dirname_test=	t_dirname.sh
+
+.include <bsd.test.mk>


More information about the svn-src-head mailing list