svn commit: r320711 - in stable/11: bin/echo bin/echo/tests etc/mtree

Ngie Cooper ngie at FreeBSD.org
Thu Jul 6 05:28:33 UTC 2017


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


More information about the svn-src-stable-11 mailing list