From: Alan T. DeKok Date: Wed, 27 Sep 2023 23:42:47 +0000 (-0400) Subject: add test for condition / edit of %func(args) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85a37ce0fe3bf5519bc6423140f2206c84ffbfe9;p=thirdparty%2Ffreeradius-server.git add test for condition / edit of %func(args) --- diff --git a/src/tests/keywords/if-function b/src/tests/keywords/if-function new file mode 100644 index 00000000000..78bdebf5a22 --- /dev/null +++ b/src/tests/keywords/if-function @@ -0,0 +1,17 @@ +# +# PRE: if +# +if !(%md5('foo') == 0xacbd18db4cc2f85cedef654fccc4a4d8) { + test_fail +} + +group { + octets hash + + &hash = %md5('foo') + if !(&hash == 0xacbd18db4cc2f85cedef654fccc4a4d8) { + test_fail + } +} + +success