This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=4b04e760a43e70c888b2d2b2953b1e3d25be8925 commit 4b04e760a43e70c888b2d2b2953b1e3d25be8925 Author: Nicolas Boulenguez <[email protected]> AuthorDate: Wed Apr 10 00:14:27 2024 +0200 test: Test exported variables in addition to Make variables [[email protected]: - Fix comments format. ] Signed-off-by: Guillem Jover <[email protected]> --- scripts/t/mk/architecture.mk | 3 +++ scripts/t/mk/buildflags.mk | 5 +++++ scripts/t/mk/buildtools.mk | 5 +++++ 3 files changed, 13 insertions(+) diff --git a/scripts/t/mk/architecture.mk b/scripts/t/mk/architecture.mk index bbfef5a30..128c184a0 100644 --- a/scripts/t/mk/architecture.mk +++ b/scripts/t/mk/architecture.mk @@ -19,4 +19,7 @@ loop_targets := $(foreach machine,BUILD HOST TARGET,\ test: $(loop_targets) $(loop_targets): + : # Test the Make variable. test '$($@)' = '$(TEST_$@)' + : # Test the exported variable. + test "$${$@}" = '$(TEST_$@)' diff --git a/scripts/t/mk/buildflags.mk b/scripts/t/mk/buildflags.mk index 042ba816f..2f2dc70a4 100644 --- a/scripts/t/mk/buildflags.mk +++ b/scripts/t/mk/buildflags.mk @@ -4,6 +4,8 @@ TEST_CPPFLAGS += -DTEST_MK=test-host DEB_CPPFLAGS_FOR_BUILD_MAINT_APPEND = -DTEST_MK=test-build TEST_CPPFLAGS_FOR_BUILD += -DTEST_MK=test-build +DPKG_EXPORT_BUILDFLAGS := 1 + include $(srcdir)/mk/buildflags.mk vars := \ @@ -23,4 +25,7 @@ loop_targets := $(vars) $(vars:=_FOR_BUILD) test: $(loop_targets) $(loop_targets): + : # Test the Make variable. test '$($@)' = '$(TEST_$@)' + : # Test the exported variable. + test "$${$@}" = '$(TEST_$@)' diff --git a/scripts/t/mk/buildtools.mk b/scripts/t/mk/buildtools.mk index 2b935ebb1..fabfd596a 100644 --- a/scripts/t/mk/buildtools.mk +++ b/scripts/t/mk/buildtools.mk @@ -1,3 +1,5 @@ +DPKG_EXPORT_BUILDTOOLS := 1 + include $(srcdir)/mk/buildtools.mk tools := \ @@ -22,4 +24,7 @@ loop_targets := $(tools) $(tools:=_FOR_BUILD) test: $(loop_targets) $(loop_targets): + : # Test the Make variable. test '$($@)' = '$(TEST_$@)' + : # Test the exported variable. + test "$${$@}" = '$(TEST_$@)' -- Dpkg.Org's dpkg

