Debian Codegraph @

tests/Makefile.am

raw
1 # Makefile for `wget' utility
2 # Copyright (C) 1995-2011, 2015, 2018-2024 Free Software Foundation,
3 # Inc.
4
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14
15 # You should have received a copy of the GNU General Public License
16 # along with Wget. If not, see <http://www.gnu.org/licenses/>.
17
18 # Additional permission under GNU GPL version 3 section 7
19
20 # If you modify this program, or any covered work, by linking or
21 # combining it with the OpenSSL project's OpenSSL library (or a
22 # modified version of that library), containing parts covered by the
23 # terms of the OpenSSL or SSLeay licenses, the Free Software Foundation
24 # grants you additional permission to convey the resulting work.
25 # Corresponding Source for a non-source form of such a combination
26 # shall include the source code for the parts of OpenSSL used as well
27 # as that of the covered work.
28
29 # see http://www.gnu.org/software/automake/manual/html_node/Parallel-Test-Harness.html#Parallel-Test-Harness
30
31 #
32 # Version: @VERSION@
33 #
34
35 ../src/wget$(EXEEXT):
36 cd ../src && $(MAKE) $(AM_MAKEFLAGS)
37
38 # Make libunittest "PHONY" so we're always sure we're up-to-date.
39 .PHONY: ../src/libunittest.a
40 ../src/libunittest.a:
41 cd ../src && $(MAKE) $(AM_MAKEFLAGS) libunittest.a
42
43 ../lib/libgnu.a:
44 cd ../lib && $(MAKE) $(AM_MAKEFLAGS)
45
46 PX_TESTS = \
47 Test-c-full.px \
48 Test-c-partial.px \
49 Test-c.px \
50 Test-c-shorter.px \
51 Test-cookies.px \
52 Test-cookies-401.px \
53 Test-E-k-K.px \
54 Test-E-k.px \
55 Test-ftp.px \
56 Test-ftp-dir.px \
57 Test-ftp-pasv-fail.px \
58 Test-ftp-bad-list.px \
59 Test-ftp-recursive.px \
60 Test-ftp-iri.px \
61 Test-ftp-iri-fallback.px \
62 Test-ftp-iri-recursive.px \
63 Test-ftp-iri-disabled.px \
64 Test-ftp-list-Multinet.px \
65 Test-ftp-list-Unknown.px \
66 Test-ftp-list-Unknown-a.px \
67 Test-ftp-list-Unknown-hidden.px \
68 Test-ftp-list-Unknown-list-a-fails.px \
69 Test-ftp-list-UNIX-hidden.px \
70 Test-ftp--start-pos.px \
71 Test-HTTP-Content-Disposition-1.px \
72 Test-HTTP-Content-Disposition-2.px \
73 Test-HTTP-Content-Disposition.px \
74 Test-i-ftp.px \
75 Test-i-http.px \
76 Test-idn-headers.px \
77 Test-idn-meta.px \
78 Test-idn-cmd.px \
79 Test-idn-cmd-utf8.px \
80 Test-idn-robots.px \
81 Test-idn-robots-utf8.px \
82 Test-iri.px \
83 Test-iri-percent.px \
84 Test-iri-disabled.px \
85 Test-iri-forced-remote.px \
86 Test-iri-list.px \
87 Test-meta-robots.px \
88 Test-N-current.px \
89 Test-N-HTTP-Content-Disposition.px \
90 Test-N--no-content-disposition.px \
91 Test-N--no-content-disposition-trivial.px \
92 Test-N-no-info.px \
93 Test--no-content-disposition.px \
94 Test--no-content-disposition-trivial.px \
95 Test-N-old.px \
96 Test-nonexisting-quiet.px \
97 Test-noop.px \
98 Test-np.px \
99 Test-N.px \
100 Test-N-smaller.px \
101 Test-O-HTTP-Content-Disposition.px \
102 Test-O-nc.px \
103 Test-O--no-content-disposition.px \
104 Test-O--no-content-disposition-trivial.px \
105 Test-O-nonexisting.px \
106 Test-O.px \
107 Test--post-file.px \
108 Test-proxied-https-auth.px \
109 Test-proxied-https-auth-keepalive.px \
110 Test-proxy-auth-basic.px \
111 Test-restrict-ascii.px \
112 Test-Restrict-Lowercase.px \
113 Test-Restrict-Uppercase.px \
114 Test-stdouterr.px \
115 Test--spider-fail.px \
116 Test--spider.px \
117 Test--spider-r-HTTP-Content-Disposition.px \
118 Test--spider-r--no-content-disposition.px \
119 Test--spider-r--no-content-disposition-trivial.px \
120 Test--spider-r.px \
121 Test--start-pos.px \
122 Test--start-pos--continue.px \
123 Test--httpsonly-r.px \
124 Test-204.px \
125 Test-ftp-pasv-not-supported.px \
126 Test-https-pfs.px \
127 Test-https-tlsv1.px \
128 Test-https-tlsv1x.px \
129 Test-https-selfsigned.px \
130 Test-https-weboftrust.px \
131 Test-https-clientcert.px \
132 Test-https-crl.px \
133 Test-https-badcerts.px
134
135 EXTRA_DIST = FTPServer.pm FTPTest.pm HTTPServer.pm HTTPTest.pm \
136 SSLTest.pm SSLServer.pm \
137 WgetTests.pm WgetFeature.pm $(PX_TESTS) \
138 certs valgrind-suppressions valgrind-suppressions-ssl
139
140 check_PROGRAMS = unit-tests
141 unit_tests_SOURCES = unit-tests.c unit-tests.h
142 LDADD = ../src/libunittest.a ../lib/libgnu.a \
143 $(CLOCK_TIME_LIB) \
144 $(GETADDRINFO_LIB) \
145 $(GETRANDOM_LIB) \
146 $(HARD_LOCALE_LIB) \
147 $(HOSTENT_LIB) \
148 $(INET_NTOP_LIB) \
149 $(LIBSOCKET) \
150 $(LIBTHREAD) \
151 $(LIB_CRYPTO) \
152 $(LIBC32CONV) \
153 $(LIBICONV) \
154 $(LIBINTL) \
155 $(LIBUNISTRING) \
156 $(MBRTOWC_LIB) \
157 $(NANOSLEEP_LIB) \
158 $(POSIX_SPAWN_LIB) \
159 $(PTHREAD_SIGMASK_LIB) \
160 $(SELECT_LIB) \
161 $(SERVENT_LIB) \
162 $(SETLOCALE_NULL_LIB)
163 AM_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib \
164 -I$(top_srcdir)/src -DLOCALEDIR=\"$(localedir)\"
165 AM_CFLAGS = $(WERROR_CFLAGS) $(WARN_CFLAGS)
166
167
168 CLEANFILES = *~ *.bak core core.[0-9]*
169
170 TESTS = unit-tests$(EXEEXT) $(PX_TESTS)
171 TEST_EXTENSIONS = .px
172 PX_LOG_COMPILER = $(PERL)
173 AM_PX_LOG_FLAGS = -I$(srcdir)
174 AM_TESTS_ENVIRONMENT = export WGETRC=; export SYSTEM_WGETRC=;\
175 export VALGRIND_TESTS="@VALGRIND_TESTS@";