tests: add missing files to Makefile.am
[wget] / tests / Makefile.am
1 # Makefile for `wget' utility
2 # Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
3 # 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
4 # Foundation, Inc.
5
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
10
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15
16 # You should have received a copy of the GNU General Public License
17 # along with Wget.  If not, see <http://www.gnu.org/licenses/>.
18
19 # Additional permission under GNU GPL version 3 section 7
20
21 # If you modify this program, or any covered work, by linking or
22 # combining it with the OpenSSL project's OpenSSL library (or a
23 # modified version of that library), containing parts covered by the
24 # terms of the OpenSSL or SSLeay licenses, the Free Software Foundation
25 # grants you additional permission to convey the resulting work.
26 # Corresponding Source for a non-source form of such a combination
27 # shall include the source code for the parts of OpenSSL used as well
28 # as that of the covered work.
29
30 #
31 # Version: @VERSION@
32 #
33
34 PERL     = perl
35 PERLRUN = $(PERL) -I$(srcdir)
36
37 LIBS     = @LIBICONV@ @LIBINTL@ @LIBS@ $(LIB_CLOCK_GETTIME)
38
39 .PHONY: test run-unit-tests run-px-tests
40
41 check-local: test
42
43 test: ../src/wget$(EXEEXT) run-unit-tests run-px-tests
44
45 ../src/wget$(EXEEXT):
46         cd ../src && $(MAKE) $(AM_MAKEFLAGS)
47
48 # Make libunittest "PHONY" so we're always sure we're up-to-date.
49 .PHONY: ../src/libunittest.a
50 ../src/libunittest.a:
51         cd ../src && $(MAKE) $(AM_MAKEFLAGS) libunittest.a
52
53 ../lib/libgnu.a:
54         cd ../lib && $(MAKE) $(AM_MAKEFLAGS)
55
56 run-unit-tests: unit-tests$(EXEEXT) ../src/libunittest.a
57         ./unit-tests$(EXEEXT)
58
59 run-px-tests: WgetTest.pm ../src/wget$(EXEEXT)
60         $(srcdir)/run-px $(top_srcdir)
61
62 EXTRA_DIST = FTPServer.pm FTPTest.pm HTTPServer.pm HTTPTest.pm \
63              WgetFeature.pm WgetFeature.cfg \
64              Test-auth-basic.px \
65              Test-auth-no-challenge.px \
66              Test-auth-no-challenge-url.px \
67              Test-auth-with-content-disposition.px \
68              Test-auth-retcode.px \
69              Test-c-full.px \
70              Test-c-partial.px \
71              Test-c.px \
72              Test-c-shorter.px \
73              Test-cookies.px \
74              Test-cookies-401.px \
75              Test-E-k-K.px \
76              Test-E-k.px \
77              Test-ftp.px \
78              Test-ftp-pasv-fail.px \
79              Test-ftp-bad-list.px \
80              Test-ftp-recursive.px \
81              Test-ftp-iri.px \
82              Test-ftp-iri-fallback.px \
83              Test-ftp-iri-recursive.px \
84              Test-ftp-iri-disabled.px \
85              Test-ftp-list-Multinet.px \
86              Test-ftp-list-Unknown.px \
87              Test-ftp-list-Unknown-a.px \
88              Test-ftp-list-Unknown-hidden.px \
89              Test-ftp-list-Unknown-list-a-fails.px \
90              Test-ftp-list-UNIX-hidden.px \
91              Test-ftp--start-pos.px \
92              Test-HTTP-Content-Disposition-1.px \
93              Test-HTTP-Content-Disposition-2.px \
94              Test-HTTP-Content-Disposition.px \
95              Test-i-ftp.px \
96              Test-i-http.px \
97              Test-idn-headers.px \
98              Test-idn-meta.px \
99              Test-idn-cmd.px \
100              Test-idn-cmd-utf8.px \
101              Test-idn-robots.px \
102              Test-idn-robots-utf8.px \
103              Test-iri.px \
104              Test-iri-percent.px \
105              Test-iri-disabled.px \
106              Test-iri-forced-remote.px \
107              Test-iri-list.px \
108              Test-k.px \
109              Test-meta-robots.px \
110              Test-N-current.px \
111              Test-N-HTTP-Content-Disposition.px \
112              Test-N--no-content-disposition.px \
113              Test-N--no-content-disposition-trivial.px \
114              Test-N-no-info.px \
115              Test--no-content-disposition.px \
116              Test--no-content-disposition-trivial.px \
117              Test-N-old.px \
118              Test-nonexisting-quiet.px \
119              Test-noop.px \
120              Test-np.px \
121              Test-N.px \
122              Test-N-smaller.px \
123              Test-O-HTTP-Content-Disposition.px \
124              Test-O-nc.px \
125              Test-O--no-content-disposition.px \
126              Test-O--no-content-disposition-trivial.px \
127              Test-O-nonexisting.px \
128              Test-O.px \
129              Test--post-file.px \
130              Test-proxied-https-auth.px \
131              Test-proxy-auth-basic.px \
132              Test-restrict-ascii.px \
133              Test-Restrict-Lowercase.px \
134              Test-Restrict-Uppercase.px \
135              Test-stdouterr.px \
136              Test--spider-fail.px \
137              Test--spider.px \
138              Test--spider-r-HTTP-Content-Disposition.px \
139              Test--spider-r--no-content-disposition.px \
140              Test--spider-r--no-content-disposition-trivial.px \
141              Test--spider-r.px \
142              Test--start-pos.px \
143              Test--start-pos--continue.px \
144              Test--httpsonly-r.px \
145              run-px certs
146
147 check_PROGRAMS = unit-tests
148 unit_tests_SOURCES =
149 LDADD = ../src/libunittest.a ../lib/libgnu.a $(LIBS)
150
151 CLEANFILES = *~ *.bak core core.[0-9]*