]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
enable more tests
authorAlan T. DeKok <aland@freeradius.org>
Wed, 1 Jun 2022 11:12:08 +0000 (07:12 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 3 Jun 2022 11:15:54 +0000 (07:15 -0400)
src/tests/xlat/expr.txt

index 6b72ec98c9e7dc8e480007c07ffd12f777540120..959330d8cb9478357877c583716e208fe421dc99 100644 (file)
@@ -10,20 +10,13 @@ match 3
 xlat_expr (ipv4prefix) 192.168.0.0/16 + 4
 match 192.168.0.4
 
-#
-#  This crashes right now, because "foo" is marked up as needing xlat expansion.  it doesn't, but
-#  the rest of the code tries to bootstrap it, and unit_test_module doesn't do thread
-#  instantiation of xlats.
-#
-#  and if that's fixed, xlat_eval() needs to be fixed to handle this data type.
-#
-#xlat_expr "foo"
-#match "foo"
+# @todo - quotes?
+xlat_expr "foo"
+match foo
 
-#  This crashes, too.
-#
-#xlat_expr "foo" + "bar"
-#match "foobar"
+# @todo - quotes?
+xlat_expr "foo" + "bar"
+match foobar
 
 xlat_expr 0xabcdef + 0x1234
 match 0xabcdef1234