]> sjero.net Git - wget/commitdiff
Fix unit tests build in a VPATH.
authorGiuseppe Scrivano <gscrivano@gnu.org>
Fri, 7 May 2010 11:10:09 +0000 (13:10 +0200)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Fri, 7 May 2010 11:10:09 +0000 (13:10 +0200)
src/ChangeLog
src/Makefile.am
tests/ChangeLog
tests/Makefile.am

index 73658393c8174777cd3b324b5990013d68ae6532..b0871e7df36c73b14375f37e32beb393357bb7fe 100644 (file)
@@ -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
        include <winsock.h>.
        [! INHIBIT_WRAP]: Remove macro's socket, bind, connect, accept, recv,
        * mswindows.h: Always include <winsock2.h> and <ws2tcpip.h>.  Do not
        include <winsock.h>.
        [! INHIBIT_WRAP]: Remove macro's socket, bind, connect, accept, recv,
index 0d52eb76e43b3bdee7a66db7214000f37f77e0a0..1bb0f1b3585df36ba623dbbe077d49004c4333c5 100644 (file)
@@ -88,7 +88,7 @@ version.c:  $(wget_SOURCES) ../lib/libgnu.a $(MD5_LDADD) \
 check_LIBRARIES = libunittest.a
 libunittest_a_SOURCES = $(wget_SOURCES) test.c build_info.c test.h
 nodist_libunittest_a_SOURCES = version.c
 check_LIBRARIES = libunittest.a
 libunittest_a_SOURCES = $(wget_SOURCES) test.c build_info.c test.h
 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)
 EXTRA_DIST = build_info.c.in
 
 libunittest_a_LIBADD = $(LIBOBJS)
 EXTRA_DIST = build_info.c.in
 
index 09b0fe5857e166a627a2a2870f7c615a7a387415..9bc9748fd6818547ab5d637547ffc429231cc25f 100644 (file)
@@ -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>
 
        * Test-i-ftp.px: Test --input-file in conjunction with FTP.
 2010-03-01  Steven Schubiger  <stsc@member.fsf.org>
 
        * 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-iri-list.px, Test-iri.px: Removed -d from invocation.
        Patch by Mike Frysinger.
        * 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.
        Patch by Mike Frysinger.
-       
+
 2009-09-27  Micah Cowan  <micah@cowan.name>
 
        * Test-idn-cmd.px, Test-idn-headers.px, Test-idn-meta.px,
 2009-09-27  Micah Cowan  <micah@cowan.name>
 
        * 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
        "unknown" exit statuses.
 
        * run-px: Exit with a failure if there were any tests with
        "unknown" exit statuses.
-       
+
        * Test-auth-with-content-disposition.px: New. Test Content-Disposition
        support when HTTP authentication is required.
        * run-px, Makefile.am (EXTRA_DIST): Added
        * Test-auth-with-content-disposition.px: New. Test Content-Disposition
        support when HTTP authentication is required.
        * run-px, Makefile.am (EXTRA_DIST): Added
 2009-08-27  Micah Cowan  <micah@cowan.name>
 
        * WgetTest.pm.in (run): Shift the errcode right by 8 binary places.
 2009-08-27  Micah Cowan  <micah@cowan.name>
 
        * 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-r--no-content-disposition-trivial.px,
        Test--spider-r-HTTP-Content-Disposition.px, Test--spider-r.px,
        * Test--spider-fail.px, Test--spider-r--no-content-disposition.px,
        Test--spider-r--no-content-disposition-trivial.px,
        Test--spider-r-HTTP-Content-Disposition.px, Test--spider-r.px,
        Test-ftp-iri-recursive.px, Test-ftp-iri-disabled.px,
        Test-idn-cmd.px, Test-idn-robots.px: Adjust wget invocations,
        replacing --locale with --local-encoding.
        Test-ftp-iri-recursive.px, Test-ftp-iri-disabled.px,
        Test-idn-cmd.px, Test-idn-robots.px: Adjust wget invocations,
        replacing --locale with --local-encoding.
-       
+
 2009-07-07  Steven Schubiger  <stsc@member.fsf.org>
 
        * Makefile.am: Add IDN/IRI test files and Test-meta-robots.px
 2009-07-07  Steven Schubiger  <stsc@member.fsf.org>
 
        * Makefile.am: Add IDN/IRI test files and Test-meta-robots.px
 2009-07-05  Micah Cowan  <micah@cowan.name>
 
        * Test-meta-robots.px: Added.
 2009-07-05  Micah Cowan  <micah@cowan.name>
 
        * Test-meta-robots.px: Added.
-       
+
        * run-px: Add Test-meta-robots.px to the list.
 
 2009-07-03  Micah Cowan  <micah@cowan.name>
        * run-px: Add Test-meta-robots.px to the list.
 
 2009-07-03  Micah Cowan  <micah@cowan.name>
        path (made necessary by the accompanying change to HTTPServer.pm).
 
 2008-08-14  Xavier Saint <wget@sxav.eu>
        path (made necessary by the accompanying change to HTTPServer.pm).
 
 2008-08-14  Xavier Saint <wget@sxav.eu>
-       
+
        * Test-iri-list.px : Fetch files from a remote list.
 
 2008-08-03  Xavier Saint <wget@sxav.eu>
        * Test-iri-list.px : Fetch files from a remote list.
 
 2008-08-03  Xavier Saint <wget@sxav.eu>
 
        * Makefile.am (run-px-tests): Replaced ugly list of tests with
        run-px Perl script to manage running them.
 
        * Makefile.am (run-px-tests): Replaced ugly list of tests with
        run-px Perl script to manage running them.
-       
+
        * run-px: Added.
 
        * FTPServer.pm (run): Avoid re-forking. Fixes bug #20458.
        * run-px: Added.
 
        * FTPServer.pm (run): Avoid re-forking. Fixes bug #20458.
        * Test-np.px: Added test for -np.
 
        * HTTPTest.pm: Ignore initial '/' character in requested URLs.
        * Test-np.px: Added test for -np.
 
        * HTTPTest.pm: Ignore initial '/' character in requested URLs.
-       
+
 2006-10-12  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
        * Test1.px: Renamed to Test-noop.px.
 2006-10-12  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
        * Test1.px: Renamed to Test-noop.px.
        * Test-O-nonexisting.px: Ditto.
 
        * Test5.px: Renamed to Test-HTTP-Content-Disposition.px.
        * Test-O-nonexisting.px: Ditto.
 
        * 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.
 
        * Test-HTTP-Content-Disposition-2.px: Ditto.
        * Test7.px: Renamed to Test-HTTP-Content-Disposition-2.px.
 
        * Test-HTTP-Content-Disposition-2.px: Ditto.
        * Test-Restrict-Lowercase.px: Ditto.
 
        * Test10.px: Renamed to Test-Restrict-Uppercase.px.
        * Test-Restrict-Lowercase.px: Ditto.
 
        * Test10.px: Renamed to Test-Restrict-Uppercase.px.
-       
+
        * Test-Restrict-Uppercase.px: Ditto.
 
        * Test--spider.px: Added test for spider mode.
        * Test-Restrict-Uppercase.px: Ditto.
 
        * 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-c.px: Added test for --continue mode.
        * Test--spider-r.px: Added test for recursive spider mode.
 
        * Test-c.px: Added test for --continue mode.
        * Test-O.px: Added test for -O.
 
        * Test-N-current.px: Added test for -N.
        * Test-O.px: Added test for -O.
 
        * Test-N-current.px: Added test for -N.
-       
+
        * Test-N-old.px: Added test for -N.
 
        * Test-E-k.px: Added test for -E -k.
        * Test-N-old.px: Added test for -N.
 
        * Test-E-k.px: Added test for -E -k.
 2006-06-13  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
        * Test9.px: Added test for --restrict-file-names=lowercase option.
 2006-06-13  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
        * Test9.px: Added test for --restrict-file-names=lowercase option.
-       
+
        * Test10.px: Added test for --restrict-file-names=uppercase option.
 
 2006-05-26  Mauro Tortonesi  <mauro@ferrara.linux.it>
        * Test10.px: Added test for --restrict-file-names=uppercase option.
 
 2006-05-26  Mauro Tortonesi  <mauro@ferrara.linux.it>
        * Test1.px: Removed unneeded ../src/ from command line.
 
        * Test2.px: Ditto.
        * Test1.px: Removed unneeded ../src/ from command line.
 
        * Test2.px: Ditto.
-       
+
        * Test3.px: Ditto.
        * Test3.px: Ditto.
-       
+
        * Test4.px: Ditto.
 
        * Test5.px: Ditto.
        * Test4.px: Ditto.
 
        * Test5.px: Ditto.
        * Test5.px: Added test for HTTP Content-Disposition support.
 
        * Test6.px: Ditto.
        * Test5.px: Added test for HTTP Content-Disposition support.
 
        * Test6.px: Ditto.
-       
+
        * Test7.px: Ditto.
 
 2006-04-27  Mauro Tortonesi  <mauro@ferrara.linux.it>
        * Test7.px: Ditto.
 
 2006-04-27  Mauro Tortonesi  <mauro@ferrara.linux.it>
-       
+
        * HTTPServer.pm: Serve index.html if no filename is given.
 
        * Test.pm: Added support for pre-existing files.
        * HTTPServer.pm: Serve index.html if no filename is given.
 
        * Test.pm: Added support for pre-existing files.
-       
+
 2006-01-24  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
        * HTTPServer.pm: Enhanced logging support.
 
        * HTTPTest.pm: Updated to new test format.
 2006-01-24  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
        * HTTPServer.pm: Enhanced logging support.
 
        * HTTPTest.pm: Updated to new test format.
-       
+
        * Test.pm: Improved test setup, verification and cleanup. Major
        refactoring.
        * Test.pm: Improved test setup, verification and cleanup. Major
        refactoring.
-       
+
        * Test1.px: Updated to new test format.
 
        * Test2.px: Updated to new test format.
        * Test1.px: Updated to new test format.
 
        * Test2.px: Updated to new test format.
 
        * Test4.px: Added new test for quiet download of nonexistent URL with
        --output-document option.
 
        * Test4.px: Added new test for quiet download of nonexistent URL with
        --output-document option.
-       
+
 2005-12-05  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
        * HTTPServer.pm: Refactored as a subclass of HTTP::Daemon.
        Removed the old run method and renamed the old run_daemon
        method to run.  Added support for partial
 2005-12-05  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
        * HTTPServer.pm: Refactored as a subclass of HTTP::Daemon.
        Removed the old run method and renamed the old run_daemon
        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
        Run_HTTP_Test to run, verify_download to _verify_download
        and added support for timestamp checking.
        * HTTPTest.pm: Refactored as a subclass of Test.  Renamed
        Run_HTTP_Test to run, verify_download to _verify_download
        and added support for timestamp checking.
        testcase.
 
        * test1: Renamed to Test1.px.
        testcase.
 
        * 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.
 
 2005-11-02  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
        * HTTPServer.pm: Added basic support for HTTP testing.
        * Test2.px: Added -N HTTP test.
 
 2005-11-02  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
        * HTTPServer.pm: Added basic support for HTTP testing.
-       
+
        * Testing.pm: Added basic support for feature testing (only HTTP
        testing is supported at the moment).
 
        * Testing.pm: Added basic support for feature testing (only HTTP
        testing is supported at the moment).
 
index e83b03a8c1b4d650b821ef5f70b08839db62fd90..75d9660e31a064912120413ffdf506a18322af8b 100644 (file)
@@ -33,6 +33,8 @@
 PERL     = perl
 PERLRUN = $(PERL) -I$(srcdir)
 
 PERL     = perl
 PERLRUN = $(PERL) -I$(srcdir)
 
+LIBS     = @LIBSSL@ @LIBGNUTLS@ @LIBICONV@ @LIBINTL@ @W32LIBS@ @LIBS@
+
 .PHONY: test run-unit-tests run-px-tests
 
 check-local: test
 .PHONY: test run-unit-tests run-px-tests
 
 check-local: test
@@ -131,7 +133,6 @@ EXTRA_DIST = FTPServer.pm FTPTest.pm HTTPServer.pm HTTPTest.pm \
 
 check_PROGRAMS = unit-tests
 unit_tests_SOURCES =
 
 check_PROGRAMS = unit-tests
 unit_tests_SOURCES =
-LDADD = ../src/libunittest.a ../lib/libgnu.a @LIBSSL@ @LIBGNUTLS@ \
-    @MD5_LDADD@
+LDADD = ../src/libunittest.a ../lib/libgnu.a @MD5_LDADD@ $(LIBS)
 
 CLEANFILES = *~ *.bak core core.[0-9]*
 
 CLEANFILES = *~ *.bak core core.[0-9]*