This repository was archived by the owner on Aug 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +21
-28
lines changed Expand file tree Collapse file tree 4 files changed +21
-28
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,7 @@ include $(top_srcdir)/Makefile.top
3
3
SUBDIRS = . lib doc
4
4
5
5
# build libtest before fuzz/* and bin/tests
6
- if HAVE_CMOCKA
7
6
SUBDIRS += tests
8
- endif HAVE_CMOCKA
9
7
10
8
# run fuzz tests before system tests
11
9
SUBDIRS += fuzz bin
Original file line number Diff line number Diff line change @@ -6,15 +6,19 @@ AM_CFLAGS += \
6
6
AM_CPPFLAGS += \
7
7
$(LIBISC_CFLAGS ) \
8
8
$(LIBDNS_CFLAGS ) \
9
- $(LIBUV_CFLAGS ) \
10
- -DFUZZDIR=\"$(abs_srcdir ) \"
9
+ $(LIBUV_CFLAGS ) \
10
+ -DFUZZDIR=\"$(abs_srcdir ) \" \
11
+ -I$(top_srcdir ) /lib/dns \
12
+ -I$(top_srcdir ) /lib/isc \
13
+ -I$(top_srcdir ) /tests/include
11
14
12
15
AM_LDFLAGS += \
13
16
$(FUZZ_LDFLAGS )
14
17
15
- LDADD += \
16
- libfuzzmain.la \
17
- $(LIBDNS_LIBS ) \
18
+ LDADD += \
19
+ libfuzzmain.la \
20
+ $(top_builddir ) /tests/libtest/libtest.la \
21
+ $(LIBDNS_LIBS ) \
18
22
$(LIBISC_LIBS )
19
23
20
24
check_LTLIBRARIES = libfuzzmain.la
@@ -28,6 +32,8 @@ check_PROGRAMS = \
28
32
dns_message_parse \
29
33
dns_name_fromtext_target \
30
34
dns_name_fromwire \
35
+ dns_qp \
36
+ dns_qpkey_name \
31
37
dns_rdata_fromtext \
32
38
dns_rdata_fromwire_text \
33
39
isc_lex_getmastertoken \
@@ -51,24 +57,6 @@ dns_name_fromwire_SOURCES = \
51
57
old.c \
52
58
old.h
53
59
54
- if HAVE_CMOCKA
55
-
56
- check_PROGRAMS += \
57
- dns_qp \
58
- dns_qpkey_name
59
-
60
- AM_CPPFLAGS += \
61
- -I$(top_srcdir ) /lib/dns \
62
- -I$(top_srcdir ) /lib/isc \
63
- -I$(top_srcdir ) /tests/include
64
-
65
- # libisc needs to appear after libtest
66
- LDADD += \
67
- $(top_builddir ) /tests/libtest/libtest.la \
68
- $(LIBISC_LIBS )
69
-
70
- endif HAVE_CMOCKA
71
-
72
60
TESTS = $(check_PROGRAMS )
73
61
74
62
if HAVE_FUZZ_LOG_COMPILER
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ LDADD += \
12
12
$(LIBDNS_LIBS ) \
13
13
$(LIBNS_LIBS )
14
14
15
- SUBDIRS = libtest isc dns ns isccfg irs bench
15
+ SUBDIRS = libtest
16
+
17
+ if HAVE_CMOCKA
18
+ SUBDIRS += isc dns ns isccfg irs bench
19
+ endif HAVE_CMOCKA
16
20
17
21
check_PROGRAMS =
Original file line number Diff line number Diff line change @@ -16,13 +16,16 @@ LDADD += \
16
16
noinst_LTLIBRARIES = libtest.la
17
17
18
18
libtest_la_SOURCES = \
19
- ../include/tests/dns.h \
20
19
../include/tests/isc.h \
21
20
../include/tests/ns.h \
22
21
../include/tests/qp.h \
23
- dns.c \
24
22
isc.c \
25
23
ns.c \
26
24
qp.c
25
+ if HAVE_CMOCKA
26
+ libtest_la_SOURCES += \
27
+ ../include/tests/dns.h \
28
+ dns.c
29
+ endif HAVE_CMOCKA
27
30
28
31
include $(top_srcdir ) /Makefile.tests
You can’t perform that action at this time.
0 commit comments