summaryrefslogtreecommitdiffstats
path: root/20150505/unit-tests/unexport-env.mk
diff options
context:
space:
mode:
Diffstat (limited to '20150505/unit-tests/unexport-env.mk')
-rw-r--r--20150505/unit-tests/unexport-env.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/20150505/unit-tests/unexport-env.mk b/20150505/unit-tests/unexport-env.mk
new file mode 100644
index 0000000..aaabcd4
--- /dev/null
+++ b/20150505/unit-tests/unexport-env.mk
@@ -0,0 +1,14 @@
+# $Id: unexport-env.mk,v 1.1.1.1 2014/08/30 18:57:18 sjg Exp $
+
+# pick up a bunch of exported vars
+.include "export.mk"
+
+# an example of setting up a minimal environment.
+PATH = /bin:/usr/bin:/sbin:/usr/sbin
+
+# now clobber the environment to just PATH and UT_TEST
+UT_TEST = unexport-env
+
+# this removes everything
+.unexport-env
+.export PATH UT_TEST
OpenPOWER on IntegriCloud