]> sjero.net Git - wget/blob - tests/Makefile.am
Merge in gerel's url-parsing stuff.
[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 ../src/libunittest.a:
46         cd ../src && $(MAKE) $(AM_MAKEFLAGS) libunittest.a
47
48 ../lib/libgnu.a:
49         cd ../lib && $(MAKE) $(AM_MAKEFLAGS)
50
51 ../md5/libmd5.a:
52         cd ../lib && $(MAKE) $(AM_MAKEFLAGS)
53
54 run-unit-tests: unit-tests$(EXEEXT)
55         ./unit-tests$(EXEEXT)
56
57 run-px-tests: WgetTest.pm ../src/wget$(EXEEXT)
58         $(srcdir)/run-px $(top_srcdir)
59
60 EXTRA_DIST = FTPServer.pm FTPTest.pm HTTPServer.pm HTTPTest.pm \
61              Test-auth-basic.px Test-c-full.px Test-c-partial.px \
62              Test-c.px Test-E-k-K.px Test-E-k.px Test-ftp.px \
63              Test-HTTP-Content-Disposition-1.px \
64              Test-HTTP-Content-Disposition-2.px \
65              Test-HTTP-Content-Disposition.px \
66              Test-N-current.px Test-N-old.px Test-nonexisting-quiet.px \
67              Test-noop.px Test-np.px Test-N.px \
68              Test-O-nonexisting.px Test-O.px \
69              Test-Restrict-Lowercase.px Test-Restrict-Uppercase.px \
70              Test--spider-fail.px Test--spider.px Test--spider-r.px
71
72 check_PROGRAMS = unit-tests
73 unit_tests_SOURCES = 
74 #unit-tests: ../src/libunittest.a ../lib/libgnu.a
75 LDADD = ../src/libunittest.a ../lib/libgnu.a @LIBSSL@ @LIBGNUTLS@ \
76         @MD5_LDADD@
77
78 CLEANFILES = *~ *.bak core core.[0-9]*