mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
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.
This commit is contained in:
parent
26b6470db3
commit
c95a398deb
1 changed files with 12 additions and 7 deletions
|
@ -37,12 +37,17 @@ $(dir)/parse-time: $(dir)/parse-time.o parse-time-string/parse-time-string.o
|
||||||
|
|
||||||
.PHONY: test check
|
.PHONY: test check
|
||||||
|
|
||||||
TEST_BINARIES=$(dir)/arg-test \
|
test_main_srcs=$(dir)/arg-test.c \
|
||||||
$(dir)/hex-xcode \
|
$(dir)/hex-xcode.c \
|
||||||
$(dir)/random-corpus \
|
$(dir)/random-corpus.c \
|
||||||
$(dir)/parse-time \
|
$(dir)/parse-time.c \
|
||||||
$(dir)/smtp-dummy \
|
$(dir)/smtp-dummy.c \
|
||||||
$(dir)/symbol-test
|
$(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)
|
test-binaries: $(TEST_BINARIES)
|
||||||
|
|
||||||
|
@ -51,7 +56,7 @@ test: all test-binaries
|
||||||
|
|
||||||
check: test
|
check: test
|
||||||
|
|
||||||
SRCS := $(SRCS) $(smtp_dummy_srcs)
|
SRCS := $(SRCS) $(test_srcs)
|
||||||
CLEAN += $(TEST_BINARIES) $(addsuffix .o,$(TEST_BINARIES)) \
|
CLEAN += $(TEST_BINARIES) $(addsuffix .o,$(TEST_BINARIES)) \
|
||||||
$(dir)/database-test.o \
|
$(dir)/database-test.o \
|
||||||
$(dir)/corpus.mail $(dir)/test-results $(dir)/tmp.*
|
$(dir)/corpus.mail $(dir)/test-results $(dir)/tmp.*
|
||||||
|
|
Loading…
Reference in a new issue