]> sjero.net Git - wget/blob - tests/Makefile.am
Moved Makefile.in's to Makefile.am's, applied Ralf's automake patches.
[wget] / tests / Makefile.am
1 # Makefile for `wget' utility
2 # Copyright (C) 1995-2005, 2007 Free Software Foundation, Inc.
3
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13
14 # You should have received a copy of the GNU General Public License
15 # along with Wget.  If not, see <http://www.gnu.org/licenses/>.
16
17 # In addition, as a special exception, the Free Software Foundation
18 # gives permission to link the code of its release of Wget with the
19 # OpenSSL project's "OpenSSL" library (or with modified versions of it
20 # that use the same license as the "OpenSSL" library), and distribute
21 # the linked executables.  You must obey the GNU General Public License
22 # in all respects for all of the code used other than "OpenSSL".  If you
23 # modify this file, you may extend this exception to your version of the
24 # file, but you are not obligated to do so.  If you do not wish to do
25 # so, delete this exception statement from your version.
26
27 #
28 # Version: @VERSION@
29 #
30
31 PERL     = perl
32 PERLRUN = $(PERL) -I$(srcdir)
33
34 .PHONY: test run-unit-tests run-px-tests
35
36 check-local: test
37
38 test: ../src/wget$(EXEEXT) run-unit-tests run-px-tests
39
40 ../src/wget$(EXEEXT):
41         cd ../src && $(MAKE) $(AM_MAKEFLAGS)
42
43 run-unit-tests: unit-tests$(EXEEXT)
44         ./unit-tests$(EXEEXT)
45
46 run-px-tests: WgetTest.pm
47         $(PERLRUN) $(srcdir)/Test-c-full.px && echo && echo
48         $(PERLRUN) $(srcdir)/Test-c-partial.px && echo && echo
49         $(PERLRUN) $(srcdir)/Test-c.px && echo && echo
50 #       $(PERLRUN) $(srcdir)/Test-E-k-K.px && echo && echo
51 #       $(PERLRUN) $(srcdir)/Test-E-k.px && echo && echo
52         $(PERLRUN) $(srcdir)/Test-ftp.px && echo && echo
53 #       $(PERLRUN) $(srcdir)/Test-HTTP-Content-Disposition.px && echo && echo
54 #       $(PERLRUN) $(srcdir)/Test-HTTP-Content-Disposition-1.px && echo && echo
55 #       $(PERLRUN) $(srcdir)/Test-HTTP-Content-Disposition-2.px && echo && echo
56         $(PERLRUN) $(srcdir)/Test-N-current.px && echo && echo
57 #       $(PERLRUN) $(srcdir)/Test-nonexisting-quiet.px && echo && echo
58 #       $(PERLRUN) $(srcdir)/Test-noop.px && echo && echo
59 #       $(PERLRUN) $(srcdir)/Test-np.px && echo && echo
60 #       $(PERLRUN) $(srcdir)/Test-N.px && echo && echo
61         $(PERLRUN) $(srcdir)/Test-O-nonexisting.px && echo && echo
62         $(PERLRUN) $(srcdir)/Test-O.px && echo && echo
63 #       $(PERLRUN) $(srcdir)/Test-Restrict-Lowercase.px && echo && echo
64 #       $(PERLRUN) $(srcdir)/Test-Restrict-Uppercase.px && echo && echo
65         $(PERLRUN) $(srcdir)/Test--spider-fail.px && echo && echo
66         $(PERLRUN) $(srcdir)/Test--spider.px && echo && echo
67         $(PERLRUN) $(srcdir)/Test--spider-r.px && echo && echo
68         $(PERLRUN) $(srcdir)/Test-auth-basic.px && echo && echo
69
70 EXTRA_DIST = FTPServer.pm FTPTest.pm HTTPServer.pm HTTPTest.pm \
71              Test-auth-basic.px Test-c-full.px Test-c-partial.px \
72              Test-c.px Test-E-k-K.px Test-E-k.px Test-ftp.px \
73              Test-HTTP-Content-Disposition-1.px \
74              Test-HTTP-Content-Disposition-2.px \
75              Test-HTTP-Content-Disposition.px \
76              Test-N-current.px Test-N-old.px Test-nonexisting-quiet.px \
77              Test-noop.px Test-np.px Test-N.px \
78              Test-O-nonexisting.px Test-O.px \
79              Test-Restrict-Lowercase.px Test-Restrict-Uppercase.px \
80              Test--spider-fail.px Test--spider.px Test--spider-r.px
81
82 check_PROGRAMS = unit-tests
83 unit_tests_SOURCES = 
84 LDADD = ../src/libunittest.a
85
86 CLEANFILES = *~ *.bak core core.[0-9]*