From: Alan T. DeKok Date: Wed, 16 Nov 2022 12:57:40 +0000 (-0500) Subject: forbid update in most places X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e03188119172553960b4cc8934e2c59efaad92b;p=thirdparty%2Ffreeradius-server.git forbid update in most places except tests which actually use update The bext step is to take all of the update tests, and run them twice. once as normal, and once with "-S rewrite_update=yes" --- diff --git a/src/tests/keywords/all.mk b/src/tests/keywords/all.mk index 2847cb4f0c6..f93fb9c9c05 100644 --- a/src/tests/keywords/all.mk +++ b/src/tests/keywords/all.mk @@ -46,7 +46,11 @@ test.keywords.help: TEST_KEYWORDS_HELP += test.keywords.${1} ifneq "$(findstring ${1}, paircmp)" "" $(OUTPUT)/${1}: NEW_COND=-S parse_new_conditions=no -S use_new_conditions=no else +ifneq "$(findstring ${1}, comments update-to-edit if-regex-multivalue smash wimax unknown unknown-update update-all update-array update-attr-ref-null update-delete update-error-2 update-error-3 update-remove-any update-exec update-exec-error update-filter update-group update-group-error update-hex update-remove-value update-remove-index update-index update-list-error update-list-null-rhs update-null-value-assign update-prepend update-remove-list vendor_specific vendor_specific.raw xlat-unknown)" "" $(OUTPUT)/${1}: NEW_COND=-S parse_new_conditions=yes -S use_new_conditions=yes +else +$(OUTPUT)/${1}: NEW_COND=-S parse_new_conditions=yes -S use_new_conditions=yes -S forbid_update=yes +endif endif endef