xref: /freebsd/contrib/bmake/unit-tests/directive-unexport-env.mk (revision ebacd8013fe5f7fdf9f6a5b286f6680dd2891036)
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
18UT_EXPORTED=	value
19UT_UNEXPORTED=	value
20.export UT_EXPORTED
21.unexport-env UT_EXPORTED UT_UNEXPORTED
22.MAKEFLAGS: -d0
23
24all: .PHONY
25