tests: add codeset-utf8 as a feature
To avoid having to use <precheck> for tests that require UTF-8 support. Closes #15039
This commit is contained in:
parent
5fb1b64fdd
commit
0b70b23ef4
@ -432,6 +432,7 @@ Features testable here are:
|
||||
- `brotli`
|
||||
- `c-ares`
|
||||
- `CharConv`
|
||||
- `codeset-utf8`. If the running codeset is UTF-8 capable.
|
||||
- `cookies`
|
||||
- `crypto`
|
||||
- `Debug`
|
||||
|
||||
@ -26,14 +26,12 @@ none
|
||||
IDN
|
||||
http
|
||||
proxy
|
||||
codeset-utf8
|
||||
</features>
|
||||
<setenv>
|
||||
LC_ALL=
|
||||
LC_CTYPE=en_US.UTF-8
|
||||
</setenv>
|
||||
<precheck>
|
||||
perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
|
||||
</precheck>
|
||||
<name>
|
||||
HTTP over proxy with malformatted IDN host name
|
||||
</name>
|
||||
|
||||
@ -24,19 +24,17 @@ none
|
||||
IDN
|
||||
http
|
||||
proxy
|
||||
codeset-utf8
|
||||
</features>
|
||||
<setenv>
|
||||
LC_ALL=
|
||||
LC_CTYPE=en_US.UTF-8
|
||||
</setenv>
|
||||
<precheck>
|
||||
perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
|
||||
</precheck>
|
||||
<name>
|
||||
HTTP over proxy with too long IDN host name
|
||||
</name>
|
||||
<command>
|
||||
http://too-long-IDN-name-cürl-rüles-la-la-la-dee-da-flooby-nooby.local/page/%TESTNUMBER -x %HOSTIP:%NOLISTENPORT
|
||||
http://too-long-IDN-name-cürl-rüles-la-la-la-dee-da-flooby-nooby.local/page/%TESTNUMBER -x %HOSTIP:%NOLISTENPORT
|
||||
</command>
|
||||
</client>
|
||||
|
||||
|
||||
@ -40,14 +40,12 @@ http
|
||||
</server>
|
||||
<features>
|
||||
IDN
|
||||
codeset-utf8
|
||||
</features>
|
||||
<setenv>
|
||||
LC_ALL=en_US.UTF-8
|
||||
LC_CTYPE=en_US.UTF-8
|
||||
</setenv>
|
||||
<precheck>
|
||||
perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
|
||||
</precheck>
|
||||
<name>
|
||||
Redirect following to UTF-8 IDN host name
|
||||
</name>
|
||||
|
||||
@ -30,14 +30,12 @@ http
|
||||
<features>
|
||||
IDN
|
||||
proxy
|
||||
codeset-utf8
|
||||
</features>
|
||||
<setenv>
|
||||
LC_ALL=en_US.UTF-8
|
||||
LC_CTYPE=en_US.UTF-8
|
||||
</setenv>
|
||||
<precheck>
|
||||
perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
|
||||
</precheck>
|
||||
<name>
|
||||
HTTP over proxy with IDN host name
|
||||
</name>
|
||||
|
||||
@ -40,14 +40,12 @@ http
|
||||
</server>
|
||||
<features>
|
||||
IDN
|
||||
codeset-utf8
|
||||
</features>
|
||||
<setenv>
|
||||
LC_ALL=en_US.UTF-8
|
||||
LC_CTYPE=en_US.UTF-8
|
||||
</setenv>
|
||||
<precheck>
|
||||
perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
|
||||
</precheck>
|
||||
<name>
|
||||
Connection reuse with IDN host name
|
||||
</name>
|
||||
|
||||
@ -41,14 +41,12 @@ http
|
||||
<features>
|
||||
IDN
|
||||
proxy
|
||||
codeset-utf8
|
||||
</features>
|
||||
<setenv>
|
||||
LC_ALL=en_US.UTF-8
|
||||
LC_CTYPE=en_US.UTF-8
|
||||
</setenv>
|
||||
<precheck>
|
||||
perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
|
||||
</precheck>
|
||||
<name>
|
||||
Connection reuse with IDN host name over HTTP proxy
|
||||
</name>
|
||||
|
||||
@ -21,14 +21,12 @@ smtp
|
||||
</server>
|
||||
<features>
|
||||
!win32
|
||||
codeset-utf8
|
||||
</features>
|
||||
<setenv>
|
||||
LC_ALL=en_US.UTF-8
|
||||
LC_CTYPE=en_US.UTF-8
|
||||
</setenv>
|
||||
<precheck>
|
||||
perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
|
||||
</precheck>
|
||||
<name>
|
||||
SMTP without SMTPUTF8 support - UTF-8 based sender (local part only)
|
||||
</name>
|
||||
|
||||
@ -18,14 +18,12 @@ smtp
|
||||
</server>
|
||||
<features>
|
||||
!win32
|
||||
codeset-utf8
|
||||
</features>
|
||||
<setenv>
|
||||
LC_ALL=en_US.UTF-8
|
||||
LC_CTYPE=en_US.UTF-8
|
||||
</setenv>
|
||||
<precheck>
|
||||
perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
|
||||
</precheck>
|
||||
<name>
|
||||
SMTP without SMTPUTF8 support - UTF-8 based recipient (local part only)
|
||||
</name>
|
||||
|
||||
@ -19,14 +19,12 @@ smtp
|
||||
</server>
|
||||
<features>
|
||||
!win32
|
||||
codeset-utf8
|
||||
</features>
|
||||
<setenv>
|
||||
LC_ALL=en_US.UTF-8
|
||||
LC_CTYPE=en_US.UTF-8
|
||||
</setenv>
|
||||
<precheck>
|
||||
perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
|
||||
</precheck>
|
||||
<name>
|
||||
SMTP VRFY without SMTPUTF8 support - UTF-8 based recipient (local part only)
|
||||
</name>
|
||||
|
||||
@ -19,14 +19,12 @@ smtp
|
||||
</server>
|
||||
<features>
|
||||
!win32
|
||||
codeset-utf8
|
||||
</features>
|
||||
<setenv>
|
||||
LC_ALL=en_US.UTF-8
|
||||
LC_CTYPE=en_US.UTF-8
|
||||
</setenv>
|
||||
<precheck>
|
||||
perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
|
||||
</precheck>
|
||||
<name>
|
||||
SMTP external VRFY without SMTPUTF8 support - UTF-8 based recipient (local part only)
|
||||
</name>
|
||||
|
||||
@ -22,14 +22,12 @@ smtp
|
||||
<features>
|
||||
!IDN
|
||||
!win32
|
||||
codeset-utf8
|
||||
</features>
|
||||
<setenv>
|
||||
LC_ALL=en_US.UTF-8
|
||||
LC_CTYPE=en_US.UTF-8
|
||||
</setenv>
|
||||
<precheck>
|
||||
perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
|
||||
</precheck>
|
||||
<name>
|
||||
SMTP without SMTPUTF8 support - UTF-8 based sender (host part only)
|
||||
</name>
|
||||
|
||||
@ -19,14 +19,12 @@ smtp
|
||||
<features>
|
||||
!IDN
|
||||
!win32
|
||||
codeset-utf8
|
||||
</features>
|
||||
<setenv>
|
||||
LC_ALL=en_US.UTF-8
|
||||
LC_CTYPE=en_US.UTF-8
|
||||
</setenv>
|
||||
<precheck>
|
||||
perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
|
||||
</precheck>
|
||||
<name>
|
||||
SMTP without SMTPUTF8 support - UTF-8 based recipient (host part only)
|
||||
</name>
|
||||
|
||||
@ -20,14 +20,12 @@ smtp
|
||||
<features>
|
||||
!IDN
|
||||
!win32
|
||||
codeset-utf8
|
||||
</features>
|
||||
<setenv>
|
||||
LC_ALL=en_US.UTF-8
|
||||
LC_CTYPE=en_US.UTF-8
|
||||
</setenv>
|
||||
<precheck>
|
||||
perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
|
||||
</precheck>
|
||||
<name>
|
||||
SMTP external VRFY without SMTPUTF8 support - UTF-8 based recipient (host part only)
|
||||
</name>
|
||||
|
||||
@ -20,14 +20,12 @@ smtp
|
||||
<features>
|
||||
IDN
|
||||
!win32
|
||||
codeset-utf8
|
||||
</features>
|
||||
<setenv>
|
||||
LC_ALL=en_US.UTF-8
|
||||
LC_CTYPE=en_US.UTF-8
|
||||
</setenv>
|
||||
<precheck>
|
||||
perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
|
||||
</precheck>
|
||||
<name>
|
||||
SMTP without SMTPUTF8 support - UTF-8 based sender (host part only)
|
||||
</name>
|
||||
|
||||
@ -20,14 +20,12 @@ smtp
|
||||
<features>
|
||||
IDN
|
||||
!win32
|
||||
codeset-utf8
|
||||
</features>
|
||||
<setenv>
|
||||
LC_ALL=en_US.UTF-8
|
||||
LC_CTYPE=en_US.UTF-8
|
||||
</setenv>
|
||||
<precheck>
|
||||
perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
|
||||
</precheck>
|
||||
<name>
|
||||
SMTP without SMTPUTF8 support (IDN Enabled) - UTF-8 based recipient (host part only)
|
||||
</name>
|
||||
|
||||
@ -21,14 +21,12 @@ smtp
|
||||
<features>
|
||||
IDN
|
||||
!win32
|
||||
codeset-utf8
|
||||
</features>
|
||||
<setenv>
|
||||
LC_ALL=en_US.UTF-8
|
||||
LC_CTYPE=en_US.UTF-8
|
||||
</setenv>
|
||||
<precheck>
|
||||
perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
|
||||
</precheck>
|
||||
<name>
|
||||
SMTP external VRFY without SMTPUTF8 support (IDN Enabled) - UTF-8 based recipient (host part only)
|
||||
</name>
|
||||
|
||||
@ -23,14 +23,12 @@ smtp
|
||||
<features>
|
||||
IDN
|
||||
!win32
|
||||
codeset-utf8
|
||||
</features>
|
||||
<setenv>
|
||||
LC_ALL=en_US.UTF-8
|
||||
LC_CTYPE=en_US.UTF-8
|
||||
</setenv>
|
||||
<precheck>
|
||||
perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
|
||||
</precheck>
|
||||
<name>
|
||||
SMTP with SMTPUTF8 support - UTF-8 based sender
|
||||
</name>
|
||||
|
||||
@ -23,14 +23,12 @@ smtp
|
||||
<features>
|
||||
IDN
|
||||
!win32
|
||||
codeset-utf8
|
||||
</features>
|
||||
<setenv>
|
||||
LC_ALL=en_US.UTF-8
|
||||
LC_CTYPE=en_US.UTF-8
|
||||
</setenv>
|
||||
<precheck>
|
||||
perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
|
||||
</precheck>
|
||||
<name>
|
||||
SMTP with SMTPUTF8 support - UTF-8 based recipient
|
||||
</name>
|
||||
|
||||
@ -27,14 +27,12 @@ smtp
|
||||
<features>
|
||||
IDN
|
||||
!win32
|
||||
codeset-utf8
|
||||
</features>
|
||||
<setenv>
|
||||
LC_ALL=en_US.UTF-8
|
||||
LC_CTYPE=en_US.UTF-8
|
||||
</setenv>
|
||||
<precheck>
|
||||
perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
|
||||
</precheck>
|
||||
<name>
|
||||
SMTP external VRFY with SMTPUTF8 support
|
||||
</name>
|
||||
|
||||
@ -24,14 +24,12 @@ smtp
|
||||
<features>
|
||||
IDN
|
||||
!win32
|
||||
codeset-utf8
|
||||
</features>
|
||||
<setenv>
|
||||
LC_ALL=en_US.UTF-8
|
||||
LC_CTYPE=en_US.UTF-8
|
||||
</setenv>
|
||||
<precheck>
|
||||
perl -MI18N::Langinfo=langinfo,CODESET -e 'die "Needs a UTF-8 locale" if (lc(langinfo(CODESET())) ne "utf-8");'
|
||||
</precheck>
|
||||
<name>
|
||||
SMTP VRFY with SMTPUTF8 support
|
||||
</name>
|
||||
|
||||
@ -83,6 +83,7 @@ BEGIN {
|
||||
|
||||
use Digest::MD5 qw(md5);
|
||||
use List::Util 'sum';
|
||||
use I18N::Langinfo qw(langinfo CODESET);
|
||||
|
||||
use pathhelp qw(
|
||||
exe_ext
|
||||
@ -825,6 +826,7 @@ sub checksystemfeatures {
|
||||
$feature{"large-time"} = 1;
|
||||
$feature{"sha512-256"} = 1;
|
||||
$feature{"local-http"} = servers::localhttp();
|
||||
$feature{"codeset-utf8"} = lc(langinfo(CODESET())) eq "utf-8";
|
||||
|
||||
# make each protocol an enabled "feature"
|
||||
for my $p (@protocols) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user