]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/bmake/unit-tests/unexport-env.mk
Update to bmake-20201101
[FreeBSD/FreeBSD.git] / contrib / bmake / unit-tests / unexport-env.mk
1 # $NetBSD: unexport-env.mk,v 1.4 2020/10/24 08:50:17 rillig Exp $
2
3 # pick up a bunch of exported vars
4 FILTER_CMD=     grep ^UT_
5 .include "export.mk"
6
7 # an example of setting up a minimal environment.
8 PATH=   /bin:/usr/bin:/sbin:/usr/sbin
9
10 # now clobber the environment to just PATH and UT_TEST
11 UT_TEST=        unexport-env
12
13 # this removes everything
14 .unexport-env
15 .export PATH UT_TEST