]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
convert whitespace to tabs
authorAlan T. DeKok <aland@freeradius.org>
Tue, 30 Aug 2022 19:26:53 +0000 (15:26 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 30 Aug 2022 19:26:53 +0000 (15:26 -0400)
34 files changed:
src/tests/keywords/array
src/tests/keywords/case-duplicate
src/tests/keywords/cmp-ipaddr
src/tests/keywords/comments
src/tests/keywords/else-error
src/tests/keywords/if-attr-error
src/tests/keywords/if-empty-allow
src/tests/keywords/if-multiline
src/tests/keywords/join
src/tests/keywords/length
src/tests/keywords/load-balance
src/tests/keywords/map-2arg-error
src/tests/keywords/map-field-error
src/tests/keywords/md4
src/tests/keywords/md5
src/tests/keywords/mschap
src/tests/keywords/nexttime
src/tests/keywords/redundant
src/tests/keywords/return-section
src/tests/keywords/unknown-update
src/tests/keywords/update
src/tests/keywords/update-array
src/tests/keywords/update-delete
src/tests/keywords/update-exec-error
src/tests/keywords/update-group-error
src/tests/keywords/update-remove-index
src/tests/keywords/update-remove-list
src/tests/keywords/update-remove-value
src/tests/keywords/xlat-config
src/tests/keywords/xlat-dhcpv4
src/tests/keywords/xlat-exec
src/tests/keywords/xlat-integer
src/tests/keywords/xlat-interpreter
src/tests/keywords/xlat-soh

index 700fed0bc6da808533b3ad4bac20d66899d5c1f6..e631fe4f2f804351e8fb53a4340306097e2e7205 100644 (file)
@@ -4,9 +4,9 @@
 #  Tests for dereferencing the Nth attribute
 #
 &request += {
-       &Class = 0x01020304,
-       &Class = 0x05060708,
-       &Class = 0x090a0b0c,
+       &Class = 0x01020304,
+       &Class = 0x05060708,
+       &Class = 0x090a0b0c,
 }
 
 if (%{Class[#]} != 3) {
index 0aae7879457c3b5c1a3a2cd0fb2ebbe36fe6b460..fc13854f715b2fcc0f99ec84761543e7c33ff5a3 100644 (file)
@@ -2,7 +2,7 @@
 #
 switch &reply.Filter-Id {
        case "filter" {
-            ok
+               ok
        }
 
        case "filter" {  # ERROR
index be7884d80a431bfa7a66dad8bae7926af1bb632d..62731948f4a1c0b6a4cf65c31e98603ffbd3afd1 100644 (file)
@@ -1,7 +1,7 @@
 #
 #  PRE: if
 #
-&NAS-IP-Address    := 127.0.0.1
+&NAS-IP-Address        := 127.0.0.1
 &Framed-IP-Address := 127.0.0.1
 
 #
@@ -11,7 +11,7 @@ if (!(&NAS-IP-Address == &Framed-IP-Address)) {
        test_fail
 }
 
-&NAS-IP-Address    := 0.0.0.0
+&NAS-IP-Address        := 0.0.0.0
 &Framed-IP-Address := 255.255.255.255
 
 if (!(&NAS-IP-Address != &Framed-IP-Address)) {
index 24e159f8d89c346b7b603812347508fa4fc69231..897618373ee61e9191e0119579caced6e58fd7d8 100644 (file)
@@ -13,7 +13,7 @@
        #Nine comment (tabs and spaces, are you crazy?!)
 
 update {                                       #}'{ Opening block with extra special chars {} '"
-       &control.User-Name := 'whatever'                # do some random stuff
+       &control.User-Name := 'whatever'                # do some random stuff
 }                                              #{'} Closing block with extra special chars {} '"
 
 update { &request.Tmp-String-0 := 'candy' }    # Comment after unicorn block
index 2650ad010a6669ed90524951f03871eed0892048..82a99e510bad325e334a194432d9ffdac7322e29 100644 (file)
@@ -7,6 +7,6 @@ if (1) {
        &control.Password.Cleartext := "fail"
 
        else {  # ERROR
-            ok
+               ok
        }
 }
index 82ebaf947c91b7c7fa20be33cf4f59cbfd379523..4c04a8b5f295a0d95f2097a1fa578291e7d4d94e 100644 (file)
@@ -7,5 +7,5 @@
 #  attribute doesn't exist.
 #
 if (&Not-Dynamically-Allocated) {      # ERROR
-   # foo
+       # foo
 }
index 24a39de791eacf91debb53a91318798c47c8a901..44b9638b245f94b006004c4ee2e74ad4868249bf 100644 (file)
@@ -4,11 +4,11 @@
 #  Static if condition
 #
 if (1) {
-   # we allow empty 'if' conditions
+       # we allow empty 'if' conditions
 }
 
 if (0) {
-   # this never gets compiled
+       # this never gets compiled
 
 }
 
index f311003c019c491db7f54f52df0f7eebd15ac556..d2f5573fdb36294ac52a3198f5d2acb45b7e1975 100644 (file)
@@ -5,7 +5,7 @@
 #  we can magically have multiline "if" statements.
 #
 if (1 + 2
-     != 3) {
+       != 3) {
        test_fail
 }
 success
index 26bc129d297b44cbd80a7012183a5995d4798479..f6ed97e47f2f5ec2ac81134f9066f7c178bba77a 100644 (file)
@@ -4,9 +4,9 @@
 &request -= &Packet-Type[*]
 
 &request += {
-        &Tmp-String-0 = "ab c"
-        &Tmp-String-0 = "de fg"
-        &Tmp-Integer-0 = 123
+       &Tmp-String-0 = "ab c"
+       &Tmp-String-0 = "de fg"
+       &Tmp-Integer-0 = 123
 }
 
 &control.Tmp-IP-Address-0 := 192.168.1.254
 &control.Tmp-String-1 := "%(concat:%(join:%(ungroup:%{request[*]}) %{control.Tmp-IP-Address-0}) '. ')"
 
 if (&control.Tmp-String-1 != "bob. hello. ab c. de fg. 123. 192.168.1.254") {
-        test_fail
+       test_fail
 }
 
 &Tmp-String-2 := "%(concat:%(join:%{Tmp-String-0[*]} %{Tmp-Integer-0}) ,)"
 if (&request.Tmp-String-2 != "ab c,de fg,123") {
-        test_fail
+       test_fail
 }
 
 success
index 30314f0f16a18a8b21c8f01a96dc4aac97a60be1..dff5a1f60e815de2b320bf289d0b0e22f913a3cb 100644 (file)
@@ -2,20 +2,20 @@
 # PRE: hex
 #
 &request += {
-       &Tmp-String-0        = '\
+       &Tmp-String-0   = '\
 abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz\
 abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz\
 abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz'
-       &Tmp-String-2        = '9870'
-       &Tmp-Octets-0        = 0x39383731
-       &Tmp-IP-Address-0    = 57.56.55.50
-       &Tmp-Integer-0       = 959985460
-       &Tmp-Cast-IfId       = '0000:0000:3938:3737'
-       &Tmp-Cast-IPv6Addr   = '::3938:3738'
+       &Tmp-String-2   = '9870'
+       &Tmp-Octets-0   = 0x39383731
+       &Tmp-IP-Address-0       = 57.56.55.50
+       &Tmp-Integer-0  = 959985460
+       &Tmp-Cast-IfId  = '0000:0000:3938:3737'
+       &Tmp-Cast-IPv6Addr      = '::3938:3738'
        &Tmp-Cast-IPv6Prefix = '::3938:3739/128'
-       &Tmp-Cast-Byte       = 58
-       &Tmp-Cast-Short      = 14139
-       &Tmp-Cast-Ether      = 00:00:39:38:37:3c
+       &Tmp-Cast-Byte  = 58
+       &Tmp-Cast-Short = 14139
+       &Tmp-Cast-Ether = 00:00:39:38:37:3c
        &Tmp-Cast-Integer64  = 1152921505566832445
        &Tmp-Cast-IPv4Prefix = 57.56.55.62/32
 }
@@ -25,15 +25,15 @@ if (%(length:%{Tmp-String-0}) != 260) {
 }
 
 &request += {
-       &Tmp-uint64-0         = "%(length:%{Tmp-String-2})"  # Tmp-Integer-0 is defined and used below for Tmp-Integer-4
-       &Tmp-Integer-1        = "%(length:%{Tmp-Octets-0})"
-       &Tmp-Integer-2        = "%(length:%{Tmp-IP-Address-0})"
-       &Tmp-Integer-3        = "%(length:\"hello, world\")"
-       &Tmp-Integer-4        = "%(length:%{Tmp-Integer-0})"
-       &Tmp-Integer-6        = "%(length:%{Tmp-Cast-Ifid})"
-       &Tmp-Integer-7        = "%(length:%{Tmp-Cast-IPv6Addr})"
-       &Tmp-Integer-8        = "%(length:%{Tmp-Cast-IPv6Prefix})"
-       &Tmp-Integer-9        = "%(length:%{Tmp-Cast-Byte})"
+       &Tmp-uint64-0    = "%(length:%{Tmp-String-2})"  # Tmp-Integer-0 is defined and used below for Tmp-Integer-4
+       &Tmp-Integer-1  = "%(length:%{Tmp-Octets-0})"
+       &Tmp-Integer-2  = "%(length:%{Tmp-IP-Address-0})"
+       &Tmp-Integer-3  = "%(length:\"hello, world\")"
+       &Tmp-Integer-4  = "%(length:%{Tmp-Integer-0})"
+       &Tmp-Integer-6  = "%(length:%{Tmp-Cast-Ifid})"
+       &Tmp-Integer-7  = "%(length:%{Tmp-Cast-IPv6Addr})"
+       &Tmp-Integer-8  = "%(length:%{Tmp-Cast-IPv6Prefix})"
+       &Tmp-Integer-9  = "%(length:%{Tmp-Cast-Byte})"
 }
 
 # String - bin 0x39383730
@@ -81,10 +81,10 @@ if (&Tmp-Integer-9 != 1) {
        test_fail
 }
 
-&Tmp-Integer-0        := "%(length:%{Tmp-Cast-Short})"
-&Tmp-Integer-1        := "%(length:%{Tmp-Cast-Ether})"
-&Tmp-Integer-2        := "%(length:%{Tmp-Cast-Integer64})"
-&Tmp-Integer-3        := "%(length:%{Tmp-Cast-IPv4Prefix})"
+&Tmp-Integer-0 := "%(length:%{Tmp-Cast-Short})"
+&Tmp-Integer-1 := "%(length:%{Tmp-Cast-Ether})"
+&Tmp-Integer-2 := "%(length:%{Tmp-Cast-Integer64})"
+&Tmp-Integer-3 := "%(length:%{Tmp-Cast-IPv4Prefix})"
 
 # short - bin 0x373b
 if (&Tmp-Integer-0 != 2) {
index 9f5e5e36c1a1e89ca3f50561b1f7d00a02d9bda6..863d06ebc0c8199c4a26bfd174d0c98200282926 100644 (file)
@@ -6,59 +6,59 @@
 #  Should distribute load between the modules.
 #
 &request += {
-    &Tmp-Integer-0 = 0
-    &Tmp-Integer-1 = 0
+       &Tmp-Integer-0 = 0
+       &Tmp-Integer-1 = 0
 
-    &Tmp-Integer-2 = 0         # 0
-    &Tmp-Integer-2 = 1
-    &Tmp-Integer-2 = 2
-    &Tmp-Integer-2 = 3
-    &Tmp-Integer-2 = 4
-    &Tmp-Integer-2 = 5
-    &Tmp-Integer-2 = 6
-    &Tmp-Integer-2 = 7
-    &Tmp-Integer-2 = 8
-    &Tmp-Integer-2 = 9         # 10
-    &Tmp-Integer-2 = 0
-    &Tmp-Integer-2 = 1
-    &Tmp-Integer-2 = 2
-    &Tmp-Integer-2 = 3
-    &Tmp-Integer-2 = 4
-    &Tmp-Integer-2 = 5
-    &Tmp-Integer-2 = 6
-    &Tmp-Integer-2 = 7
-    &Tmp-Integer-2 = 8
-    &Tmp-Integer-2 = 9         # 20
-    &Tmp-Integer-2 = 0
-    &Tmp-Integer-2 = 1
-    &Tmp-Integer-2 = 2
-    &Tmp-Integer-2 = 3
-    &Tmp-Integer-2 = 4
-    &Tmp-Integer-2 = 5
-    &Tmp-Integer-2 = 6
-    &Tmp-Integer-2 = 7
-    &Tmp-Integer-2 = 8
-    &Tmp-Integer-2 = 9         # 30
-    &Tmp-Integer-2 = 0
-    &Tmp-Integer-2 = 1
-    &Tmp-Integer-2 = 2
-    &Tmp-Integer-2 = 3
-    &Tmp-Integer-2 = 4
-    &Tmp-Integer-2 = 5
-    &Tmp-Integer-2 = 6
-    &Tmp-Integer-2 = 7
-    &Tmp-Integer-2 = 8
-    &Tmp-Integer-2 = 9         # 40
-    &Tmp-Integer-2 = 0
-    &Tmp-Integer-2 = 1
-    &Tmp-Integer-2 = 2
-    &Tmp-Integer-2 = 3
-    &Tmp-Integer-2 = 4
-    &Tmp-Integer-2 = 5
-    &Tmp-Integer-2 = 6
-    &Tmp-Integer-2 = 7
-    &Tmp-Integer-2 = 8
-    &Tmp-Integer-2 = 9         # 49
+       &Tmp-Integer-2 = 0              # 0
+       &Tmp-Integer-2 = 1
+       &Tmp-Integer-2 = 2
+       &Tmp-Integer-2 = 3
+       &Tmp-Integer-2 = 4
+       &Tmp-Integer-2 = 5
+       &Tmp-Integer-2 = 6
+       &Tmp-Integer-2 = 7
+       &Tmp-Integer-2 = 8
+       &Tmp-Integer-2 = 9              # 10
+       &Tmp-Integer-2 = 0
+       &Tmp-Integer-2 = 1
+       &Tmp-Integer-2 = 2
+       &Tmp-Integer-2 = 3
+       &Tmp-Integer-2 = 4
+       &Tmp-Integer-2 = 5
+       &Tmp-Integer-2 = 6
+       &Tmp-Integer-2 = 7
+       &Tmp-Integer-2 = 8
+       &Tmp-Integer-2 = 9              # 20
+       &Tmp-Integer-2 = 0
+       &Tmp-Integer-2 = 1
+       &Tmp-Integer-2 = 2
+       &Tmp-Integer-2 = 3
+       &Tmp-Integer-2 = 4
+       &Tmp-Integer-2 = 5
+       &Tmp-Integer-2 = 6
+       &Tmp-Integer-2 = 7
+       &Tmp-Integer-2 = 8
+       &Tmp-Integer-2 = 9              # 30
+       &Tmp-Integer-2 = 0
+       &Tmp-Integer-2 = 1
+       &Tmp-Integer-2 = 2
+       &Tmp-Integer-2 = 3
+       &Tmp-Integer-2 = 4
+       &Tmp-Integer-2 = 5
+       &Tmp-Integer-2 = 6
+       &Tmp-Integer-2 = 7
+       &Tmp-Integer-2 = 8
+       &Tmp-Integer-2 = 9              # 40
+       &Tmp-Integer-2 = 0
+       &Tmp-Integer-2 = 1
+       &Tmp-Integer-2 = 2
+       &Tmp-Integer-2 = 3
+       &Tmp-Integer-2 = 4
+       &Tmp-Integer-2 = 5
+       &Tmp-Integer-2 = 6
+       &Tmp-Integer-2 = 7
+       &Tmp-Integer-2 = 8
+       &Tmp-Integer-2 = 9              # 49
 }
 
 #
index 530063792847b5645a5ac860e9fa04ad691ab5c1..78f8d3fcba20ddb18588cc7e9b7f45b44807f7b7 100644 (file)
@@ -1,3 +1,3 @@
 map foo {      # ERROR
-    User-Name = 'foo'
+       User-Name = 'foo'
 }
index 127521ebc0988461c6719f8583b4352a8f9774e6..91a35ca7804ef5e16d0cf7629f06a676f5286054 100644 (file)
@@ -2,5 +2,5 @@
 #  PRE: map-2arg-error map-empty-error map-module-error
 #
 map csv &User-Name {
-    reply.Filter-Id := 'field2'        # ERROR
+       reply.Filter-Id := 'field2'     # ERROR
 }
index b6cef289bd6e80ca4947005dbe32eab4ecd80c54..30636ab334197dbfaefc8b9fcb7d8e884015f8be 100644 (file)
 
 
 &request += {
-        &Tmp-Octets-1 = "%{md4:This is a string\n}"
-        &Tmp-Octets-2 = "%{md4:%{Tmp-String-0}}"
-        &Tmp-Octets-3 = "%{md4:%{request.Tmp-String-0}}"
-        &Tmp-Octets-4 = "%{md4:%{request.Tmp-Octets-0}}"
-        &Tmp-Octets-5 = "%{md4:%{Tmp-String-9}}"
+       &Tmp-Octets-1 = "%{md4:This is a string\n}"
+       &Tmp-Octets-2 = "%{md4:%{Tmp-String-0}}"
+       &Tmp-Octets-3 = "%{md4:%{request.Tmp-String-0}}"
+       &Tmp-Octets-4 = "%{md4:%{request.Tmp-Octets-0}}"
+       &Tmp-Octets-5 = "%{md4:%{Tmp-String-9}}"
 }
 
 #
index fda682a5b62a7ff4f3d7153ba5ea48b7ed9029b8..72ef0a6c0d85d5d61568efa9edd28b2b7fa38957 100644 (file)
 
 
 &request += {
-        &Tmp-Octets-1 = "%{md5:This is a string\n}"
-        &Tmp-Octets-2 = "%{md5:%{Tmp-String-0}}"
-        &Tmp-Octets-3 = "%{md5:%{request.Tmp-String-0}}"
-        &Tmp-Octets-4 = "%{md5:%{request.Tmp-Octets-0}}"
-        &Tmp-Octets-5 = "%{md5:%{Tmp-String-9}}"
-        &Tmp-Octets-6 = "%(hmacmd5:%{Tmp-String-1} %{Tmp-String-2})"
-        &Tmp-Octets-7 = "%(hmacmd5:%{Tmp-String-3} %{Tmp-String-3})"
+       &Tmp-Octets-1 = "%{md5:This is a string\n}"
+       &Tmp-Octets-2 = "%{md5:%{Tmp-String-0}}"
+       &Tmp-Octets-3 = "%{md5:%{request.Tmp-String-0}}"
+       &Tmp-Octets-4 = "%{md5:%{request.Tmp-Octets-0}}"
+       &Tmp-Octets-5 = "%{md5:%{Tmp-String-9}}"
+       &Tmp-Octets-6 = "%(hmacmd5:%{Tmp-String-1} %{Tmp-String-2})"
+       &Tmp-Octets-7 = "%(hmacmd5:%{Tmp-String-3} %{Tmp-String-3})"
 }
 
 #
index 3bb2a9730f0bcd90eff5c381fcdbe09badaee1d3..3b29af3f659401eee1ea8d8c7d611f64fcfb0d0f 100644 (file)
@@ -4,32 +4,32 @@
 
 # MS CHAPv1
 update request {
-        &User-Name := 'EXAMPLE\bob'
+       &User-Name := 'EXAMPLE\bob'
        &Vendor-Specific.Microsoft.CHAP-Challenge := 0xe96e4fff2955c4f1
        &Vendor-Specific.Microsoft.CHAP-Response := 0x00010000000000000000000000000000000000000000000000008860bbaac0cd3960b4ce5dc6f0f7a462b897ef530484e80f
 }
 
 &request += {
-        &Tmp-Octets-0 = "%(mschap:Challenge)"
-        &Tmp-Octets-1 = "%(mschap:NT-Response)"
-        &Tmp-String-0 = "%(mschap:NT-Domain)"
-        &Tmp-String-1 = "%(mschap:User-Name)"
+       &Tmp-Octets-0 = "%(mschap:Challenge)"
+       &Tmp-Octets-1 = "%(mschap:NT-Response)"
+       &Tmp-String-0 = "%(mschap:NT-Domain)"
+       &Tmp-String-1 = "%(mschap:User-Name)"
 }
 
 if (&Tmp-Octets-0 != 0xe96e4fff2955c4f1) {
-        test_fail
+       test_fail
 }
 
 if (&Tmp-Octets-1 != 0x8860bbaac0cd3960b4ce5dc6f0f7a462b897ef530484e80f) {
-        test_fail
+       test_fail
 }
 
 if (&Tmp-String-0 != 'EXAMPLE') {
-        test_fail
+       test_fail
 }
 
 if (&Tmp-String-1 != 'bob') {
-        test_fail
+       test_fail
 }
 
 update request {
@@ -37,62 +37,62 @@ update request {
 }
 
 update request {
-        &Tmp-Octets-0 := "%(mschap:LM-Response)"
+       &Tmp-Octets-0 := "%(mschap:LM-Response)"
 }
 
 if (&Tmp-Octets-0 != 0x6937d7935bb28a4c1dafe6a193bdea7a853a74d8bcf6db15) {
-        test_fail
+       test_fail
 }
 
 # Hashing
 update request {
-        &Tmp-Octets-0 := "%(mschap:NT-Hash testing_123)"
-        &Tmp-Octets-1 := "%(mschap:LM-Hash testing_123)"
+       &Tmp-Octets-0 := "%(mschap:NT-Hash testing_123)"
+       &Tmp-Octets-1 := "%(mschap:LM-Hash testing_123)"
 }
 
 if (&Tmp-Octets-0 != 0xfa782604f85eb3564f555648341b53e4) {
-        test_fail
+       test_fail
 }
 
 if (&Tmp-Octets-1 != 0x2d5545077d7b7d2ae4343f96ab15c596) {
-        test_fail
+       test_fail
 }
 
 # MS CHAPv2
 update request {
-        &Vendor-Specific.Microsoft.CHAP-Response !* ANY
-        &Vendor-Specific.Microsoft.CHAP-Challenge := 0x04408dc2a98dae1ce351dfc53f57d08e
-        &Vendor-Specific.Microsoft.CHAP2-Response := 0x00010e93cfbfcef8d5b6af42d2b2ca5b43180000000000000000bc068d1e8c54de5e9db78e6736d686eb88a999dd7fa239b200
+       &Vendor-Specific.Microsoft.CHAP-Response !* ANY
+       &Vendor-Specific.Microsoft.CHAP-Challenge := 0x04408dc2a98dae1ce351dfc53f57d08e
+       &Vendor-Specific.Microsoft.CHAP2-Response := 0x00010e93cfbfcef8d5b6af42d2b2ca5b43180000000000000000bc068d1e8c54de5e9db78e6736d686eb88a999dd7fa239b200
 }
 
 update request {
-        &Tmp-Octets-0 := "%(mschap:Challenge)"
-        &Tmp-Octets-1 := "%(mschap:NT-Response)"
+       &Tmp-Octets-0 := "%(mschap:Challenge)"
+       &Tmp-Octets-1 := "%(mschap:NT-Response)"
 }
 
 if (&Tmp-Octets-0 != 0xad18b6b8e1478b4c) {
-        test_fail
+       test_fail
 }
 
 if (&Tmp-Octets-1 != 0xbc068d1e8c54de5e9db78e6736d686eb88a999dd7fa239b2) {
-        test_fail
+       test_fail
 }
 
 # Invalid
 update request {
-        &Vendor-Specific.Microsoft.CHAP-Challenge := 0xf0eac4151d5346662ba8c5e428
+       &Vendor-Specific.Microsoft.CHAP-Challenge := 0xf0eac4151d5346662ba8c5e428
 }
 
 update request {
-        &Tmp-String-0 := "%(mschap:Challenge)"
+       &Tmp-String-0 := "%(mschap:Challenge)"
 }
 
 if (&Tmp-String-0 != "") {
-        test_fail
+       test_fail
 }
 
 if (&Module-Failure-Message != "Invalid MS-CHAP challenge length") {
-        test_fail
+       test_fail
 }
 
 success
\ No newline at end of file
index 7b93dfc169b87b2d6fb55b254b8d93e1f78e42c1..1e995939952401c79c681ddca535b488d0c145ed 100644 (file)
@@ -11,7 +11,7 @@
 
 # We have a fudge factor of 1 second either way
 if ((&Tmp-Integer-0 < 3599) || (&Tmp-Integer-0 > 3601)) {
-        test_fail
+       test_fail
 }
 
 #
@@ -19,7 +19,7 @@ if ((&Tmp-Integer-0 < 3599) || (&Tmp-Integer-0 > 3601)) {
 #
 &Tmp-Integer-0 := "%{expr:%(nexttime:3d) - %(nexttime:1d)}"
 if ((&Tmp-Integer-0 < 172799) || (&Tmp-Integer-0 > 172801)) {
-        test_fail
+       test_fail
 }
 
 #
@@ -27,7 +27,7 @@ if ((&Tmp-Integer-0 < 172799) || (&Tmp-Integer-0 > 172801)) {
 #
 &Tmp-Integer-0 := "%{expr:%(nexttime:4w) - %(nexttime:2w)}"
 if ((&Tmp-Integer-0 < 1209599) || (&Tmp-Integer-0 > 1209601)) {
-        test_fail
+       test_fail
 }
 
 success
index f1c80178771b2f4cef5b148322dc45e05ed00d68..7ea82ffb9ae51cc7cbdffe19e21096cf61b4a7ef 100644 (file)
@@ -67,7 +67,7 @@ foreach &Tmp-Integer-1 {
 }
 
 if (&Tmp-Integer-0 != "%{Tmp-Integer-1[#]}") {
-    test_fail
+       test_fail
 }
 
 success
index ee59647328a835b95f5493ce281a83cd2dcce7d9..162a89dc0913c4ee6f197f7d32953ebb5069e416 100644 (file)
@@ -15,7 +15,7 @@ if (&User-Name == "bob") {
        #  Stop processing "authorize", and go to the next section.
        #
        return {        # ERROR
-              ok = 1
+               ok = 1
        }
 
        #
index 1403879a0335714ba168f111f3d8e95dd005ee6c..9b5c51f6e093806c9b7e6a0cf2d75f1def4f7f94 100644 (file)
@@ -2,5 +2,5 @@
 #  PRE: update unknown
 #
 update control {
-       This-Does-Not-Exist = 1         # ERROR
+       This-Does-Not-Exist = 1         # ERROR
 }
index 5618db8e288250a62cdf86affcdea284fe49f73b..ed7cbeb2bb2ba210c6500797051f044bac1af12e 100644 (file)
@@ -1,5 +1,5 @@
 update control {
-       &Password.Cleartext := 'hello'
+       &Password.Cleartext := 'hello'
 }
 
 success
index 9810a3b703bb8fcadbea9a9173b9efea3786060e..58ffdb0d378757cba77a80dfa2a6bd3334630b72 100644 (file)
@@ -3,9 +3,9 @@
 #
 
 update request {
-       &Class := 0x01020304
-       &Class += 0x05060708
-       &Class += 0x090a0b0c
+       &Class := 0x01020304
+       &Class += 0x05060708
+       &Class += 0x090a0b0c
 }
 
 
index 4aeb653a9da28492c102612d224f2282796210ab..5484f7e0cf58768d8fcb5546ec7a91d44c85bc6d 100644 (file)
@@ -19,8 +19,8 @@ update {
 
 # All attributes should now of been removed
 if ((&Tmp-String-0 && (&Tmp-String-0 == 'foobarbaz')) || \
-    (&Tmp-Integer-0 && (&Tmp-Integer-0 == 123456789)) || \
-    (&Tmp-IP-Address-0 && (&Tmp-IP-Address-0 == 192.0.2.1))) {
+       (&Tmp-Integer-0 && (&Tmp-Integer-0 == 123456789)) || \
+       (&Tmp-IP-Address-0 && (&Tmp-IP-Address-0 == 192.0.2.1))) {
        test_fail
 }
 
index 6d8f1fb215acdb35c144751df5a69c9257c842be..4ff2f8b9be4f7ce3f9881ea4eed13fbe6605ef49 100644 (file)
@@ -6,5 +6,5 @@
 #  Malformed expansion should be a parse error.
 #
 update request {
-       &Tmp-String-0 = `/bin/sh -c %{User-Name`   # ERROR
+       &Tmp-String-0 = `/bin/sh -c %{User-Name`        # ERROR
 }
index 41852a64fbef0fc3898288cf3699ccf523b0bcc7..c76d11f0fac3e41aa6a6fb5f0f7eb8611208f915 100644 (file)
@@ -2,12 +2,12 @@
 #  PRE: update
 #
 update reply {
-       &Tmp-String-0 := "foo"
+       &Tmp-String-0 := "foo"
 
-       #
-       #  This is a string, so it's NOT allowed.
-       #
-       &Tmp-String-1 := {
+       #
+       #  This is a string, so it's NOT allowed.
+       #
+       &Tmp-String-1 := {
                Tmp-String-2 := "1.0" # ERROR
-       }
+       }
 }
index c07883c153beddb299c89fba78d145f090b49993..bf050f3e8b6b02304f25ba29d2985dcd382cbc07 100644 (file)
@@ -22,10 +22,10 @@ debug_request
 
 # Only the 1st, 2nd, 3rd and 5th Tmp-IP-Address attributes should still be in the list
 if (("%{Tmp-IP-Address-0[0]}" != '192.0.2.1') || \
-    ("%{Tmp-IP-Address-0[1]}" != '192.0.2.2') || \
-    ("%{Tmp-IP-Address-0[2]}" != '192.0.2.3') || \
-    ("%{Tmp-IP-Address-0[3]}" != '192.0.2.4') || \
-    ("%{Tmp-IP-Address-0[4]}" != '')) {
+       ("%{Tmp-IP-Address-0[1]}" != '192.0.2.2') || \
+       ("%{Tmp-IP-Address-0[2]}" != '192.0.2.3') || \
+       ("%{Tmp-IP-Address-0[3]}" != '192.0.2.4') || \
+       ("%{Tmp-IP-Address-0[4]}" != '')) {
        test_fail
 }
 
@@ -36,10 +36,10 @@ update request {
 
 # Should be the same as the previous result
 if (("%{Tmp-IP-Address-0[0]}" != '192.0.2.1') || \
-    ("%{Tmp-IP-Address-0[1]}" != '192.0.2.2') || \
-    ("%{Tmp-IP-Address-0[2]}" != '192.0.2.3') || \
-    ("%{Tmp-IP-Address-0[3]}" != '192.0.2.4') || \
-    ("%{Tmp-IP-Address-0[4]}" != '')) {
+       ("%{Tmp-IP-Address-0[1]}" != '192.0.2.2') || \
+       ("%{Tmp-IP-Address-0[2]}" != '192.0.2.3') || \
+       ("%{Tmp-IP-Address-0[3]}" != '192.0.2.4') || \
+       ("%{Tmp-IP-Address-0[4]}" != '')) {
        test_fail
 }
 
@@ -50,9 +50,9 @@ update request {
 
 # IP address at index 0 should be removed
 if (("%{Tmp-IP-Address-0[0]}" != '192.0.2.2') || \
-    ("%{Tmp-IP-Address-0[1]}" != '192.0.2.3') || \
-    ("%{Tmp-IP-Address-0[2]}" != '192.0.2.4') || \
-    ("%{Tmp-IP-Address-0[3]}" != '')) {
+       ("%{Tmp-IP-Address-0[1]}" != '192.0.2.3') || \
+       ("%{Tmp-IP-Address-0[2]}" != '192.0.2.4') || \
+       ("%{Tmp-IP-Address-0[3]}" != '')) {
        test_fail
 }
 
@@ -63,9 +63,9 @@ update request {
 
 # Should be the same as the previous result
 if (("%{Tmp-IP-Address-0[0]}" != '192.0.2.2') || \
-    ("%{Tmp-IP-Address-0[1]}" != '192.0.2.3') || \
-    ("%{Tmp-IP-Address-0[2]}" != '192.0.2.4') || \
-    ("%{Tmp-IP-Address-0[3]}" != '')) {
+       ("%{Tmp-IP-Address-0[1]}" != '192.0.2.3') || \
+       ("%{Tmp-IP-Address-0[2]}" != '192.0.2.4') || \
+       ("%{Tmp-IP-Address-0[3]}" != '')) {
        test_fail
 }
 
index 4aeb653a9da28492c102612d224f2282796210ab..5484f7e0cf58768d8fcb5546ec7a91d44c85bc6d 100644 (file)
@@ -19,8 +19,8 @@ update {
 
 # All attributes should now of been removed
 if ((&Tmp-String-0 && (&Tmp-String-0 == 'foobarbaz')) || \
-    (&Tmp-Integer-0 && (&Tmp-Integer-0 == 123456789)) || \
-    (&Tmp-IP-Address-0 && (&Tmp-IP-Address-0 == 192.0.2.1))) {
+       (&Tmp-Integer-0 && (&Tmp-Integer-0 == 123456789)) || \
+       (&Tmp-IP-Address-0 && (&Tmp-IP-Address-0 == 192.0.2.1))) {
        test_fail
 }
 
index 65813d0e78f5e32aad34f49dea89f11b0842a435..a24b5de2ce5068b1c4438097838ce1b69e36aafa 100644 (file)
@@ -14,9 +14,9 @@ update {
 }
 
 if (("%{Tmp-IP-Address-0[0]}" != 192.0.2.1) || \
-    ("%{Tmp-IP-Address-0[1]}" != 192.0.2.2) || \
-    ("%{Tmp-IP-Address-0[2]}" != 192.0.2.3) || \
-    ("%{Tmp-IP-Address-0[3]}" != 192.0.2.4)) {
+       ("%{Tmp-IP-Address-0[1]}" != 192.0.2.2) || \
+       ("%{Tmp-IP-Address-0[2]}" != 192.0.2.3) || \
+       ("%{Tmp-IP-Address-0[3]}" != 192.0.2.4)) {
        test_fail
 }
 
@@ -27,9 +27,9 @@ update {
 
 # Only the 2nd, 3rd and 4th Tmp-IP-Address attributes should still be in the list
 if (("%{Tmp-IP-Address-0[0]}" != '192.0.2.2') || \
-    ("%{Tmp-IP-Address-0[1]}" != '192.0.2.3') || \
-    ("%{Tmp-IP-Address-0[2]}" != '192.0.2.4') || \
-    ("%{Tmp-IP-Address-0[3]}" != '')) {
+       ("%{Tmp-IP-Address-0[1]}" != '192.0.2.3') || \
+       ("%{Tmp-IP-Address-0[2]}" != '192.0.2.4') || \
+       ("%{Tmp-IP-Address-0[3]}" != '')) {
        test_fail
 }
 
@@ -40,8 +40,8 @@ update {
 
 # Only the 1st, and 3rd Tmp-IP-Address attributes should still be in the list
 if (("%{Tmp-IP-Address-0[0]}" != '192.0.2.2') || \
-    ("%{Tmp-IP-Address-0[1]}" != '192.0.2.4') || \
-    ("%{Tmp-IP-Address-0[2]}" != '')) {
+       ("%{Tmp-IP-Address-0[1]}" != '192.0.2.4') || \
+       ("%{Tmp-IP-Address-0[2]}" != '')) {
        test_fail
 }
 
@@ -52,8 +52,8 @@ update {
 
 # Only the 1st, and 3rd Tmp-IP-Address attributes should still be in the list
 if (("%{Tmp-IP-Address-0[0]}" != '192.0.2.2') || \
-    ("%{Tmp-IP-Address-0[1]}" != '192.0.2.4') || \
-    ("%{Tmp-IP-Address-0[2]}" != '')) {
+       ("%{Tmp-IP-Address-0[1]}" != '192.0.2.4') || \
+       ("%{Tmp-IP-Address-0[2]}" != '')) {
        test_fail
 }
 
@@ -69,7 +69,7 @@ update {
 
 # Only the 1st, and 3rd Tmp-IP-Address attributes should still be in the list
 if (("%{Tmp-IP-Address-0[0]}" != '192.0.2.2') || \
-    ("%{Tmp-IP-Address-0[1]}" != '')) {
+       ("%{Tmp-IP-Address-0[1]}" != '')) {
        test_fail
 }
 
index 2fa7e4ed4cdc3da3e0d0649f0653859bfe73f81d..45ab1a41c971295027888281b37c2ef98b1c713f 100644 (file)
@@ -4,13 +4,13 @@
 
 &Tmp-String-0 := "%(config:modules.test.boolean)"
 if (&Tmp-String-0 != "no") {
-        test_fail
+       test_fail
 }
 
 &Tmp-String-0 := "test"
 &Tmp-Integer-0 := "%(config:modules.%{Tmp-String-0}.integer)"
 if (&Tmp-Integer-0 != 1) {
-        test_fail
+       test_fail
 }
 
 success
\ No newline at end of file
index 79d173463ecf812435dd8e7eb09a008589a3167e..e4c218cbeb3d5e54ff20ed95607a595df319cace 100644 (file)
@@ -4,22 +4,22 @@
 
 &Tmp-Octets-0 := 0x520d0103abcdef0206010203040506
 if ("%(decode.dhcpv4:%{Tmp-Octets-0})" != 2) {
-        test_fail
+       test_fail
 }
 
 debug_request
 
 if ( &Relay-Agent-Information.Circuit-Id != 0xabcdef ) {
-        test_fail
+       test_fail
 }
 
 if ( &Relay-Agent-Information.Remote-Id != 0x010203040506 ) {
-        test_fail
+       test_fail
 }
 
 &Tmp-Octets-1 := "%(encode.dhcpv4:&request[*])"
 if ( &Tmp-Octets-1 != 0x520d0103abcdef0206010203040506 ) {
-        test_fail
+       test_fail
 }
 
 debug_control
index 055cd240242ed369b750e1e940220f8c1b375b1b..f203806e03e9572e2e8a57f54c3772c7fd680836 100644 (file)
@@ -1,8 +1,8 @@
-update control {   
+update control {       
        &Tmp-String-0 = "foo"
 }
 
-update control {   
+update control {       
        &Tmp-String-1 := `/bin/echo hello 1234:%{control.Tmp-String-0} world`
 }
 
@@ -10,7 +10,7 @@ if (&control.Tmp-String-1 != "hello 1234:foo world") {
        test_fail
 }
 
-update control {   
+update control {       
        &Tmp-String-1 := `/bin/echo hello %{control.Tmp-String-0}:1234 world`
 }
 
index 1194ed2b252240fa0d43e432828ef545b793cb0d..65140e72b2b17d64086afc78e20767bff045bcda 100644 (file)
@@ -2,21 +2,21 @@
 # PRE: update
 #
 update request {
-       &Tmp-String-0        := '9870'
-       &Tmp-String-1        := '98709870'
-       &Tmp-String-2        := '184467440737095516157'
-       &Tmp-Octets-0        := 0x39383731
-       &Tmp-Octets-1        := 0x3938373139383731
-       &Tmp-Octets-2        := 0x393837313938373139383731
-       &Tmp-IP-Address-0    := 57.56.55.50
-       &Tmp-Date-0          := 959985459
-       &Tmp-Integer-0       := 959985460
-       &Tmp-Cast-IfId       := '0000:0000:3938:3737'
-       &Tmp-Cast-IPv6Addr   := '::3938:3738'
+       &Tmp-String-0   := '9870'
+       &Tmp-String-1   := '98709870'
+       &Tmp-String-2   := '184467440737095516157'
+       &Tmp-Octets-0   := 0x39383731
+       &Tmp-Octets-1   := 0x3938373139383731
+       &Tmp-Octets-2   := 0x393837313938373139383731
+       &Tmp-IP-Address-0       := 57.56.55.50
+       &Tmp-Date-0       := 959985459
+       &Tmp-Integer-0  := 959985460
+       &Tmp-Cast-IfId  := '0000:0000:3938:3737'
+       &Tmp-Cast-IPv6Addr      := '::3938:3738'
        &Tmp-Cast-IPv6Prefix := '::3938:3739/128'
-       &Tmp-Cast-Byte       := 58
-       &Tmp-Cast-Short      := 14139
-       &Tmp-Cast-Ether      := 00:00:39:38:37:3c
+       &Tmp-Cast-Byte  := 58
+       &Tmp-Cast-Short := 14139
+       &Tmp-Cast-Ether := 00:00:39:38:37:3c
        &Tmp-Cast-Integer64  := 1152921505566832445
        &Tmp-Cast-IPv4Prefix := 57.56.55.62/32
 }
@@ -79,12 +79,12 @@ if ("%(integer:%{Tmp-Octets-2})") {
 }
 
 update request {
-       &Tmp-String-2        := "%(integer:%{Tmp-IP-Address-0})"
-       &Tmp-String-3        := "%(integer:%{Tmp-Date-0})"
-       &Tmp-String-4        := "%(integer:%{Tmp-Integer-0})"
-       &Tmp-String-6        := "%(integer:%{Tmp-Cast-Ifid})"
-       &Tmp-String-7        := "%(integer:%{Tmp-Cast-IPv6Addr})"
-       &Tmp-String-8        := "%(integer:%{Tmp-Cast-IPv6Prefix})"
+       &Tmp-String-2   := "%(integer:%{Tmp-IP-Address-0})"
+       &Tmp-String-3   := "%(integer:%{Tmp-Date-0})"
+       &Tmp-String-4   := "%(integer:%{Tmp-Integer-0})"
+       &Tmp-String-6   := "%(integer:%{Tmp-Cast-Ifid})"
+       &Tmp-String-7   := "%(integer:%{Tmp-Cast-IPv6Addr})"
+       &Tmp-String-8   := "%(integer:%{Tmp-Cast-IPv6Prefix})"
 }
 
 # IP Address
@@ -121,11 +121,11 @@ if (&Tmp-String-8 != '959985465') {
        test_fail
 }
 update request {
-       &Tmp-String-0        := "%(integer:%{Tmp-Cast-Byte})"
-       &Tmp-String-1        := "%(integer:%{Tmp-Cast-Short})"
-       &Tmp-uint64-2     := "%(integer:%{Tmp-Cast-Ether})"
-       &Tmp-String-3        := "%(integer:%{Tmp-Cast-Integer64})"
-       &Tmp-String-4        := "%(integer:%{Tmp-Cast-IPv4Prefix})"
+       &Tmp-String-0   := "%(integer:%{Tmp-Cast-Byte})"
+       &Tmp-String-1   := "%(integer:%{Tmp-Cast-Short})"
+       &Tmp-uint64-2   := "%(integer:%{Tmp-Cast-Ether})"
+       &Tmp-String-3   := "%(integer:%{Tmp-Cast-Integer64})"
+       &Tmp-String-4   := "%(integer:%{Tmp-Cast-IPv4Prefix})"
 }
 
 # byte
index d43977ce9faff928fb5e0126c190c35e337e3528..50f7bcfc78d64ddb05387401838db6d470c6b9fb 100644 (file)
@@ -6,26 +6,26 @@
 #
 
 update request {
-        &Tmp-String-0 := "%(interpreter:.filename)"
-        &Tmp-Integer-0 := "%(interpreter:.line)"
-        &Tmp-String-1 := "%(interpreter:.name)"
-        &Tmp-String-2 := "%(interpreter:.type)"
+       &Tmp-String-0 := "%(interpreter:.filename)"
+       &Tmp-Integer-0 := "%(interpreter:.line)"
+       &Tmp-String-1 := "%(interpreter:.name)"
+       &Tmp-String-2 := "%(interpreter:.type)"
 }
 
 if (&Tmp-String-0 != "src/tests/keywords/xlat-interpreter") {
-        test_fail
+       test_fail
 }
 
 if (&Tmp-String-1 != "request") {
-        test_fail
+       test_fail
 }
 
 if (&Tmp-String-2 != "update") {
-        test_fail
+       test_fail
 }
 
 if (&Tmp-Integer-0 != 8) {
-        test_fail
+       test_fail
 }
 
 success
index 7e85dff655498e347e1f62048814b1768a245da7..b43f3ca9ba3e2d3e3ffaaccb3ae30b7746c46c67 100644 (file)
@@ -3,83 +3,83 @@
 #
 
 update control {
-        &Tmp-String-0 := %(soh:OS)
+       &Tmp-String-0 := %(soh:OS)
 }
 
 # SoH-Supported not set - should be no response
 if ("%{control.Tmp-String-0}" != "") {
-        test_fail
+       test_fail
 }
 
 update request {
-        &SoH-Supported := yes
-        &SoH-MS-Machine-OS-release := 0
-        &SoH-MS-Machine-OS-build := 6001
-        &SoH-MS-Machine-SP-version := 1
-        &SoH-MS-Machine-SP-release := 0
+       &SoH-Supported := yes
+       &SoH-MS-Machine-OS-release := 0
+       &SoH-MS-Machine-OS-build := 6001
+       &SoH-MS-Machine-SP-version := 1
+       &SoH-MS-Machine-SP-release := 0
 }
 
 update control {
-        &Tmp-String-0 := %(soh:OS)
+       &Tmp-String-0 := %(soh:OS)
 }
 
 # SoH-MS-Machine-OS-vendor not set - should be no response
 if ("%{control.Tmp-String-0}" != "") {
-        test_fail
+       test_fail
 }
 
 update request {
-        &SoH-Supported := yes
-        &SoH-MS-Machine-OS-vendor := Microsoft
+       &SoH-Supported := yes
+       &SoH-MS-Machine-OS-vendor := Microsoft
 }
 
 update control {
-        &Tmp-String-0 := %(soh:OS)
+       &Tmp-String-0 := %(soh:OS)
 }
 
 # OS version not set
 if ("%{control.Tmp-String-0}" != "Windows unknown") {
-        test_fail
+       test_fail
 }
 
 update request {
-        &SoH-MS-Machine-OS-version := 6
+       &SoH-MS-Machine-OS-version := 6
 }
 
 update control {
-        &Tmp-String-0 := %(soh:OS)
+       &Tmp-String-0 := %(soh:OS)
 }
 
 # Complete set of data should match a real version of Windows
 if ("%{control.Tmp-String-0}" != "Windows Vista / Server 2008 6.0.6001 sp 1.0" ) {
-        test_fail
+       test_fail
 }
 
 update request {
-        &SoH-MS-Machine-OS-release := 5
+       &SoH-MS-Machine-OS-release := 5
 }
 
 update control {
-        &Tmp-String-0 := %(soh:OS)
+       &Tmp-String-0 := %(soh:OS)
 }
 
 # Version and Release combination that does not exist
 if ("%{control.Tmp-String-0}" != "Windows Other 6.5.6001 sp 1.0") {
-        test_fail
+       test_fail
 }
 
 update request {
-        &SoH-MS-Machine-OS-version := 8
-        &SoH-MS-Machine-OS-release := 0
+       &SoH-MS-Machine-OS-version := 8
+       &SoH-MS-Machine-OS-release := 0
 }
 
 update control {
-        &Tmp-String-0 := %(soh:OS)
+       &Tmp-String-0 := %(soh:OS)
 }
 
 # Version that does not exist
 if ("%{control.Tmp-String-0}" != "Windows Other 8.0.6001 sp 1.0") {
-        test_fail
+       test_fail
 }
 
 debug_control