]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - unit-tests/directive-unexport-env.mk
Import bmake-20220330
[FreeBSD/FreeBSD.git] / unit-tests / directive-unexport-env.mk
1 # $NetBSD: directive-unexport-env.mk,v 1.8 2022/01/23 16:09:38 rillig Exp $
2 #
3 # Tests for the .unexport-env directive.
4 #
5 # Before 2020-12-13, the directive unexport-env wrongly accepted arguments
6 # and ignored them.
7 #
8 # Before 2020-12-13, misspelled directive names like "unexport-environment"
9 # were not properly detected.
10
11 # TODO: Implementation
12
13 .unexport-en                    # misspelled
14 .unexport-env                   # ok
15 .unexport-environment           # misspelled
16
17 .MAKEFLAGS: -dv
18 UT_EXPORTED=    value
19 UT_UNEXPORTED=  value
20 .export UT_EXPORTED
21 .unexport-env UT_EXPORTED UT_UNEXPORTED
22 .MAKEFLAGS: -d0
23
24 all: .PHONY