Module Name:    src
Committed By:   rillig
Date:           Sat Oct  3 09:37:04 UTC 2020

Modified Files:
        src/usr.bin/make/unit-tests: directive-export-literal.exp
            directive-export-literal.mk

Log Message:
make(1): add test for .export-literal


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
    src/usr.bin/make/unit-tests/directive-export-literal.exp
cvs rdiff -u -r1.2 -r1.3 \
    src/usr.bin/make/unit-tests/directive-export-literal.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/make/unit-tests/directive-export-literal.exp
diff -u src/usr.bin/make/unit-tests/directive-export-literal.exp:1.1 src/usr.bin/make/unit-tests/directive-export-literal.exp:1.2
--- src/usr.bin/make/unit-tests/directive-export-literal.exp:1.1	Sun Aug 16 12:07:51 2020
+++ src/usr.bin/make/unit-tests/directive-export-literal.exp	Sat Oct  3 09:37:04 2020
@@ -1 +1,2 @@
+value with ${UNEXPANDED} expression
 exit status 0

Index: src/usr.bin/make/unit-tests/directive-export-literal.mk
diff -u src/usr.bin/make/unit-tests/directive-export-literal.mk:1.2 src/usr.bin/make/unit-tests/directive-export-literal.mk:1.3
--- src/usr.bin/make/unit-tests/directive-export-literal.mk:1.2	Sun Aug 16 14:25:16 2020
+++ src/usr.bin/make/unit-tests/directive-export-literal.mk	Sat Oct  3 09:37:04 2020
@@ -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"

Reply via email to