mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
Moved client-server tests to dedicated dir
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
# This Makefile.am is in the public domain
|
||||
|
||||
SUBDIRS = basic
|
||||
|
||||
SUBDIRS = basic client_server
|
||||
|
||||
.NOTPARALLEL:
|
||||
|
||||
@@ -17,18 +17,6 @@ if USE_COVERAGE
|
||||
AM_CFLAGS += -fprofile-arcs -ftest-coverage
|
||||
endif
|
||||
|
||||
noinst_LTLIBRARIES = \
|
||||
libmhdt.la
|
||||
|
||||
libmhdt_la_SOURCES = \
|
||||
libtest.c libtest.h \
|
||||
libtest_convenience.c \
|
||||
libtest_convenience_client_request.c \
|
||||
libtest_convenience_server_reply.c
|
||||
libmhdt_la_LIBADD = \
|
||||
-lpthread \
|
||||
-lcurl
|
||||
|
||||
LDADD = $(top_builddir)/src/mhd2/libmicrohttpd2.la
|
||||
|
||||
$(top_builddir)/src/mhd2/libmicrohttpd2.la: $(top_builddir)/src/mhd2/Makefile
|
||||
@@ -36,7 +24,6 @@ $(top_builddir)/src/mhd2/libmicrohttpd2.la: $(top_builddir)/src/mhd2/Makefile
|
||||
$(am__cd) $(top_builddir)/src/mhd2 && $(MAKE) $(AM_MAKEFLAGS) libmicrohttpd2.la
|
||||
|
||||
check_PROGRAMS = \
|
||||
test_client_server \
|
||||
test_create_destroy \
|
||||
test_create_start_destroy \
|
||||
test_create_destroy_ipv4 \
|
||||
@@ -117,12 +104,6 @@ endif
|
||||
|
||||
TESTS = $(check_PROGRAMS)
|
||||
|
||||
test_client_server_SOURCES = \
|
||||
test_client_server.c
|
||||
test_client_server_LDADD = \
|
||||
libmhdt.la \
|
||||
$(top_builddir)/src/mhd2/libmicrohttpd2.la
|
||||
|
||||
# The universal sources used in all tests
|
||||
basic_test_sources = test_basic_checks.c
|
||||
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
# This Makefile.am is in the public domain
|
||||
EMPTY_ITEM =
|
||||
|
||||
AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/include \
|
||||
-I$(top_srcdir)/src/mhd2 \
|
||||
-DMHD_CPU_COUNT=$(CPU_COUNT) \
|
||||
$(CPPFLAGS_ac)
|
||||
|
||||
AM_CFLAGS = $(CFLAGS_ac)
|
||||
|
||||
AM_LDFLAGS = $(LDFLAGS_ac)
|
||||
|
||||
AM_TESTS_ENVIRONMENT = $(TESTS_ENVIRONMENT_ac)
|
||||
|
||||
if USE_COVERAGE
|
||||
AM_CFLAGS += -fprofile-arcs -ftest-coverage
|
||||
endif
|
||||
|
||||
LDADD = $(top_builddir)/src/mhd2/libmicrohttpd2.la
|
||||
|
||||
$(top_builddir)/src/mhd2/libmicrohttpd2.la: $(top_builddir)/src/mhd2/Makefile
|
||||
@echo ' cd $(top_builddir)/src/mhd2 && $(MAKE) $(AM_MAKEFLAGS) libmicrohttpd2.la'; \
|
||||
$(am__cd) $(top_builddir)/src/mhd2 && $(MAKE) $(AM_MAKEFLAGS) libmicrohttpd2.la
|
||||
|
||||
check_PROGRAMS = \
|
||||
test_client_server \
|
||||
|
||||
noinst_LTLIBRARIES = \
|
||||
libmhdt.la
|
||||
|
||||
libmhdt_la_SOURCES = \
|
||||
libtest.c libtest.h \
|
||||
libtest_convenience.c \
|
||||
libtest_convenience_client_request.c \
|
||||
libtest_convenience_server_reply.c
|
||||
libmhdt_la_LIBADD = \
|
||||
-lpthread \
|
||||
-lcurl
|
||||
|
||||
test_client_server_SOURCES = \
|
||||
test_client_server.c
|
||||
test_client_server_LDADD = \
|
||||
libmhdt.la
|
||||
Reference in New Issue
Block a user