From 24d420f20bc98b01dd9b66a1543c50b7df5464a2 Mon Sep 17 00:00:00 2001 From: Tony Finch Date: Tue, 31 May 2022 20:00:40 +0100 Subject: [PATCH] Add missing CFLAGS and LDADD to unit tests A number of unit tests needed to be told where to find their libraries and matching headers. --- tests/isc/Makefile.am | 8 ++++++++ tests/isccfg/Makefile.am | 4 +++- tests/ns/Makefile.am | 4 +++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/tests/isc/Makefile.am b/tests/isc/Makefile.am index 6ce570c882..86983d1fdf 100644 --- a/tests/isc/Makefile.am +++ b/tests/isc/Makefile.am @@ -70,6 +70,14 @@ md_test_LDADD = \ $(LDADD) \ $(OPENSSL_LIBS) +netmgr_test_CPPFLAGS = \ + $(AM_CPPFLAGS) \ + $(OPENSSL_CFLAGS) + +netmgr_test_LDADD = \ + $(LDADD) \ + $(OPENSSL_LIBS) + random_test_LDADD = \ $(LDADD) \ -lm diff --git a/tests/isccfg/Makefile.am b/tests/isccfg/Makefile.am index 73655a5401..5a6fb03ac4 100644 --- a/tests/isccfg/Makefile.am +++ b/tests/isccfg/Makefile.am @@ -4,12 +4,14 @@ AM_CPPFLAGS += \ $(LIBISC_CFLAGS) \ $(LIBDNS_CFLAGS) \ $(LIBISCCFG_CFLAGS) \ + $(LIBUV_CFLAGS) \ -I$(top_srcdir)/lib/isc LDADD += \ $(LIBISC_LIBS) \ $(LIBDNS_LIBS) \ - $(LIBISCCFG_LIBS) + $(LIBISCCFG_LIBS) \ + $(LIBUV_LIBS) check_PROGRAMS = \ duration_test \ diff --git a/tests/ns/Makefile.am b/tests/ns/Makefile.am index 50f87ca40a..33f91d8c7b 100644 --- a/tests/ns/Makefile.am +++ b/tests/ns/Makefile.am @@ -4,13 +4,15 @@ AM_CPPFLAGS += \ $(LIBISC_CFLAGS) \ $(LIBDNS_CFLAGS) \ $(LIBNS_CFLAGS) \ + $(LIBUV_CFLAGS) \ -I$(top_srcdir)/lib/isc \ -I$(top_srcdir)/lib/dns LDADD += \ $(LIBISC_LIBS) \ $(LIBDNS_LIBS) \ - $(LIBNS_LIBS) + $(LIBNS_LIBS) \ + $(LIBUV_LIBS) check_PROGRAMS = \ listenlist_test \