mirror of
https://github.com/curl/curl.git
synced 2026-08-24 10:33:31 +03:00
unit tests: more build adjustments
This commit is contained in:
parent
d6bb8dcc23
commit
aa76dec33a
5 changed files with 25 additions and 25 deletions
|
|
@ -30,7 +30,14 @@ EXTRA_DIST = ftpserver.pl httpserver.pl secureserver.pl runtests.pl getpart.pm \
|
|||
serverhelp.pm tftpserver.pl rtspserver.pl directories.pm symbol-scan.pl \
|
||||
certs/srp-verifier-conf certs/srp-verifier-db
|
||||
|
||||
SUBDIRS = data server libtest unit
|
||||
if BUILD_UNITTESTS
|
||||
BUILD_UNIT = unit
|
||||
else
|
||||
BUILD_UNIT =
|
||||
endif
|
||||
|
||||
SUBDIRS = data server libtest $(BUILD_UNIT)
|
||||
DIST_SUBDIRS = $(SUBDIRS) unit
|
||||
|
||||
PERLFLAGS = -I$(srcdir)
|
||||
|
||||
|
|
|
|||
|
|
@ -48,30 +48,21 @@ INCLUDES = -I$(top_builddir)/include/curl \
|
|||
-I$(top_builddir)/include \
|
||||
-I$(top_srcdir)/include \
|
||||
-I$(top_builddir)/lib \
|
||||
-I$(top_srcdir)/lib \
|
||||
-I$(top_srcdir)/lib \
|
||||
-I$(top_srcdir)/tests/libtest
|
||||
endif
|
||||
|
||||
if CURLDEBUG
|
||||
|
||||
EXTRA_DIST = Makefile.inc
|
||||
|
||||
LDADD = $(top_builddir)/lib/libcurlu.la @CURL_LIBS@
|
||||
DEPENDENCIES = $(top_builddir)/lib/libcurlu.la
|
||||
AM_CPPFLAGS = -DUNITTESTS
|
||||
|
||||
# Makefile.inc provides the source defines (TESTUTIL, SUPPORTFILES,
|
||||
# noinst_PROGRAMS, lib*_SOURCES, and lib*_CFLAGS)
|
||||
# Makefile.inc provides neat definitions
|
||||
include Makefile.inc
|
||||
|
||||
if NO_UNDEFINED
|
||||
# The -no-undefined flag is crucial to build fine on some platforms
|
||||
UNDEF = -no-undefined
|
||||
endif
|
||||
|
||||
|
||||
if BUILD_UNITTESTS
|
||||
noinst_PROGRAMS = $(UNITPROGS)
|
||||
else
|
||||
# do nothing if debug was not enabled
|
||||
all:
|
||||
|
||||
noinst_PROGRAMS =
|
||||
endif
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ UNITFILES = curlcheck.h \
|
|||
$(top_srcdir)/tests/libtest/first.c
|
||||
|
||||
# These are all unit test programs
|
||||
noinst_PROGRAMS = unit1300 unit1301 unit1302 unit1303 unit1304 unit1305 unit1307
|
||||
UNITPROGS = unit1300 unit1301 unit1302 unit1303 unit1304 unit1305 unit1307
|
||||
|
||||
unit1300_SOURCES = unit1300.c $(UNITFILES)
|
||||
unit1301_SOURCES = unit1301.c $(UNITFILES)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue