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 .SILENT
details: https://anonhg.NetBSD.org/src/rev/7107aceeb1cf
branches: trunk
changeset: 975992:7107aceeb1cf
user: rillig <rillig%NetBSD.org@localhost>
date: Thu Sep 10 21:40:50 2020 +0000
description:
make(1): add test for .SILENT
diffstat:
usr.bin/make/unit-tests/deptgt-silent.exp | 2 ++
usr.bin/make/unit-tests/deptgt-silent.mk | 8 +++++---
2 files changed, 7 insertions(+), 3 deletions(-)
diffs (24 lines):
diff -r 3fbe9a5eca7c -r 7107aceeb1cf usr.bin/make/unit-tests/deptgt-silent.exp
--- a/usr.bin/make/unit-tests/deptgt-silent.exp Thu Sep 10 21:22:07 2020 +0000
+++ b/usr.bin/make/unit-tests/deptgt-silent.exp Thu Sep 10 21:40:50 2020 +0000
@@ -1,1 +1,3 @@
+This is not echoed because of the @.
+This is not echoed because of the .SILENT.
exit status 0
diff -r 3fbe9a5eca7c -r 7107aceeb1cf usr.bin/make/unit-tests/deptgt-silent.mk
--- a/usr.bin/make/unit-tests/deptgt-silent.mk Thu Sep 10 21:22:07 2020 +0000
+++ b/usr.bin/make/unit-tests/deptgt-silent.mk Thu Sep 10 21:40:50 2020 +0000
@@ -1,8 +1,10 @@
-# $NetBSD: deptgt-silent.mk,v 1.2 2020/08/16 14:25:16 rillig Exp $
+# $NetBSD: deptgt-silent.mk,v 1.3 2020/09/10 21:40:50 rillig Exp $
#
# Tests for the special target .SILENT in dependency declarations.
-# TODO: Implementation
+.SILENT: all
all:
- @:;
+ @echo 'This is not echoed because of the @.'
+ # Without the .SILENT, the following command would be echoed.
+ echo 'This is not echoed because of the .SILENT.'
Home |
Main Index |
Thread Index |
Old Index