From: Daniel Stenberg Date: Fri, 11 Dec 2020 12:55:00 +0000 (+0100) Subject: tests: make --libcurl tests only test FTP options if ftp enabled X-Git-Tag: curl-7_75_0~258 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3a63c190bb8e8752905dfcfe988d940b88fa9c73;p=thirdparty%2Fcurl.git tests: make --libcurl tests only test FTP options if ftp enabled Adjust six --libcurl tests to only check the FTP option if FTP is actually present in the build. Fixes #6303 Closes #6305 --- diff --git a/tests/data/test1400 b/tests/data/test1400 index b7060eca58..04b2e0c951 100644 --- a/tests/data/test1400 +++ b/tests/data/test1400 @@ -73,7 +73,9 @@ int main(int argc, char *argv[]) curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped"); curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L); curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); +%if ftp curl_easy_setopt(hnd, CURLOPT_FTP_SKIP_PASV_IP, 1L); +%endif curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L); /* Here is a list of options the curl code used that cannot get generated diff --git a/tests/data/test1401 b/tests/data/test1401 index a2629683af..7c1620951b 100644 --- a/tests/data/test1401 +++ b/tests/data/test1401 @@ -87,7 +87,9 @@ int main(int argc, char *argv[]) curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L); curl_easy_setopt(hnd, CURLOPT_COOKIE, "chocolate=chip"); curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); +%if ftp curl_easy_setopt(hnd, CURLOPT_FTP_SKIP_PASV_IP, 1L); +%endif curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L); curl_easy_setopt(hnd, CURLOPT_PROTOCOLS, (long)CURLPROTO_FILE | (long)CURLPROTO_FTP | diff --git a/tests/data/test1402 b/tests/data/test1402 index 1bd55cb4e3..990d3f94e7 100644 --- a/tests/data/test1402 +++ b/tests/data/test1402 @@ -78,7 +78,9 @@ int main(int argc, char *argv[]) curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped"); curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L); curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); +%if ftp curl_easy_setopt(hnd, CURLOPT_FTP_SKIP_PASV_IP, 1L); +%endif curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L); /* Here is a list of options the curl code used that cannot get generated diff --git a/tests/data/test1403 b/tests/data/test1403 index a7c9fcca32..8f1eec4038 100644 --- a/tests/data/test1403 +++ b/tests/data/test1403 @@ -73,7 +73,9 @@ int main(int argc, char *argv[]) curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped"); curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L); curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); +%if ftp curl_easy_setopt(hnd, CURLOPT_FTP_SKIP_PASV_IP, 1L); +%endif curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L); /* Here is a list of options the curl code used that cannot get generated diff --git a/tests/data/test1404 b/tests/data/test1404 index 1d8e8cf777..400fb65c27 100644 --- a/tests/data/test1404 +++ b/tests/data/test1404 @@ -147,7 +147,9 @@ int main(int argc, char *argv[]) curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped"); curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L); curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L); +%if ftp curl_easy_setopt(hnd, CURLOPT_FTP_SKIP_PASV_IP, 1L); +%endif curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L); /* Here is a list of options the curl code used that cannot get generated diff --git a/tests/data/test1465 b/tests/data/test1465 index 4da25dc927..5a12b94e79 100644 Binary files a/tests/data/test1465 and b/tests/data/test1465 differ