2014-07-24 06:55:44 -04:00
|
|
|
# Makefile for `wget' utility
|
2015-03-09 11:32:01 -04:00
|
|
|
# Copyright (C) 2013, 2015 Free Software Foundation, Inc.
|
2014-07-24 06:55:44 -04:00
|
|
|
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with Wget. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
# Additional permission under GNU GPL version 3 section 7
|
|
|
|
|
|
|
|
# If you modify this program, or any covered work, by linking or
|
|
|
|
# combining it with the OpenSSL project's OpenSSL library (or a
|
|
|
|
# modified version of that library), containing parts covered by the
|
|
|
|
# terms of the OpenSSL or SSLeay licenses, the Free Software Foundation
|
|
|
|
# grants you additional permission to convey the resulting work.
|
|
|
|
# Corresponding Source for a non-source form of such a combination
|
|
|
|
# shall include the source code for the parts of OpenSSL used as well
|
|
|
|
# as that of the covered work.
|
|
|
|
|
|
|
|
|
2015-06-15 06:13:46 -04:00
|
|
|
if METALINK_IS_ENABLED
|
2015-06-19 08:31:16 -04:00
|
|
|
METALINK_TESTS = Test-metalink-xml.py \
|
|
|
|
Test-metalink-http.py
|
2015-06-15 06:13:46 -04:00
|
|
|
else
|
|
|
|
METALINK_TESTS =
|
|
|
|
endif
|
|
|
|
|
2014-07-24 06:55:44 -04:00
|
|
|
AUTOMAKE_OPTIONS = parallel-tests
|
2014-10-08 05:03:45 -04:00
|
|
|
AM_TESTS_ENVIRONMENT = export WGETRC=/dev/null; MAKE_CHECK=True; export MAKE_CHECK;\
|
|
|
|
export PYTHONPATH=$$PYTHONPATH:$(srcdir); export VALGRIND_TESTS="@VALGRIND_TESTS@";
|
2015-07-14 01:54:03 -04:00
|
|
|
|
2015-12-04 09:49:18 -05:00
|
|
|
if WITH_SSL
|
|
|
|
AM_TESTS_ENVIRONMENT += export SSL_TESTS=1;
|
|
|
|
endif
|
|
|
|
|
2014-11-05 15:35:13 -05:00
|
|
|
if HAVE_PYTHON3
|
2015-01-30 08:13:31 -05:00
|
|
|
TESTS = Test-auth-basic-fail.py \
|
|
|
|
Test-auth-basic.py \
|
|
|
|
Test-auth-both.py \
|
|
|
|
Test-auth-digest.py \
|
|
|
|
Test-auth-no-challenge.py \
|
|
|
|
Test-auth-no-challenge-url.py \
|
|
|
|
Test-auth-retcode.py \
|
|
|
|
Test-auth-with-content-disposition.py \
|
|
|
|
Test-c-full.py \
|
|
|
|
Test-Content-disposition-2.py \
|
|
|
|
Test-Content-disposition.py \
|
|
|
|
Test--convert-links--content-on-error.py \
|
|
|
|
Test-cookie-401.py \
|
|
|
|
Test-cookie-domain-mismatch.py \
|
|
|
|
Test-cookie-expires.py \
|
|
|
|
Test-cookie.py \
|
|
|
|
Test-Head.py \
|
Enhancements in testsuite engine + new HSTS test.
* testenv/Makefile.am: added new test 'Test-hsts.py'.
* testenv/Test-hsts.py: new test for HSTS.
* testenv/conf/domains.py: new hook to override domain list.
* testenv/test/base_test.py: (__init__): new optional parameter
for tests 'req_protocols'.
(get_domain_addr): set the instance variables 'addr' and 'port'.
Return address as an array (domain, port) instead of string.
(gen_cmd_line): take into account domain and port.
* testenv/test/http_test.py (__init__): new optional parameter
'req_protocols'.
(setup): new function. Call to server_setup() decoupled from
begin() and moved here.
(begin): call to superclass to maintain backward compatibility.
Removed call to server_setup().
This patch adds a new parameter to the test suite called 'req_protocols',
and a new function called 'setup'. The ability for tests to be able to set some
extra parameters such as the actual requested protocols (with 'req_protocols')
became obvious when support for HSTS was added to Wget, where the requested URI
and the actual executed URI do not have to be the same. This new parameter is optional
and if not specified, the test suite behaves as before. Also, the new function 'setup'
is provided as a means to start the test HTTP server, but not launch the test yet
(this is done when calling 'begin', as usual), in case we want to query the address
and port in which the test server listens. If 'setup' is not called, it is automatically
invoked when calling 'begin'. With these measures, we preserve backward-compatibility with
existing tests.
2015-07-05 14:04:42 -04:00
|
|
|
Test--https.py \
|
|
|
|
Test--https-crl.py \
|
2015-12-04 09:49:18 -05:00
|
|
|
Test-hsts.py \
|
2015-01-30 08:13:31 -05:00
|
|
|
Test-O.py \
|
|
|
|
Test-Post.py \
|
|
|
|
Test-504.py \
|
|
|
|
Test--spider-r.py \
|
2015-08-06 17:58:30 -04:00
|
|
|
Test--rejected-log.py \
|
2015-04-20 17:16:18 -04:00
|
|
|
Test-redirect-crash.py \
|
2015-05-07 12:45:10 -04:00
|
|
|
Test-reserved-chars.py \
|
2015-07-14 01:54:03 -04:00
|
|
|
Test-condget.py \
|
2015-06-15 06:13:46 -04:00
|
|
|
$(METALINK_TESTS)
|
2014-07-24 06:55:44 -04:00
|
|
|
|
2014-11-05 15:35:13 -05:00
|
|
|
endif
|
2013-10-13 18:23:41 -04:00
|
|
|
|
2015-07-14 01:54:03 -04:00
|
|
|
EXTRA_DIST = certs conf exc misc server test README $(TESTS)
|
2013-10-06 13:33:19 -04:00
|
|
|
|
2014-10-08 07:17:21 -04:00
|
|
|
TEST_EXTENSIONS = .py
|
|
|
|
PY_LOG_COMPILER = python3
|
|
|
|
AM_PY_LOG_FLAGS = -O
|