summaryrefslogtreecommitdiff
path: root/python/pymake/tests/unexport.submk
diff options
context:
space:
mode:
Diffstat (limited to 'python/pymake/tests/unexport.submk')
-rw-r--r--python/pymake/tests/unexport.submk15
1 files changed, 15 insertions, 0 deletions
diff --git a/python/pymake/tests/unexport.submk b/python/pymake/tests/unexport.submk
new file mode 100644
index 000000000..8db6163de
--- /dev/null
+++ b/python/pymake/tests/unexport.submk
@@ -0,0 +1,15 @@
+# -@- Mode: Makefile -@-
+
+unexport VAR1
+
+all:
+ env
+ test "$(VAR1)" = "val1"
+ test "$(origin VAR1)" = "environment"
+ test "$(VAR2)" = "" # VAR2
+ test "$(VAR3)" = "val3"
+ test "$(ENVVAR)" = ""
+ $(MAKE) -f $(TESTPATH)/unexport.submk subt
+
+subt:
+ test "$(VAR1)" = ""