include $(top_srcdir)/src/Common.am
include $(top_srcdir)/src/TestHeaders.am
-noinst_LTLIBRARIES = libcomm.la
+noinst_LTLIBRARIES = \
+ libcomm.la \
+ libminimal.la
## Library holding comm socket handlers
libcomm_la_SOURCES = \
Write.h \
comm_internal.h \
forward.h
+
+# a bare-bones implementation of few Comm APIs sufficient for helpers use
+libminimal_la_SOURCES = \
+ minimal.cc
--- /dev/null
+/*
+ * Copyright (C) 1996-2022 The Squid Software Foundation and contributors
+ *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
+ */
+
+#include "squid.h"
+#include "debug/Stream.h"
+#include "fd.h"
+
+void
+fd_open(const int fd, unsigned int, const char *description)
+{
+ debugs(51, 3, "FD " << fd << ' ' << description);
+}
+
+void
+fd_close(const int fd)
+{
+ debugs(51, 3, "FD " << fd);
+}
+
COPIED_SOURCE= \
globals.cc \
SquidConfig.cc \
- tests/stub_fd.cc \
tests/stub_HelperChildConfig.cc \
tests/STUB.h \
time.cc
$(top_builddir)/src/ip/libip.la \
$(top_builddir)/src/sbuf/libsbuf.la \
$(top_builddir)/src/debug/libdebug.la \
+ $(top_builddir)/src/comm/libminimal.la \
$(top_builddir)/src/base/libbase.la \
$(top_builddir)/src/mem/libminimal.la \
$(COMPAT_LIB) \
tests/stub_HelperChildConfig.cc: $(top_srcdir)/src/tests/stub_HelperChildConfig.cc | tests
cp $(top_srcdir)/src/tests/stub_HelperChildConfig.cc $@
-tests/stub_fd.cc: $(top_srcdir)/src/tests/stub_fd.cc | tests
- cp $(top_srcdir)/src/tests/stub_fd.cc $@
-
tests/STUB.h: $(top_srcdir)/src/tests/STUB.h | tests
cp $(top_srcdir)/src/tests/STUB.h $@
stub_SBuf.cc \
stub_tools.cc \
stub_fatal.cc \
- stub_fd.cc \
STUB.h
DEBUG_SOURCE = test_tools.cc $(STUBS)
CLEANFILES += $(STUBS) stub_libmem.cc
stub_fatal.cc: $(top_srcdir)/src/tests/stub_fatal.cc
cp $(top_srcdir)/src/tests/stub_fatal.cc $@
-stub_fd.cc: $(top_srcdir)/src/tests/stub_fd.cc
- cp $(top_srcdir)/src/tests/stub_fd.cc $@
-
stub_libmem.cc: $(top_srcdir)/src/tests/stub_libmem.cc STUB.h
cp $(top_srcdir)/src/tests/stub_libmem.cc $@
stub_libmem.cc
ESIExpressions_LDADD = $(top_builddir)/src/esi/Expression.o \
$(top_builddir)/src/debug/libdebug.la \
+ $(top_builddir)/src/comm/libminimal.la \
$(LDADD)
mem_node_test_SOURCES = \
$(top_builddir)/src/mem_node.o \
$(top_builddir)/src/mem/libmem.la \
$(top_builddir)/src/debug/libdebug.la \
+ $(top_builddir)/src/comm/libminimal.la \
$(LDADD)
mem_hdr_test_SOURCES = \
$(top_builddir)/src/mem_node.o \
$(top_builddir)/src/mem/libmem.la \
$(top_builddir)/src/debug/libdebug.la \
+ $(top_builddir)/src/comm/libminimal.la \
$(LDADD)
splay_SOURCES = \