mirror of
https://gitlab.com/gnuwget/wget2.git
synced 2025-08-15 23:32:35 +00:00
Making failing tests work on Second Pass
* tests/test--https-enforce-soft3.c: * tests/test-bad-chunk.c: * tests/test-chunked.c: * tests/test-limit-rate.c: * tests/test-post-handshake-auth.c: Skipped for Second Pass * tests/test-i-https.c: Added '--no-ca-certificate' in options for expected failure for h2 * tests/test-idn-cmd.c: * tests/test-idn-meta.c: * tests/test-idn-robots.c: Dynamic port replacement for http/https proxies * tests/test-iri.c: * tests/test-parse-css.c: * tests/test-parse-html-css.c: Dynamic port replacement for hostname
This commit is contained in:

committed by
Tim Rühsen

parent
03acf17419
commit
38f577ebaa
@ -58,6 +58,7 @@ int main(void)
|
||||
WGET_TEST_HTTPS_REJECT_CONNECTIONS,
|
||||
WGET_TEST_FEATURE_MHD,
|
||||
WGET_TEST_FEATURE_TLS,
|
||||
WGET_TEST_SKIP_H2,
|
||||
0);
|
||||
|
||||
// wget2 downloads recursively from HTTPS though we give an http:// URL.
|
||||
|
@ -59,6 +59,7 @@ int main(void)
|
||||
wget_test_start_server(
|
||||
WGET_TEST_RESPONSE_URLS, &urls, countof(urls),
|
||||
WGET_TEST_FEATURE_MHD,
|
||||
WGET_TEST_SKIP_H2,
|
||||
0);
|
||||
|
||||
// test negative chunk size (32bit system only)
|
||||
|
@ -43,6 +43,7 @@ int main(void)
|
||||
wget_test_start_server(
|
||||
WGET_TEST_RESPONSE_URLS, &urls, countof(urls),
|
||||
WGET_TEST_FEATURE_MHD,
|
||||
WGET_TEST_SKIP_H2,
|
||||
0);
|
||||
|
||||
// test negative chunk size (32bit system only)
|
||||
|
@ -132,7 +132,7 @@ int main(void)
|
||||
// test-i-https failing due to unknown certificate
|
||||
wget_test(
|
||||
// WGET_TEST_KEEP_TMPFILES, 1,
|
||||
WGET_TEST_OPTIONS, "--tries=1 -i urls.txt",
|
||||
WGET_TEST_OPTIONS, "--tries=1 --no-ca-certificate -i urls.txt",
|
||||
WGET_TEST_REQUEST_URL, NULL,
|
||||
WGET_TEST_EXPECTED_ERROR_CODE, 5,
|
||||
WGET_TEST_EXISTING_FILES, &(wget_test_file_t []) {
|
||||
|
@ -60,8 +60,7 @@ int main(void)
|
||||
|
||||
// test-idn-cmd
|
||||
wget_snprintf(options, sizeof(options),
|
||||
"--iri -rH -e http_proxy=localhost:%d --local-encoding=EUC-JP " euc_jp_hostname,
|
||||
wget_test_get_http_server_port());
|
||||
"--iri -rH -e http_proxy=localhost:{{port}} -e https_proxy=localhost:{{sslport}} --local-encoding=EUC-JP " euc_jp_hostname);
|
||||
|
||||
wget_test(
|
||||
// WGET_TEST_KEEP_TMPFILES, 1,
|
||||
@ -77,8 +76,7 @@ int main(void)
|
||||
#ifndef _WIN32
|
||||
// test-idn-cmd
|
||||
wget_snprintf(options, sizeof(options),
|
||||
"--iri -rH -e http_proxy=localhost:%d --local-encoding=UTF-8 " utf8_hostname,
|
||||
wget_test_get_http_server_port());
|
||||
"--iri -rH -e http_proxy=localhost:{{port}} -e https_proxy=localhost:{{sslport}} --local-encoding=UTF-8 " utf8_hostname);
|
||||
|
||||
wget_test(
|
||||
// WGET_TEST_KEEP_TMPFILES, 1,
|
||||
|
@ -80,8 +80,7 @@ int main(void)
|
||||
|
||||
// test-idn-meta
|
||||
wget_snprintf(options, sizeof(options),
|
||||
"--iri -rH -e http_proxy=localhost:%d http://start-here.com/start.html",
|
||||
wget_test_get_http_server_port());
|
||||
"--iri -rH -e http_proxy=localhost:{{port}} -e https_proxy=localhost:{{sslport}} http://start-here.com/start.html");
|
||||
|
||||
wget_test(
|
||||
// WGET_TEST_KEEP_TMPFILES, 1,
|
||||
@ -111,9 +110,7 @@ int main(void)
|
||||
|
||||
// test-idn-meta with HTML5 meta charset
|
||||
wget_snprintf(options, sizeof(options),
|
||||
"--iri -rH -e http_proxy=localhost:%d http://start-here.com/start2.html",
|
||||
wget_test_get_http_server_port());
|
||||
|
||||
"--iri -rH -e http_proxy=localhost:{{port}} -e https_proxy=localhost:{{sslport}} http://start-here.com/start2.html");
|
||||
wget_test(
|
||||
// WGET_TEST_KEEP_TMPFILES, 1,
|
||||
WGET_TEST_OPTIONS, options,
|
||||
|
@ -74,8 +74,7 @@ int main(void)
|
||||
|
||||
// test-idn-robots
|
||||
wget_snprintf(options, sizeof(options),
|
||||
"--iri -e robots=on -rH -e http_proxy=localhost:%d --local-encoding=EUC-JP http://" euc_jp_hostname "/",
|
||||
wget_test_get_http_server_port());
|
||||
"--iri -e robots=on -rH -e http_proxy=localhost:{{port}} -e https_proxy=localhost:{{sslport}} --local-encoding=EUC-JP http://" euc_jp_hostname "/");
|
||||
|
||||
wget_test(
|
||||
// WGET_TEST_KEEP_TMPFILES, 1,
|
||||
@ -93,8 +92,7 @@ int main(void)
|
||||
#ifndef _WIN32
|
||||
// test-idn-robots-utf8
|
||||
wget_snprintf(options, sizeof(options),
|
||||
"--iri -e robots=on -rH -e http_proxy=localhost:%d --local-encoding=UTF-8 http://" utf8_hostname "/",
|
||||
wget_test_get_http_server_port());
|
||||
"--iri -e robots=on -rH -e http_proxy=localhost:{{port}} -e https_proxy=localhost:{{sslport}} --local-encoding=UTF-8 http://" utf8_hostname "/");
|
||||
|
||||
urls[0].body = "<a href=\"http://" utf8_hostname "/foo.txt\">The link</a>";
|
||||
urls[0].headers[0] = "Content-Type: text/html; charset=UTF-8";
|
||||
|
@ -139,8 +139,7 @@ int main(void)
|
||||
|
||||
// test-iri
|
||||
wget_snprintf(request_header, sizeof(request_header),
|
||||
"Referer: http://localhost:%d/p2_%%C3%%A9%%C3%%A9n.html",
|
||||
wget_test_get_http_server_port());
|
||||
"Referer: http://localhost:{{port}}/p2_%%C3%%A9%%C3%%A9n.html");
|
||||
urls[4].request_headers[0] = urls[7].request_headers[0] = request_header;
|
||||
|
||||
wget_test(
|
||||
|
@ -93,6 +93,7 @@ int main(void)
|
||||
wget_test_start_server(
|
||||
WGET_TEST_RESPONSE_URLS, &urls, countof(urls),
|
||||
WGET_TEST_FEATURE_MHD,
|
||||
WGET_TEST_SKIP_H2,
|
||||
0);
|
||||
|
||||
start_ms = wget_get_timemillis();
|
||||
|
@ -96,8 +96,7 @@ int main(void)
|
||||
|
||||
char options[128];
|
||||
wget_snprintf(options, sizeof(options),
|
||||
"--force-css --base http://localhost:%d -i main.css",
|
||||
wget_test_get_http_server_port());
|
||||
"--force-css --base http://localhost:{{port}} -i main.css");
|
||||
|
||||
// test--parse-css from file
|
||||
wget_test(
|
||||
|
@ -88,9 +88,7 @@ int main(void)
|
||||
|
||||
char options[128];
|
||||
wget_snprintf(options, sizeof(options),
|
||||
"--force-html --base http://localhost:%d -i page1.html",
|
||||
wget_test_get_http_server_port());
|
||||
|
||||
"--force-html --base http://localhost:{{port}} -i page1.html");
|
||||
|
||||
// test--parse-html-css from file
|
||||
wget_test(
|
||||
|
@ -55,6 +55,7 @@ int main(void)
|
||||
WGET_TEST_RESPONSE_URLS, &urls, countof(urls),
|
||||
WGET_TEST_FEATURE_MHD,
|
||||
WGET_TEST_FEATURE_TLS,
|
||||
WGET_TEST_SKIP_H2,
|
||||
0);
|
||||
|
||||
wget_test(
|
||||
|
Reference in New Issue
Block a user