Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make/unit-tests make(1): add more tests for Cmd_Exec



details:   https://anonhg.NetBSD.org/src/rev/25241ca6f06d
branches:  trunk
changeset: 937125:25241ca6f06d
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Aug 09 09:32:04 2020 +0000

description:
make(1): add more tests for Cmd_Exec

diffstat:

 usr.bin/make/unit-tests/modmisc.mk |  14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 3d009f4af1a7 -r 25241ca6f06d usr.bin/make/unit-tests/modmisc.mk
--- a/usr.bin/make/unit-tests/modmisc.mk        Sun Aug 09 09:27:44 2020 +0000
+++ b/usr.bin/make/unit-tests/modmisc.mk        Sun Aug 09 09:32:04 2020 +0000
@@ -1,4 +1,4 @@
-# $Id: modmisc.mk,v 1.40 2020/08/09 09:17:19 rillig Exp $
+# $Id: modmisc.mk,v 1.41 2020/08/09 09:32:04 rillig Exp $
 #
 # miscellaneous modifier tests
 
@@ -414,4 +414,16 @@
 .warning unexpected
 .endif
 
+.if ${:!echo!} != ""
+.warning A newline at the end of the output must be stripped.
+.endif
+
+.if ${:!echo;echo!} != " "
+.warning Only a single newline at the end of the output is stripped.
+.endif
+
+.if ${:!echo;echo;echo;echo!} != "   "
+.warning Other newlines in the output are converted to spaces.
+.endif
+
 # end mod-shell



Home | Main Index | Thread Index | Old Index