aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-19 19:10:28 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-19 19:10:28 -0400
commitb63d6984a612aaeaa5f71e213b4f7a89644559b2 (patch)
treed05f39c527ea10449164145ca574559ef822ed5f /src/or
parentf3267741e45c7944196696c51b81d76201af1e76 (diff)
parente309aa4c8c49eb683a6f192d555d4614c849c71d (diff)
downloadtor-b63d6984a612aaeaa5f71e213b4f7a89644559b2.tar.gz
tor-b63d6984a612aaeaa5f71e213b4f7a89644559b2.zip
Merge branch 'maint-0.3.4'
Diffstat (limited to 'src/or')
-rw-r--r--src/or/include.am9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/or/include.am b/src/or/include.am
index 49b07efe31..11e1a7c864 100644
--- a/src/or/include.am
+++ b/src/or/include.am
@@ -116,8 +116,9 @@ LIBTOR_A_SOURCES = \
# Modules are conditionnally compiled in tor starting here. We add the C files
# only if the modules has been enabled at configure time. We always add the
# source files of every module to libtor-testing.a so we can build the unit
-# tests for everything.
+# tests for everything. See the UNITTESTS_ENABLED branch below.
#
+LIBTOR_TESTING_A_SOURCES = $(LIBTOR_A_SOURCES)
# The Directory Authority module.
MODULE_DIRAUTH_SOURCES = \
@@ -131,7 +132,11 @@ endif
src_or_libtor_a_SOURCES = $(LIBTOR_A_SOURCES)
if UNITTESTS_ENABLED
-src_or_libtor_testing_a_SOURCES = $(LIBTOR_A_SOURCES)
+
+# Add the sources of the modules that are needed for tests to work here.
+LIBTOR_TESTING_A_SOURCES += $(MODULE_DIRAUTH_SOURCES)
+
+src_or_libtor_testing_a_SOURCES = $(LIBTOR_TESTING_A_SOURCES)
else
src_or_libtor_testing_a_SOURCES =
endif