Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Jul 2017 05:28:32 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r320711 - in stable/11: bin/echo bin/echo/tests etc/mtree
Message-ID:  <201707060528.v665SWRR014519@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Thu Jul  6 05:28:32 2017
New Revision: 320711
URL: https://svnweb.freebsd.org/changeset/base/320711

Log:
  MFC r319626:
  
  Add basic tests for echo(1)
  
  Verify that echo(1) does not...
  - ... print the trailing newline character with option '-n'.
  - ... print the trailing newline character when '\c' is appended to
        the end of the string.

Added:
  stable/11/bin/echo/tests/
     - copied from r319626, head/bin/echo/tests/
Modified:
  stable/11/bin/echo/Makefile
  stable/11/etc/mtree/BSD.tests.dist
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/bin/echo/Makefile
==============================================================================
--- stable/11/bin/echo/Makefile	Thu Jul  6 05:26:27 2017	(r320710)
+++ stable/11/bin/echo/Makefile	Thu Jul  6 05:28:32 2017	(r320711)
@@ -1,7 +1,13 @@
 #	@(#)Makefile	8.1 (Berkeley) 5/31/93
 # $FreeBSD$
 
+.include <src.opts.mk>
+
 PACKAGE=runtime
 PROG=	echo
+
+.if ${MK_TESTS} != "no"
+SUBDIR+= 	tests
+.endif
 
 .include <bsd.prog.mk>

Modified: stable/11/etc/mtree/BSD.tests.dist
==============================================================================
--- stable/11/etc/mtree/BSD.tests.dist	Thu Jul  6 05:26:27 2017	(r320710)
+++ stable/11/etc/mtree/BSD.tests.dist	Thu Jul  6 05:28:32 2017	(r320711)
@@ -14,6 +14,8 @@
         ..
         dd
         ..
+        echo
+        ..
         expr
         ..
         ln



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201707060528.v665SWRR014519>