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/9d99abd9430c
branches: trunk
changeset: 942912:9d99abd9430c
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 f13e5452dd1a -r 9d99abd9430c 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 f13e5452dd1a -r 9d99abd9430c 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