Testsuite: munges for builds with varying numbers of lookup types
authorJeremy Harris <jgh146exb@wizmail.org>
Thu, 29 Dec 2022 23:03:14 +0000 (23:03 +0000)
committerJeremy Harris <jgh146exb@wizmail.org>
Thu, 29 Dec 2022 23:03:14 +0000 (23:03 +0000)
test/runtest
test/stderr/0414
test/stderr/0464

index 1c44e01be1e73a873842ab2c40b4cb8f448041f1..890e4def84bae79f45764aa433a47507b2e9e283 100755 (executable)
@@ -1335,6 +1335,9 @@ RESET_AFTER_EXTRA_LINE_READ:
 
     # Different builds will have different lookup types included
     s/^\s*search_type \K\d+ \((\w+)\) quoting -1 \(none\)$/NN ($1) quoting -1 (none)/;
+    # and different numbers of lookup types result in different type-code letters,
+    # so convert them all to "0"
+    s%(?<!lsearch)[^ ](?=TESTSUITE/aux-fixed/(?:0414.list[12]|0464.domains)$)%0%;
 
     # DISABLE_OCSP
     next if /in hosts_requ(est|ire)_ocsp\? (no|yes)/;
@@ -1370,6 +1373,8 @@ RESET_AFTER_EXTRA_LINE_READ:
     next if /^(ppppp )?setsockopt FASTOPEN: Network Error/;
 
     # DISABLE_TLS_RESUME
+    # TLS resumption is not always supported by the build
+    next if /in tls_resumption_hosts\?/;
     next if /RE '.outlook.com/;
 
     # Environment cleaning
@@ -1463,9 +1468,6 @@ RESET_AFTER_EXTRA_LINE_READ:
     # Not all builds include DMARC
     next if /^DMARC: no (dmarc_tld_file|sender_host_address)$/ ;
 
-    # TLS resumption is not always supported by the build
-    next if /in tls_resumption_hosts\?/;
-
     # Platform differences in errno strings
     s/  SMTP\(Operation timed out\)<</  SMTP(Connection timed out)<</;
 
index 995958670350e42afa0fab8c0cae7515faf1f693..f1eaccfa78c749a33a4c97d7a1f9877c7de46e69 100644 (file)
@@ -30,7 +30,7 @@ b.domain in "!+C"?
    ╎   search_find: file="TESTSUITE/aux-fixed/0414.list1"
    ╎     key="b.domain" partial=-1 affix=NULL starflags=0 opts=NULL
    ╎   LRU list:
-   ╎     <TESTSUITE/aux-fixed/0414.list1
+   ╎     0TESTSUITE/aux-fixed/0414.list1
    ╎     End
    ╎   internal_search_find: file="TESTSUITE/aux-fixed/0414.list1"
    ╎     type=lsearch key="b.domain" opts=NULL
@@ -48,8 +48,8 @@ b.domain in "!+C"?
    ╎   search_find: file="TESTSUITE/aux-fixed/0414.list2"
    ╎     key="b.domain" partial=-1 affix=NULL starflags=0 opts=NULL
    ╎   LRU list:
-   ╎     <TESTSUITE/aux-fixed/0414.list2
-   ╎     <TESTSUITE/aux-fixed/0414.list1
+   ╎     0TESTSUITE/aux-fixed/0414.list2
+   ╎     0TESTSUITE/aux-fixed/0414.list1
    ╎     End
    ╎   internal_search_find: file="TESTSUITE/aux-fixed/0414.list2"
    ╎     type=lsearch key="b.domain" opts=NULL
@@ -108,8 +108,8 @@ a.domain in "!+C"?
    ╎   search_find: file="TESTSUITE/aux-fixed/0414.list1"
    ╎     key="a.domain" partial=-1 affix=NULL starflags=0 opts=NULL
    ╎   LRU list:
-   ╎     <TESTSUITE/aux-fixed/0414.list1
-   ╎     <TESTSUITE/aux-fixed/0414.list2
+   ╎     0TESTSUITE/aux-fixed/0414.list1
+   ╎     0TESTSUITE/aux-fixed/0414.list2
    ╎     End
    ╎   internal_search_find: file="TESTSUITE/aux-fixed/0414.list1"
    ╎     type=lsearch key="a.domain" opts=NULL
@@ -138,8 +138,8 @@ a.domain in "+B"?
    ╎search_find: file="TESTSUITE/aux-fixed/0414.list2"
    ╎  key="a.domain" partial=-1 affix=NULL starflags=0 opts=NULL
    ╎LRU list:
-   ╎  <TESTSUITE/aux-fixed/0414.list2
-   ╎  <TESTSUITE/aux-fixed/0414.list1
+   ╎  0TESTSUITE/aux-fixed/0414.list2
+   ╎  0TESTSUITE/aux-fixed/0414.list1
    ╎  End
    ╎internal_search_find: file="TESTSUITE/aux-fixed/0414.list2"
    ╎  type=lsearch key="a.domain" opts=NULL
index d2c77446641a5a8179784e00b127e0cf68069efc..f18276074efbf5c22edb909171900a3847df4daa 100644 (file)
@@ -32,7 +32,7 @@ domain1 in "+special_domains"?
    ╎search_find: file="TESTSUITE/aux-fixed/0464.domains"
    ╎  key="domain1" partial=-1 affix=NULL starflags=0 opts=NULL
    ╎LRU list:
-   ╎  <TESTSUITE/aux-fixed/0464.domains
+   ╎  0TESTSUITE/aux-fixed/0464.domains
    ╎  End
    ╎internal_search_find: file="TESTSUITE/aux-fixed/0464.domains"
    ╎  type=lsearch key="domain1" opts=NULL
@@ -89,7 +89,7 @@ xxx.domain1 in "+special_domains"?
    ╎search_find: file="TESTSUITE/aux-fixed/0464.domains"
    ╎  key="xxx.domain1" partial=-1 affix=NULL starflags=0 opts=NULL
    ╎LRU list:
-   ╎  <TESTSUITE/aux-fixed/0464.domains
+   ╎  0TESTSUITE/aux-fixed/0464.domains
    ╎  End
    ╎internal_search_find: file="TESTSUITE/aux-fixed/0464.domains"
    ╎  type=lsearch key="xxx.domain1" opts=NULL
@@ -169,7 +169,7 @@ xxx.domain1 in "+special_domains"?
    ╎search_find: file="TESTSUITE/aux-fixed/0464.domains"
    ╎  key="xxx.domain1" partial=-1 affix=NULL starflags=0 opts=NULL
    ╎LRU list:
-   ╎  <TESTSUITE/aux-fixed/0464.domains
+   ╎  0TESTSUITE/aux-fixed/0464.domains
    ╎  End
    ╎internal_search_find: file="TESTSUITE/aux-fixed/0464.domains"
    ╎  type=lsearch key="xxx.domain1" opts=NULL