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): refine test for printing co...



details:   https://anonhg.NetBSD.org/src/rev/5c13c651b312
branches:  trunk
changeset: 955539:5c13c651b312
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Oct 03 15:21:12 2020 +0000

description:
make(1): refine test for printing commands using csh

diffstat:

 usr.bin/make/unit-tests/shell-csh.exp |  10 +++++++---
 usr.bin/make/unit-tests/shell-csh.mk  |  19 ++++++++++++-------
 2 files changed, 19 insertions(+), 10 deletions(-)

diffs (44 lines):

diff -r f062716a1964 -r 5c13c651b312 usr.bin/make/unit-tests/shell-csh.exp
--- a/usr.bin/make/unit-tests/shell-csh.exp     Sat Oct 03 15:00:57 2020 +0000
+++ b/usr.bin/make/unit-tests/shell-csh.exp     Sat Oct 03 15:21:12 2020 +0000
@@ -1,4 +1,8 @@
-true normal
-true always
-true ignore errors
+echo normal
+normal
+hidden
+echo always
+always
+echo ignore errors
+ignore errors
 exit status 0
diff -r f062716a1964 -r 5c13c651b312 usr.bin/make/unit-tests/shell-csh.mk
--- a/usr.bin/make/unit-tests/shell-csh.mk      Sat Oct 03 15:00:57 2020 +0000
+++ b/usr.bin/make/unit-tests/shell-csh.mk      Sat Oct 03 15:21:12 2020 +0000
@@ -1,13 +1,18 @@
-# $NetBSD: shell-csh.mk,v 1.1 2020/10/03 14:39:36 rillig Exp $
+# $NetBSD: shell-csh.mk,v 1.2 2020/10/03 15:21:12 rillig Exp $
 #
 # Tests for using a C shell for running the commands.
 
 .SHELL: name="csh" path="csh"
 
-# Contrary to sh and ksh, the csh does not know the ':' command.
-# Therefore this test uses 'true' instead.
 all:
-       true normal
-       @true hidden
-       +true always
-       -true ignore errors
+       # This command is both printed and executed.
+       echo normal
+
+       # This command is only executed.
+       @echo hidden
+
+       # This command is both printed and executed.
+       +echo always
+
+       # This command is both printed and executed.
+       -echo ignore errors



Home | Main Index | Thread Index | Old Index