xref: /freebsd/contrib/bmake/unit-tests/directive-unexport-env.mk (revision 43a5ec4eb41567cc92586503212743d89686d78f)
1# $NetBSD: directive-unexport-env.mk,v 1.7 2020/12/12 18:11:42 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
18UT_EXPORTED=	value
19UT_UNEXPORTED=	value
20.export UT_EXPORTED
21.unexport-env UT_EXPORTED UT_UNEXPORTED
22.MAKEFLAGS: -d0
23
24all:
25	@:;
26