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 .export-literal
details: https://anonhg.NetBSD.org/src/rev/ad27866893af
branches: trunk
changeset: 955521:ad27866893af
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Oct 03 09:37:04 2020 +0000
description:
make(1): add test for .export-literal
diffstat:
usr.bin/make/unit-tests/directive-export-literal.exp | 1 +
usr.bin/make/unit-tests/directive-export-literal.mk | 11 +++++++----
2 files changed, 8 insertions(+), 4 deletions(-)
diffs (25 lines):
diff -r e874539b5b92 -r ad27866893af usr.bin/make/unit-tests/directive-export-literal.exp
--- a/usr.bin/make/unit-tests/directive-export-literal.exp Sat Oct 03 09:10:26 2020 +0000
+++ b/usr.bin/make/unit-tests/directive-export-literal.exp Sat Oct 03 09:37:04 2020 +0000
@@ -1,1 +1,2 @@
+value with ${UNEXPANDED} expression
exit status 0
diff -r e874539b5b92 -r ad27866893af usr.bin/make/unit-tests/directive-export-literal.mk
--- a/usr.bin/make/unit-tests/directive-export-literal.mk Sat Oct 03 09:10:26 2020 +0000
+++ b/usr.bin/make/unit-tests/directive-export-literal.mk Sat Oct 03 09:37:04 2020 +0000
@@ -1,8 +1,11 @@
-# $NetBSD: directive-export-literal.mk,v 1.2 2020/08/16 14:25:16 rillig Exp $
+# $NetBSD: directive-export-literal.mk,v 1.3 2020/10/03 09:37:04 rillig Exp $
#
-# Tests for the .export-literal directive.
+# Tests for the .export-literal directive, which exports a variable value
+# without expanding it.
-# TODO: Implementation
+UT_VAR= value with ${UNEXPANDED} expression
+
+.export-literal UT_VAR
all:
- @:;
+ @echo "$$UT_VAR"
Home |
Main Index |
Thread Index |
Old Index