mirror of
https://github.com/curl/curl.git
synced 2026-08-24 16:03:37 +03:00
tests: make precheck for HTTP on 127.0.0.1 into a feature
It can now be required easily in <features> instead of having perl code in a <precheck>. Closes #15039
This commit is contained in:
parent
56183c1d6f
commit
7aa2b4e01f
25 changed files with 30 additions and 84 deletions
|
|
@ -26,6 +26,7 @@ MooMoo
|
|||
<features>
|
||||
SSL
|
||||
!Schannel
|
||||
local-http
|
||||
</features>
|
||||
<server>
|
||||
https Server-localhost-firstSAN-sv.pem
|
||||
|
|
@ -36,10 +37,6 @@ HTTPS GET to localhost, first subject alt name matches, CN does not match
|
|||
<command>
|
||||
--cacert %SRCDIR/certs/EdelCurlRoot-ca.crt https://localhost:%HTTPSPORT/%TESTNUMBER
|
||||
</command>
|
||||
# Ensure that we're running on localhost because we're checking the host name
|
||||
<precheck>
|
||||
perl -e "print 'Test requires default test server host' if ( '%HOSTIP' ne '127.0.0.1' );"
|
||||
</precheck>
|
||||
</client>
|
||||
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue