aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/Makefile.local
diff options
context:
space:
mode:
authorGravatar Austin Clements <amdragon@MIT.EDU>2014-07-31 22:09:51 -0400
committerGravatar David Bremner <david@tethera.net>2014-08-06 09:56:25 -0300
commitc95a398debc99ecc43d451e34d85c97e57c39b42 (patch)
tree12a0a65195c39c4f9a17746929b6e210bd39e353 /test/Makefile.local
parent26b6470db350cc4b319934c1caff261ada12b4bb (diff)
test: Include generated dependencies for test sources
Previously the build system was generating automatic header dependencies for test sources, but only smtp-dummy was in SRCS, so only its dependencies were being included. Add all of the test sources to SRCS so that the root Makefile.local includes their dependencies.
Diffstat (limited to 'test/Makefile.local')
-rw-r--r--test/Makefile.local19
1 files changed, 12 insertions, 7 deletions
diff --git a/test/Makefile.local b/test/Makefile.local
index 1c85b18a..916dd0bd 100644
--- a/test/Makefile.local
+++ b/test/Makefile.local
@@ -37,12 +37,17 @@ $(dir)/parse-time: $(dir)/parse-time.o parse-time-string/parse-time-string.o
.PHONY: test check
-TEST_BINARIES=$(dir)/arg-test \
- $(dir)/hex-xcode \
- $(dir)/random-corpus \
- $(dir)/parse-time \
- $(dir)/smtp-dummy \
- $(dir)/symbol-test
+test_main_srcs=$(dir)/arg-test.c \
+ $(dir)/hex-xcode.c \
+ $(dir)/random-corpus.c \
+ $(dir)/parse-time.c \
+ $(dir)/smtp-dummy.c \
+ $(dir)/symbol-test.cc \
+
+test_srcs=$(test_main_srcs) $(dir)/database-test.c
+
+TEST_BINARIES := $(test_main_srcs:.c=)
+TEST_BINARIES := $(TEST_BINARIES:.cc=)
test-binaries: $(TEST_BINARIES)
@@ -51,7 +56,7 @@ test: all test-binaries
check: test
-SRCS := $(SRCS) $(smtp_dummy_srcs)
+SRCS := $(SRCS) $(test_srcs)
CLEAN += $(TEST_BINARIES) $(addsuffix .o,$(TEST_BINARIES)) \
$(dir)/database-test.o \
$(dir)/corpus.mail $(dir)/test-results $(dir)/tmp.*