-include ../../mconfig
-objects = tests.o
-parent_objs = service.o baseproc-service.o proc-service.o control.o dinit-log.o load_service.o dinit.o
+objects = tests.o test-dinit.o
+parent_objs = service.o baseproc-service.o proc-service.o control.o dinit-log.o load_service.o # dinit.o
check: build-tests
./tests
build-tests: tests
tests: $(objects) $(parent_objs)
- $(CXX) $(SANITIZEOPTS) -o tests tests.o $(parent_objs) $(EXTRA_LIBS)
+ $(CXX) $(SANITIZEOPTS) -o tests $(objects) $(parent_objs) $(EXTRA_LIBS)
$(objects): %.o: %.cc
$(CXX) $(CXXOPTS) $(SANITIZEOPTS) -I.. -I../dasynq -c $< -o $@
--- /dev/null
+#include "dasynq.h"
+
+using eventloop_t = dasynq::event_loop<dasynq::null_mutex>;
+
+eventloop_t event_loop;
+
+int active_control_conns = 0;
+
+void open_control_socket(bool report_ro_failure) noexcept
+{
+}
+
+void setup_external_log() noexcept
+{
+}