1 # $NetBSD: export-variants.mk,v 1.2 2020/08/08 13:00:07 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, no variable should be exported.
31 .if ${:!env | grep ^UT_ || true!} != "UT_VAR=value"
32 .warning At this point, some variables should be exported.
35 .if ${env | grep ^UT_ || true:L:sh} != "UT_VAR=value"
36 .warning At this point, some variables should be exported.