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=31dfca70094586ba059e9347221e2a86f0bb510e commit 31dfca70094586ba059e9347221e2a86f0bb510e (HEAD -> main) Author: Guillem Jover <[email protected]> AuthorDate: Wed Dec 17 12:56:15 2025 +0100 test: Add a test for negated build profiles We should be checking that negated build profiles work, and get parsed correctly as valid. Prompted-by: Chris Hofstaedtler <[email protected]> (on IRC) --- scripts/t/Dpkg_BuildProfiles.t | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/t/Dpkg_BuildProfiles.t b/scripts/t/Dpkg_BuildProfiles.t index 02b755b6c..7e30dd74d 100644 --- a/scripts/t/Dpkg_BuildProfiles.t +++ b/scripts/t/Dpkg_BuildProfiles.t @@ -15,7 +15,7 @@ use v5.36; -use Test::More tests => 23; +use Test::More tests => 24; use ok 'Dpkg::BuildProfiles', qw( build_profile_is_invalid @@ -68,6 +68,10 @@ $formula = [ [ qw(nocheck nodoc) ], [ qw(stage1) ] ]; is_deeply([ parse_build_profiles('<nocheck nodoc> <stage1>') ], $formula, 'parse build profiles formula AND, OR'); +$formula = [ [ qw(nocheck !nodoc) ], [ qw(!stage1) ] ]; +is_deeply([ parse_build_profiles('<nocheck !nodoc> <!stage1>') ], $formula, + 'parse build profiles formula negations'); + { local $ENV{DEB_BUILD_PROFILES} = 'cross nodoc profile.name'; is_deeply([ get_build_profiles() ], [ qw(cross nodoc profile.name) ], -- Dpkg.Org's dpkg

