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 test for suppressing th...



details:   https://anonhg.NetBSD.org/src/rev/87cd90ef7f7b
branches:  trunk
changeset: 937592:87cd90ef7f7b
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Aug 22 09:16:08 2020 +0000

description:
make(1): add test for suppressing the output of the command using @

diffstat:

 usr.bin/make/unit-tests/sh-leading-at.exp |  4 ++++
 usr.bin/make/unit-tests/sh-leading-at.mk  |  9 +++++----
 2 files changed, 9 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r c80ff7d41182 -r 87cd90ef7f7b usr.bin/make/unit-tests/sh-leading-at.exp
--- a/usr.bin/make/unit-tests/sh-leading-at.exp Sat Aug 22 09:08:21 2020 +0000
+++ b/usr.bin/make/unit-tests/sh-leading-at.exp Sat Aug 22 09:16:08 2020 +0000
@@ -1,1 +1,5 @@
+ok
+space after @
+echo 'echoed'
+echoed
 exit status 0
diff -r c80ff7d41182 -r 87cd90ef7f7b usr.bin/make/unit-tests/sh-leading-at.mk
--- a/usr.bin/make/unit-tests/sh-leading-at.mk  Sat Aug 22 09:08:21 2020 +0000
+++ b/usr.bin/make/unit-tests/sh-leading-at.mk  Sat Aug 22 09:16:08 2020 +0000
@@ -1,9 +1,10 @@
-# $NetBSD: sh-leading-at.mk,v 1.2 2020/08/16 14:25:16 rillig Exp $
+# $NetBSD: sh-leading-at.mk,v 1.3 2020/08/22 09:16:08 rillig Exp $
 #
 # Tests for shell commands preceded by an '@', to suppress printing
 # the command to stdout.
 
-# TODO: Implementation
-
 all:
-       @:;
+       @
+       @echo 'ok'
+       @ echo 'space after @'
+       echo 'echoed'



Home | Main Index | Thread Index | Old Index