summaryrefslogtreecommitdiff
path: root/build/pymake/tests/unexport.mk
diff options
context:
space:
mode:
Diffstat (limited to 'build/pymake/tests/unexport.mk')
-rw-r--r--build/pymake/tests/unexport.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/build/pymake/tests/unexport.mk b/build/pymake/tests/unexport.mk
new file mode 100644
index 0000000000..4244116034
--- /dev/null
+++ b/build/pymake/tests/unexport.mk
@@ -0,0 +1,15 @@
+#T environment: {'ENVVAR': 'envval'}
+
+VAR1 = val1
+VAR2 = val2
+VAR3 = val3
+
+unexport VAR3
+export VAR1 VAR2 VAR3
+unexport VAR2 ENVVAR
+unexport
+
+all:
+ test "$(ENVVAR)" = "envval" # unexport.mk
+ $(MAKE) -f $(TESTPATH)/unexport.submk
+ @echo TEST-PASS