1 # $NetBSD: export-variants.mk,v 1.4 2020/10/24 08:46:08 rillig Exp $
3 # Test whether exported variables apply to each variant of running
10 SHVAR!= env | grep ^UT_ || true
12 . warning At this point, no variable should be exported.
15 .if ${:!env | grep ^UT_ || true!} != ""
16 . warning At this point, no variable should be exported.
19 .if ${env | grep ^UT_ || true:L:sh} != ""
20 . warning At this point, no variable should be exported.
26 SHVAR!= env | grep ^UT_ || true
27 .if ${SHVAR} != "UT_VAR=value"
28 . warning At this point, a single variable should be exported.
31 .if ${:!env | grep ^UT_ || true!} != "UT_VAR=value"
32 . warning At this point, a single variable should be exported.
35 .if ${env | grep ^UT_ || true:L:sh} != "UT_VAR=value"
36 . warning At this point, a single variable should be exported.