Skip to content

Commit 66f3255

Browse files
committed
tests: split up actual tests and helper files
1 parent 5f0c6a7 commit 66f3255

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/Makefile.test.include

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ RAW_TEST_FILES =
2121

2222
GENERATED_TEST_FILES = $(JSON_TEST_FILES:.json=.json.h) $(RAW_TEST_FILES:.raw=.raw.h)
2323

24+
BITCOIN_TEST_SUITE = \
25+
test/test_bitcoin_main.cpp \
26+
test/test_bitcoin.h \
27+
test/test_bitcoin.cpp
28+
2429
# test_bitcoin binary #
2530
BITCOIN_TESTS =\
2631
test/arith_uint256_tests.cpp \
@@ -76,9 +81,6 @@ BITCOIN_TESTS =\
7681
test/sigopcount_tests.cpp \
7782
test/skiplist_tests.cpp \
7883
test/streams_tests.cpp \
79-
test/test_bitcoin.cpp \
80-
test/test_bitcoin.h \
81-
test/test_bitcoin_main.cpp \
8284
test/timedata_tests.cpp \
8385
test/torcontrol_tests.cpp \
8486
test/transaction_tests.cpp \
@@ -90,15 +92,17 @@ BITCOIN_TESTS =\
9092

9193
if ENABLE_WALLET
9294
BITCOIN_TESTS += \
93-
wallet/test/wallet_test_fixture.cpp \
94-
wallet/test/wallet_test_fixture.h \
9595
wallet/test/accounting_tests.cpp \
9696
wallet/test/wallet_tests.cpp \
9797
wallet/test/crypto_tests.cpp \
9898
wallet/test/coinselector_tests.cpp
99+
100+
BITCOIN_TEST_SUITE += \
101+
wallet/test/wallet_test_fixture.cpp \
102+
wallet/test/wallet_test_fixture.h
99103
endif
100104

101-
test_test_bitcoin_SOURCES = $(BITCOIN_TESTS) $(JSON_TEST_FILES) $(RAW_TEST_FILES)
105+
test_test_bitcoin_SOURCES = $(BITCOIN_TEST_SUITE) $(BITCOIN_TESTS) $(JSON_TEST_FILES) $(RAW_TEST_FILES)
102106
test_test_bitcoin_CPPFLAGS = $(AM_CPPFLAGS) $(BITCOIN_INCLUDES) $(TESTDEFS) $(EVENT_CFLAGS)
103107
test_test_bitcoin_LDADD =
104108
if ENABLE_WALLET

0 commit comments

Comments
 (0)