mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Fix unit tests build in a VPATH.
This commit is contained in:
parent
b2e34eb6a9
commit
5a97871f5d
@ -1,5 +1,7 @@
|
|||||||
2010-05-07 Giuseppe Scrivano <gscrivano@gnu.org>
|
2010-05-07 Giuseppe Scrivano <gscrivano@gnu.org>
|
||||||
|
|
||||||
|
* Makefile.am (libunittest_a_CPPFLAGS): Add -I$(top_builddir)/lib.
|
||||||
|
|
||||||
* mswindows.h: Always include <winsock2.h> and <ws2tcpip.h>. Do not
|
* mswindows.h: Always include <winsock2.h> and <ws2tcpip.h>. Do not
|
||||||
include <winsock.h>.
|
include <winsock.h>.
|
||||||
[! INHIBIT_WRAP]: Remove macro's socket, bind, connect, accept, recv,
|
[! INHIBIT_WRAP]: Remove macro's socket, bind, connect, accept, recv,
|
||||||
|
@ -88,7 +88,7 @@ version.c: $(wget_SOURCES) ../lib/libgnu.a $(MD5_LDADD) \
|
|||||||
check_LIBRARIES = libunittest.a
|
check_LIBRARIES = libunittest.a
|
||||||
libunittest_a_SOURCES = $(wget_SOURCES) test.c build_info.c test.h
|
libunittest_a_SOURCES = $(wget_SOURCES) test.c build_info.c test.h
|
||||||
nodist_libunittest_a_SOURCES = version.c
|
nodist_libunittest_a_SOURCES = version.c
|
||||||
libunittest_a_CPPFLAGS = -DTESTING -I$(top_srcdir)/lib
|
libunittest_a_CPPFLAGS = -DTESTING -I$(top_builddir)/lib -I$(top_srcdir)/lib
|
||||||
libunittest_a_LIBADD = $(LIBOBJS)
|
libunittest_a_LIBADD = $(LIBOBJS)
|
||||||
EXTRA_DIST = build_info.c.in
|
EXTRA_DIST = build_info.c.in
|
||||||
|
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2010-05-07 Giuseppe Scrivano <gscrivano@gnu.org>
|
||||||
|
|
||||||
|
* Makefile.am (LIBS): Add definition.
|
||||||
|
(LDADD): Add LIBS.
|
||||||
|
|
||||||
2010-03-01 Steven Schubiger <stsc@member.fsf.org>
|
2010-03-01 Steven Schubiger <stsc@member.fsf.org>
|
||||||
|
|
||||||
* Test-i-ftp.px: Test --input-file in conjunction with FTP.
|
* Test-i-ftp.px: Test --input-file in conjunction with FTP.
|
||||||
@ -18,7 +23,7 @@
|
|||||||
* Test-E-k-K.px, Test-cookies-401.px, Test-ftp-bad-list.px,
|
* Test-E-k-K.px, Test-cookies-401.px, Test-ftp-bad-list.px,
|
||||||
Test-iri-list.px, Test-iri.px: Removed -d from invocation.
|
Test-iri-list.px, Test-iri.px: Removed -d from invocation.
|
||||||
Patch by Mike Frysinger.
|
Patch by Mike Frysinger.
|
||||||
|
|
||||||
2009-09-27 Micah Cowan <micah@cowan.name>
|
2009-09-27 Micah Cowan <micah@cowan.name>
|
||||||
|
|
||||||
* Test-idn-cmd.px, Test-idn-headers.px, Test-idn-meta.px,
|
* Test-idn-cmd.px, Test-idn-headers.px, Test-idn-meta.px,
|
||||||
@ -37,7 +42,7 @@
|
|||||||
|
|
||||||
* run-px: Exit with a failure if there were any tests with
|
* run-px: Exit with a failure if there were any tests with
|
||||||
"unknown" exit statuses.
|
"unknown" exit statuses.
|
||||||
|
|
||||||
* Test-auth-with-content-disposition.px: New. Test Content-Disposition
|
* Test-auth-with-content-disposition.px: New. Test Content-Disposition
|
||||||
support when HTTP authentication is required.
|
support when HTTP authentication is required.
|
||||||
* run-px, Makefile.am (EXTRA_DIST): Added
|
* run-px, Makefile.am (EXTRA_DIST): Added
|
||||||
@ -140,7 +145,7 @@
|
|||||||
2009-08-27 Micah Cowan <micah@cowan.name>
|
2009-08-27 Micah Cowan <micah@cowan.name>
|
||||||
|
|
||||||
* WgetTest.pm.in (run): Shift the errcode right by 8 binary places.
|
* WgetTest.pm.in (run): Shift the errcode right by 8 binary places.
|
||||||
|
|
||||||
* Test--spider-fail.px, Test--spider-r--no-content-disposition.px,
|
* Test--spider-fail.px, Test--spider-r--no-content-disposition.px,
|
||||||
Test--spider-r--no-content-disposition-trivial.px,
|
Test--spider-r--no-content-disposition-trivial.px,
|
||||||
Test--spider-r-HTTP-Content-Disposition.px, Test--spider-r.px,
|
Test--spider-r-HTTP-Content-Disposition.px, Test--spider-r.px,
|
||||||
@ -175,7 +180,7 @@
|
|||||||
Test-ftp-iri-recursive.px, Test-ftp-iri-disabled.px,
|
Test-ftp-iri-recursive.px, Test-ftp-iri-disabled.px,
|
||||||
Test-idn-cmd.px, Test-idn-robots.px: Adjust wget invocations,
|
Test-idn-cmd.px, Test-idn-robots.px: Adjust wget invocations,
|
||||||
replacing --locale with --local-encoding.
|
replacing --locale with --local-encoding.
|
||||||
|
|
||||||
2009-07-07 Steven Schubiger <stsc@member.fsf.org>
|
2009-07-07 Steven Schubiger <stsc@member.fsf.org>
|
||||||
|
|
||||||
* Makefile.am: Add IDN/IRI test files and Test-meta-robots.px
|
* Makefile.am: Add IDN/IRI test files and Test-meta-robots.px
|
||||||
@ -184,7 +189,7 @@
|
|||||||
2009-07-05 Micah Cowan <micah@cowan.name>
|
2009-07-05 Micah Cowan <micah@cowan.name>
|
||||||
|
|
||||||
* Test-meta-robots.px: Added.
|
* Test-meta-robots.px: Added.
|
||||||
|
|
||||||
* run-px: Add Test-meta-robots.px to the list.
|
* run-px: Add Test-meta-robots.px to the list.
|
||||||
|
|
||||||
2009-07-03 Micah Cowan <micah@cowan.name>
|
2009-07-03 Micah Cowan <micah@cowan.name>
|
||||||
@ -342,7 +347,7 @@
|
|||||||
path (made necessary by the accompanying change to HTTPServer.pm).
|
path (made necessary by the accompanying change to HTTPServer.pm).
|
||||||
|
|
||||||
2008-08-14 Xavier Saint <wget@sxav.eu>
|
2008-08-14 Xavier Saint <wget@sxav.eu>
|
||||||
|
|
||||||
* Test-iri-list.px : Fetch files from a remote list.
|
* Test-iri-list.px : Fetch files from a remote list.
|
||||||
|
|
||||||
2008-08-03 Xavier Saint <wget@sxav.eu>
|
2008-08-03 Xavier Saint <wget@sxav.eu>
|
||||||
@ -441,7 +446,7 @@
|
|||||||
|
|
||||||
* Makefile.am (run-px-tests): Replaced ugly list of tests with
|
* Makefile.am (run-px-tests): Replaced ugly list of tests with
|
||||||
run-px Perl script to manage running them.
|
run-px Perl script to manage running them.
|
||||||
|
|
||||||
* run-px: Added.
|
* run-px: Added.
|
||||||
|
|
||||||
* FTPServer.pm (run): Avoid re-forking. Fixes bug #20458.
|
* FTPServer.pm (run): Avoid re-forking. Fixes bug #20458.
|
||||||
@ -577,7 +582,7 @@
|
|||||||
* Test-np.px: Added test for -np.
|
* Test-np.px: Added test for -np.
|
||||||
|
|
||||||
* HTTPTest.pm: Ignore initial '/' character in requested URLs.
|
* HTTPTest.pm: Ignore initial '/' character in requested URLs.
|
||||||
|
|
||||||
2006-10-12 Mauro Tortonesi <mauro@ferrara.linux.it>
|
2006-10-12 Mauro Tortonesi <mauro@ferrara.linux.it>
|
||||||
|
|
||||||
* Test1.px: Renamed to Test-noop.px.
|
* Test1.px: Renamed to Test-noop.px.
|
||||||
@ -597,13 +602,13 @@
|
|||||||
* Test-O-nonexisting.px: Ditto.
|
* Test-O-nonexisting.px: Ditto.
|
||||||
|
|
||||||
* Test5.px: Renamed to Test-HTTP-Content-Disposition.px.
|
* Test5.px: Renamed to Test-HTTP-Content-Disposition.px.
|
||||||
|
|
||||||
* Test-HTTP-Content-Disposition.px: Ditto.
|
* Test-HTTP-Content-Disposition.px: Ditto.
|
||||||
|
|
||||||
* Test6.px: Renamed to Test-HTTP-Content-Disposition-1.px.
|
* Test6.px: Renamed to Test-HTTP-Content-Disposition-1.px.
|
||||||
|
|
||||||
* Test-HTTP-Content-Disposition-1.px: Ditto.
|
* Test-HTTP-Content-Disposition-1.px: Ditto.
|
||||||
|
|
||||||
* Test7.px: Renamed to Test-HTTP-Content-Disposition-2.px.
|
* Test7.px: Renamed to Test-HTTP-Content-Disposition-2.px.
|
||||||
|
|
||||||
* Test-HTTP-Content-Disposition-2.px: Ditto.
|
* Test-HTTP-Content-Disposition-2.px: Ditto.
|
||||||
@ -615,13 +620,13 @@
|
|||||||
* Test-Restrict-Lowercase.px: Ditto.
|
* Test-Restrict-Lowercase.px: Ditto.
|
||||||
|
|
||||||
* Test10.px: Renamed to Test-Restrict-Uppercase.px.
|
* Test10.px: Renamed to Test-Restrict-Uppercase.px.
|
||||||
|
|
||||||
* Test-Restrict-Uppercase.px: Ditto.
|
* Test-Restrict-Uppercase.px: Ditto.
|
||||||
|
|
||||||
* Test--spider.px: Added test for spider mode.
|
* Test--spider.px: Added test for spider mode.
|
||||||
|
|
||||||
* Test--spider-fail.px: Added failing test for spider mode.
|
* Test--spider-fail.px: Added failing test for spider mode.
|
||||||
|
|
||||||
* Test--spider-r.px: Added test for recursive spider mode.
|
* Test--spider-r.px: Added test for recursive spider mode.
|
||||||
|
|
||||||
* Test-c.px: Added test for --continue mode.
|
* Test-c.px: Added test for --continue mode.
|
||||||
@ -633,7 +638,7 @@
|
|||||||
* Test-O.px: Added test for -O.
|
* Test-O.px: Added test for -O.
|
||||||
|
|
||||||
* Test-N-current.px: Added test for -N.
|
* Test-N-current.px: Added test for -N.
|
||||||
|
|
||||||
* Test-N-old.px: Added test for -N.
|
* Test-N-old.px: Added test for -N.
|
||||||
|
|
||||||
* Test-E-k.px: Added test for -E -k.
|
* Test-E-k.px: Added test for -E -k.
|
||||||
@ -651,7 +656,7 @@
|
|||||||
2006-06-13 Mauro Tortonesi <mauro@ferrara.linux.it>
|
2006-06-13 Mauro Tortonesi <mauro@ferrara.linux.it>
|
||||||
|
|
||||||
* Test9.px: Added test for --restrict-file-names=lowercase option.
|
* Test9.px: Added test for --restrict-file-names=lowercase option.
|
||||||
|
|
||||||
* Test10.px: Added test for --restrict-file-names=uppercase option.
|
* Test10.px: Added test for --restrict-file-names=uppercase option.
|
||||||
|
|
||||||
2006-05-26 Mauro Tortonesi <mauro@ferrara.linux.it>
|
2006-05-26 Mauro Tortonesi <mauro@ferrara.linux.it>
|
||||||
@ -666,9 +671,9 @@
|
|||||||
* Test1.px: Removed unneeded ../src/ from command line.
|
* Test1.px: Removed unneeded ../src/ from command line.
|
||||||
|
|
||||||
* Test2.px: Ditto.
|
* Test2.px: Ditto.
|
||||||
|
|
||||||
* Test3.px: Ditto.
|
* Test3.px: Ditto.
|
||||||
|
|
||||||
* Test4.px: Ditto.
|
* Test4.px: Ditto.
|
||||||
|
|
||||||
* Test5.px: Ditto.
|
* Test5.px: Ditto.
|
||||||
@ -691,24 +696,24 @@
|
|||||||
* Test5.px: Added test for HTTP Content-Disposition support.
|
* Test5.px: Added test for HTTP Content-Disposition support.
|
||||||
|
|
||||||
* Test6.px: Ditto.
|
* Test6.px: Ditto.
|
||||||
|
|
||||||
* Test7.px: Ditto.
|
* Test7.px: Ditto.
|
||||||
|
|
||||||
2006-04-27 Mauro Tortonesi <mauro@ferrara.linux.it>
|
2006-04-27 Mauro Tortonesi <mauro@ferrara.linux.it>
|
||||||
|
|
||||||
* HTTPServer.pm: Serve index.html if no filename is given.
|
* HTTPServer.pm: Serve index.html if no filename is given.
|
||||||
|
|
||||||
* Test.pm: Added support for pre-existing files.
|
* Test.pm: Added support for pre-existing files.
|
||||||
|
|
||||||
2006-01-24 Mauro Tortonesi <mauro@ferrara.linux.it>
|
2006-01-24 Mauro Tortonesi <mauro@ferrara.linux.it>
|
||||||
|
|
||||||
* HTTPServer.pm: Enhanced logging support.
|
* HTTPServer.pm: Enhanced logging support.
|
||||||
|
|
||||||
* HTTPTest.pm: Updated to new test format.
|
* HTTPTest.pm: Updated to new test format.
|
||||||
|
|
||||||
* Test.pm: Improved test setup, verification and cleanup. Major
|
* Test.pm: Improved test setup, verification and cleanup. Major
|
||||||
refactoring.
|
refactoring.
|
||||||
|
|
||||||
* Test1.px: Updated to new test format.
|
* Test1.px: Updated to new test format.
|
||||||
|
|
||||||
* Test2.px: Updated to new test format.
|
* Test2.px: Updated to new test format.
|
||||||
@ -717,15 +722,15 @@
|
|||||||
|
|
||||||
* Test4.px: Added new test for quiet download of nonexistent URL with
|
* Test4.px: Added new test for quiet download of nonexistent URL with
|
||||||
--output-document option.
|
--output-document option.
|
||||||
|
|
||||||
2005-12-05 Mauro Tortonesi <mauro@ferrara.linux.it>
|
2005-12-05 Mauro Tortonesi <mauro@ferrara.linux.it>
|
||||||
|
|
||||||
* HTTPServer.pm: Refactored as a subclass of HTTP::Daemon.
|
* HTTPServer.pm: Refactored as a subclass of HTTP::Daemon.
|
||||||
Removed the old run method and renamed the old run_daemon
|
Removed the old run method and renamed the old run_daemon
|
||||||
method to run. Added support for partial
|
method to run. Added support for partial
|
||||||
|
|
||||||
* Testing.pm: Renamed to HTTPTest.pm.
|
* Testing.pm: Renamed to HTTPTest.pm.
|
||||||
|
|
||||||
* HTTPTest.pm: Refactored as a subclass of Test. Renamed
|
* HTTPTest.pm: Refactored as a subclass of Test. Renamed
|
||||||
Run_HTTP_Test to run, verify_download to _verify_download
|
Run_HTTP_Test to run, verify_download to _verify_download
|
||||||
and added support for timestamp checking.
|
and added support for timestamp checking.
|
||||||
@ -734,15 +739,15 @@
|
|||||||
testcase.
|
testcase.
|
||||||
|
|
||||||
* test1: Renamed to Test1.px.
|
* test1: Renamed to Test1.px.
|
||||||
|
|
||||||
* Test1.px: Refactored as an instance of the HTTPTest class.
|
* Test1.px: Refactored as an instance of the HTTPTest class.
|
||||||
|
|
||||||
* Test2.px: Added -N HTTP test.
|
* Test2.px: Added -N HTTP test.
|
||||||
|
|
||||||
2005-11-02 Mauro Tortonesi <mauro@ferrara.linux.it>
|
2005-11-02 Mauro Tortonesi <mauro@ferrara.linux.it>
|
||||||
|
|
||||||
* HTTPServer.pm: Added basic support for HTTP testing.
|
* HTTPServer.pm: Added basic support for HTTP testing.
|
||||||
|
|
||||||
* Testing.pm: Added basic support for feature testing (only HTTP
|
* Testing.pm: Added basic support for feature testing (only HTTP
|
||||||
testing is supported at the moment).
|
testing is supported at the moment).
|
||||||
|
|
||||||
|
@ -33,6 +33,8 @@
|
|||||||
PERL = perl
|
PERL = perl
|
||||||
PERLRUN = $(PERL) -I$(srcdir)
|
PERLRUN = $(PERL) -I$(srcdir)
|
||||||
|
|
||||||
|
LIBS = @LIBSSL@ @LIBGNUTLS@ @LIBICONV@ @LIBINTL@ @W32LIBS@ @LIBS@
|
||||||
|
|
||||||
.PHONY: test run-unit-tests run-px-tests
|
.PHONY: test run-unit-tests run-px-tests
|
||||||
|
|
||||||
check-local: test
|
check-local: test
|
||||||
@ -131,7 +133,6 @@ EXTRA_DIST = FTPServer.pm FTPTest.pm HTTPServer.pm HTTPTest.pm \
|
|||||||
|
|
||||||
check_PROGRAMS = unit-tests
|
check_PROGRAMS = unit-tests
|
||||||
unit_tests_SOURCES =
|
unit_tests_SOURCES =
|
||||||
LDADD = ../src/libunittest.a ../lib/libgnu.a @LIBSSL@ @LIBGNUTLS@ \
|
LDADD = ../src/libunittest.a ../lib/libgnu.a @MD5_LDADD@ $(LIBS)
|
||||||
@MD5_LDADD@
|
|
||||||
|
|
||||||
CLEANFILES = *~ *.bak core core.[0-9]*
|
CLEANFILES = *~ *.bak core core.[0-9]*
|
||||||
|
Loading…
Reference in New Issue
Block a user