]> sjero.net Git - wget/blob - tests/Makefile.am
Test -i with HTTP.
[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 Free Software Foundation, 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 #
30 # Version: @VERSION@
31 #
32
33 PERL     = perl
34 PERLRUN = $(PERL) -I$(srcdir)
35
36 .PHONY: test run-unit-tests run-px-tests
37
38 check-local: test
39
40 test: ../src/wget$(EXEEXT) run-unit-tests run-px-tests
41
42 ../src/wget$(EXEEXT):
43         cd ../src && $(MAKE) $(AM_MAKEFLAGS)
44
45 # Make libunittest "PHONY" so we're always sure we're up-to-date.
46 .PHONY: ../src/libunittest.a
47 ../src/libunittest.a:
48         cd ../src && $(MAKE) $(AM_MAKEFLAGS) libunittest.a
49
50 ../lib/libgnu.a:
51         cd ../lib && $(MAKE) $(AM_MAKEFLAGS)
52
53 ../md5/libmd5.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-c-full.px \
69              Test-c-partial.px \
70              Test-c.px \
71              Test-c-shorter.px \
72              Test-cookies.px \
73              Test-cookies-401.px \
74              Test-E-k-K.px \
75              Test-E-k.px \
76              Test-ftp.px \
77              Test-ftp-pasv-fail.px \
78              Test-ftp-bad-list.px \
79              Test-ftp-recursive.px \
80              Test-ftp-iri.px \
81              Test-ftp-iri-fallback.px \
82              Test-ftp-iri-recursive.px \
83              Test-ftp-iri-disabled.px \
84              Test-HTTP-Content-Disposition-1.px \
85              Test-HTTP-Content-Disposition-2.px \
86              Test-HTTP-Content-Disposition.px \
87              Test-i-http.px \
88              Test-idn-headers.px \
89              Test-idn-meta.px \
90              Test-idn-cmd.px \
91              Test-idn-robots.px \
92              Test-iri.px \
93              Test-iri-percent.px \
94              Test-iri-disabled.px \
95              Test-iri-forced-remote.px \
96              Test-iri-list.px \
97              Test-k.px \
98              Test-meta-robots.px \
99              Test-N-current.px \
100              Test-N-HTTP-Content-Disposition.px \
101              Test-N--no-content-disposition.px \
102              Test-N--no-content-disposition-trivial.px \
103              Test-N-no-info.px \
104              Test--no-content-disposition.px \
105              Test--no-content-disposition-trivial.px \
106              Test-N-old.px \
107              Test-nonexisting-quiet.px \
108              Test-noop.px \
109              Test-np.px \
110              Test-N.px \
111              Test-N-smaller.px \
112              Test-O-HTTP-Content-Disposition.px \
113              Test-O-nc.px \
114              Test-O--no-content-disposition.px \
115              Test-O--no-content-disposition-trivial.px \
116              Test-O-nonexisting.px \
117              Test-O.px \
118              Test-proxied-https-auth.px \
119              Test-proxy-auth-basic.px \
120              Test-restrict-ascii.px \
121              Test-Restrict-Lowercase.px \
122              Test-Restrict-Uppercase.px \
123              Test--spider-fail.px \
124              Test--spider.px \
125              Test--spider-r-HTTP-Content-Disposition.px \
126              Test--spider-r--no-content-disposition.px \
127              Test--spider-r--no-content-disposition-trivial.px \
128              Test--spider-r.px \
129              run-px certs
130
131 check_PROGRAMS = unit-tests
132 unit_tests_SOURCES =
133 LDADD = ../src/libunittest.a ../lib/libgnu.a @LIBSSL@ @LIBGNUTLS@ \
134     @MD5_LDADD@
135
136 CLEANFILES = *~ *.bak core core.[0-9]*