1# Makefile for `wget' utility
2# Copyright (C) 2013, 2015, 2018-2021 Free Software Foundation, Inc.
3
4# This program is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; either version 3 of the License, or
7# (at your option) any later version.
8
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12# GNU General Public License for more details.
13
14# You should have received a copy of the GNU General Public License
15# along with Wget.  If not, see <http://www.gnu.org/licenses/>.
16
17# Additional permission under GNU GPL version 3 section 7
18
19# If you modify this program, or any covered work, by linking or
20# combining it with the OpenSSL project's OpenSSL library (or a
21# modified version of that library), containing parts covered by the
22# terms of the OpenSSL or SSLeay licenses, the Free Software Foundation
23# grants you additional permission to convey the resulting work.
24# Corresponding Source for a non-source form of such a combination
25# shall include the source code for the parts of OpenSSL used as well
26# as that of the covered work.
27
28DEFAULT_TESTS = \
29  Test-504.py                                     \
30  Test-416.py                                     \
31  Test-auth-basic-fail.py                         \
32  Test-auth-basic.py                              \
33  Test-auth-basic-netrc.py                        \
34  Test-auth-basic-netrc-user-given.py             \
35  Test-auth-basic-netrc-pass-given.py             \
36  Test-auth-basic-no-netrc-fail.py                \
37  Test-auth-both.py                               \
38  Test-auth-digest.py                             \
39  Test-auth-no-challenge.py                       \
40  Test-auth-no-challenge-url.py                   \
41  Test-auth-retcode.py                            \
42  Test-auth-with-content-disposition.py           \
43  Test-c-full.py                                  \
44  Test-condget.py                                 \
45  Test-Content-disposition-2.py                   \
46  Test-Content-disposition.py                     \
47  Test--convert-links--content-on-error.py        \
48  Test-cookie-401.py                              \
49  Test-cookie-domain-mismatch.py                  \
50  Test-cookie-expires.py                          \
51  Test-cookie.py                                  \
52  Test-Head.py                                    \
53  Test-hsts.py                                    \
54  Test--https.py                                  \
55  Test--https-crl.py                              \
56  Test-missing-scheme-retval.py                   \
57  Test-O.py                                       \
58  Test-pinnedpubkey-der-https.py                  \
59  Test-pinnedpubkey-der-no-check-https.py         \
60  Test-pinnedpubkey-hash-https.py                 \
61  Test-pinnedpubkey-hash-no-check-fail-https.py   \
62  Test-pinnedpubkey-pem-fail-https.py             \
63  Test-pinnedpubkey-pem-https.py                  \
64  Test-Post.py                                    \
65  Test-recursive-basic.py                         \
66  Test-recursive-include.py                       \
67  Test-recursive-redirect.py                      \
68  Test-redirect.py                                \
69  Test-redirect-crash.py                          \
70  Test--rejected-log.py                           \
71  Test-reserved-chars.py                          \
72  Test--spider-r.py                               \
73  Test-no_proxy-env.py
74
75METALINK_TESTS = \
76  Test-metalink-http.py                        \
77  Test-metalink-http-quoted.py                 \
78  Test-metalink-http-baddigest.py              \
79  Test-metalink-http-xml.py                    \
80  Test-metalink-http-xml-trust.py              \
81  Test-metalink-http-xml-trust-name.py         \
82  Test-metalink-http-xml-type.py               \
83  Test-metalink-http-xml-type-trust.py         \
84  Test-metalink-http-xml-type-content.py       \
85  Test-metalink-http-xml-type-trust-content.py \
86  Test-metalink-xml.py                         \
87  Test-metalink-xml-continue.py                \
88  Test-metalink-xml-relpath.py                 \
89  Test-metalink-xml-abspath.py                 \
90  Test-metalink-xml-homepath.py                \
91  Test-metalink-xml-trust.py                   \
92  Test-metalink-xml-relpath-trust.py           \
93  Test-metalink-xml-abspath-trust.py           \
94  Test-metalink-xml-homepath-trust.py          \
95  Test-metalink-xml-prefix.py                  \
96  Test-metalink-xml-relprefix.py               \
97  Test-metalink-xml-absprefix.py               \
98  Test-metalink-xml-homeprefix.py              \
99  Test-metalink-xml-prefix-trust.py            \
100  Test-metalink-xml-relprefix-trust.py         \
101  Test-metalink-xml-absprefix-trust.py         \
102  Test-metalink-xml-homeprefix-trust.py        \
103  Test-metalink-xml-emptyprefix-trust.py       \
104  Test-metalink-xml-size.py                    \
105  Test-metalink-xml-nohash.py                  \
106  Test-metalink-xml-nourls.py                  \
107  Test-metalink-xml-urlbreak.py
108
109AUTOMAKE_OPTIONS = parallel-tests
110AM_TESTS_ENVIRONMENT = export WGETRC=/dev/null; MAKE_CHECK=True; export MAKE_CHECK;\
111 export PYTHONPATH=$$PYTHONPATH:$(srcdir); export VALGRIND_TESTS="@VALGRIND_TESTS@";
112
113if WITH_SSL
114  AM_TESTS_ENVIRONMENT += export SSL_TESTS=1;
115endif
116
117if HAVE_PYTHON3
118TESTS = $(DEFAULT_TESTS)
119if METALINK_IS_ENABLED
120  TESTS += $(METALINK_TESTS)
121endif
122endif
123
124EXTRA_DIST = certs conf exc misc server test README \
125             valgrind-suppressions-ssl \
126             $(DEFAULT_TESTS) $(METALINK_TESTS)
127
128TEST_EXTENSIONS = .py
129PY_LOG_COMPILER = python3
130AM_PY_LOG_FLAGS = -O
131