]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
get rid of backticks in tests
authorAlan T. DeKok <aland@freeradius.org>
Sun, 8 Oct 2023 12:03:57 +0000 (08:03 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 8 Oct 2023 12:06:01 +0000 (08:06 -0400)
src/tests/unit/condition/base.txt
src/tests/unit/xlat/cond_base.txt
src/tests/unit/xlat/purify.txt
src/tests/xlat/expr.txt

index 5a5fafc2b665a69e0a69b6289406c258be3b1440..87795d25ac360f14228e3d09d65bd8a649246714 100644 (file)
@@ -202,9 +202,6 @@ match (&Framed-IP-Address <= 192.168.0.0/16)
 condition &User-Name == "bob"
 match (&User-Name == "bob")
 
-condition &User-Name == `bob`
-match (&User-Name == `bob`)
-
 condition &User-Name == 'bob'
 match (&User-Name == 'bob')
 
@@ -406,9 +403,6 @@ match %{rcode:'fail'}
 condition ("a")
 match "a"
 
-condition (`a`)
-match `a`
-
 condition (&User-Name)
 match &User-Name
 
@@ -680,4 +674,4 @@ condition (&User-Name == "bob") && ((&User-Password == "bob") || &EAP-Message)
 match ((&User-Name == "bob") && ((&User-Password == "bob") || &EAP-Message))
 
 count
-match 307
+match 303
index 2a24899e86379e483ce0c3ee0221f9eea6cdc30a..df99fbcee362879c28dbcbfa081f980f95382f96 100644 (file)
@@ -200,9 +200,6 @@ match (&Framed-IP-Address <= 192.168.0.0/16)
 xlat_purify &User-Name == "bob"
 match (&User-Name == "bob")
 
-xlat_purify &User-Name == `bob`
-match (&User-Name == `bob`)
-
 xlat_purify &User-Name == 'bob'
 match (&User-Name == 'bob')
 
@@ -408,9 +405,6 @@ match 'a'
 xlat_purify ("a")
 match "a"
 
-xlat_purify (`a`)
-match `a`
-
 xlat_purify (&User-Name)
 match &User-Name
 
@@ -767,4 +761,4 @@ xlat_purify (192.168.0.1 !== 192.168.0.2)
 match true
 
 count
-match 328
+match 324
index e98ec192a1c15c825691efd39c26489298e8d4c0..63d4f0e41008fb3a7036eb1e777d682f40c9e75e 100644 (file)
@@ -67,8 +67,8 @@ match true
 xlat_purify &Service-Type == Framed-User
 match (&Service-Type == Framed-User)
 
-#xlat_purify 1 + (&Service-Type == Framed-User)
-#match (1 + (&Service-Type == Framed-User))
+xlat_purify 1 + (&Service-Type == Framed-User)
+match (1 + (&Service-Type == Framed-User))
 
 #
 #  Strings of various forms
@@ -259,4 +259,4 @@ xlat_purify %md5("foo")
 match 0xacbd18db4cc2f85cedef654fccc4a4d8
 
 count
-match 114
+match 116
index 0ae53f498504a2b5f55749de3d28e3e3ef4a15cc..03527e2b6fb8556ce3cb625ae0a40788f29b35c3 100644 (file)
@@ -71,21 +71,6 @@ xlat_expr 00:01:02:03:04:05 ^ 11:22:33:44:55:66
 match NULL
 #match ERROR expanding xlat: Cannot perform any operations for destination type ether
 
-#
-#  Execute external programs.
-#
-xlat_expr `/bin/echo foo %n`
-match foo 0
-
-#
-#  Linux has /bin/false, and /usr/bin/test
-#  OSX has /usr/bin/false, and /bin/test
-#
-#  However, they both have /bin/rm !
-#
-xlat_expr `/bin/rm this_file_should_not_exist_if_it_does_too_bad_for_you`
-match ERROR expanding xlat: Program failed with status 1
-
 #
 #  NAS-IP-Address doesn't exist.
 #