1 # Makefile for `wget' utility
2 # Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
3 # 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
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.
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.
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/>.
18 # Additional permission under GNU GPL version 3 section 7
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.
34 PERLRUN = $(PERL) -I$(srcdir)
36 .PHONY: test run-unit-tests run-px-tests
40 test: ../src/wget$(EXEEXT) run-unit-tests #run-px-tests
43 cd ../src && $(MAKE) $(AM_MAKEFLAGS)
45 run-unit-tests: unit-tests$(EXEEXT)
48 run-px-tests: WgetTest.pm
49 $(PERLRUN) $(srcdir)/Test-proxied-https-auth.px && echo && echo
50 $(PERLRUN) $(srcdir)/Test-proxy-auth-basic.px && echo && echo
51 $(PERLRUN) $(srcdir)/Test-auth-basic.px && echo && echo
52 $(PERLRUN) $(srcdir)/Test-c-full.px && echo && echo
53 $(PERLRUN) $(srcdir)/Test-c-partial.px && echo && echo
54 $(PERLRUN) $(srcdir)/Test-c.px && echo && echo
55 $(PERLRUN) $(srcdir)/Test-E-k-K.px && echo && echo
56 $(PERLRUN) $(srcdir)/Test-E-k.px && echo && echo
57 $(PERLRUN) $(srcdir)/Test-ftp.px && echo && echo
58 $(PERLRUN) $(srcdir)/Test-HTTP-Content-Disposition-1.px && echo && echo
59 $(PERLRUN) $(srcdir)/Test-HTTP-Content-Disposition-2.px && echo && echo
60 $(PERLRUN) $(srcdir)/Test-HTTP-Content-Disposition.px && echo && echo
61 $(PERLRUN) $(srcdir)/Test-N-current-HTTP-CD.px && echo && echo
62 $(PERLRUN) $(srcdir)/Test-N-current.px && echo && echo
63 $(PERLRUN) $(srcdir)/Test-N-HTTP-Content-Disposition.px && echo && echo
64 $(PERLRUN) $(srcdir)/Test-N--no-content-disposition.px && echo && echo
65 $(PERLRUN) $(srcdir)/Test-N--no-content-disposition-trivial.px && echo && echo
66 $(PERLRUN) $(srcdir)/Test--no-content-disposition.px && echo && echo
67 $(PERLRUN) $(srcdir)/Test--no-content-disposition-trivial.px && echo && echo
68 $(PERLRUN) $(srcdir)/Test-N-old.px && echo && echo
69 $(PERLRUN) $(srcdir)/Test-nonexisting-quiet.px && echo && echo
70 $(PERLRUN) $(srcdir)/Test-noop.px && echo && echo
71 $(PERLRUN) $(srcdir)/Test-np.px && echo && echo
72 $(PERLRUN) $(srcdir)/Test-N.px && echo && echo
73 $(PERLRUN) $(srcdir)/Test-O-HTTP-Content-Disposition.px && echo && echo
74 $(PERLRUN) $(srcdir)/Test-O--no-content-disposition.px && echo && echo
75 $(PERLRUN) $(srcdir)/Test-O--no-content-disposition-trivial.px && echo && echo
76 $(PERLRUN) $(srcdir)/Test-O-nonexisting.px && echo && echo
77 $(PERLRUN) $(srcdir)/Test-O.px && echo && echo
78 $(PERLRUN) $(srcdir)/Test-Restrict-Lowercase.px && echo && echo
79 $(PERLRUN) $(srcdir)/Test-Restrict-Uppercase.px && echo && echo
80 $(PERLRUN) $(srcdir)/Test--spider-fail.px && echo && echo
81 $(PERLRUN) $(srcdir)/Test--spider-HTTP-Content-Disposition.px && echo && echo
82 $(PERLRUN) $(srcdir)/Test--spider--no-content-disposition.px && echo && echo
83 $(PERLRUN) $(srcdir)/Test--spider--no-content-disposition-trivial.px && echo && echo
84 $(PERLRUN) $(srcdir)/Test--spider.px && echo && echo
85 $(PERLRUN) $(srcdir)/Test--spider-r-HTTP-Content-Disposition.px && echo && echo
86 $(PERLRUN) $(srcdir)/Test--spider-r--no-content-disposition.px && echo && echo
87 $(PERLRUN) $(srcdir)/Test--spider-r--no-content-disposition-trivial.px && echo && echo
88 $(PERLRUN) $(srcdir)/Test--spider-r.px && echo && echo
90 EXTRA_DIST = FTPServer.pm FTPTest.pm HTTPServer.pm HTTPTest.pm \
91 Test-auth-basic.px Test-c-full.px Test-c-partial.px \
92 Test-c.px Test-E-k-K.px Test-E-k.px Test-ftp.px \
93 Test-HTTP-Content-Disposition-1.px \
94 Test-HTTP-Content-Disposition-2.px \
95 Test-HTTP-Content-Disposition.px \
96 Test-N-current.px Test-N-old.px Test-nonexisting-quiet.px \
97 Test-noop.px Test-np.px Test-N.px \
98 Test-O-nonexisting.px Test-O.px \
99 Test-Restrict-Lowercase.px Test-Restrict-Uppercase.px \
100 Test--spider-fail.px Test--spider.px Test--spider-r.px
102 check_PROGRAMS = unit-tests
104 LDADD = ../src/libunittest.a ../lib/libgnu.a @LIBSSL@ @LIBGNUTLS@ \
107 CLEANFILES = *~ *.bak core core.[0-9]*