Moved client-server tests to dedicated dir

This commit is contained in:
Evgeny Grin (Karlson2k)
2024-07-22 16:55:52 +02:00
parent fa9eabada5
commit 60c4b8a0e5
9 changed files with 45 additions and 21 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
# This Makefile.am is in the public domain
SUBDIRS = basic
SUBDIRS = basic client_server
.NOTPARALLEL:
-19
View File
@@ -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
+44
View File
@@ -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