]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
forbid update in most places
authorAlan T. DeKok <aland@freeradius.org>
Wed, 16 Nov 2022 12:57:40 +0000 (07:57 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 17 Nov 2022 12:34:53 +0000 (07:34 -0500)
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"

src/tests/keywords/all.mk

index 2847cb4f0c6fdc93033fda21f8670302b38328d9..f93fb9c9c0596c27a6991809164e2071ab83d369 100644 (file)
@@ -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