1
0
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:
Giuseppe Scrivano 2010-05-07 13:10:09 +02:00
parent b2e34eb6a9
commit 5a97871f5d
4 changed files with 41 additions and 33 deletions

View File

@ -1,5 +1,7 @@
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,

View 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
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

View 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.

View File

@ -33,6 +33,8 @@
PERL = perl
PERLRUN = $(PERL) -I$(srcdir)
LIBS = @LIBSSL@ @LIBGNUTLS@ @LIBICONV@ @LIBINTL@ @W32LIBS@ @LIBS@
.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 =
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]*