2017-11-01 01:58:25 +00:00
|
|
|
COMMON_TEST_SRC := $(wildcard common/test/run-*.c)
|
2020-09-09 11:10:29 +01:00
|
|
|
|
2017-09-11 05:49:48 +01:00
|
|
|
COMMON_TEST_OBJS := $(COMMON_TEST_SRC:.c=.o)
|
|
|
|
COMMON_TEST_PROGRAMS := $(COMMON_TEST_OBJS:.o=)
|
2017-08-28 17:13:01 +01:00
|
|
|
|
|
|
|
COMMON_TEST_COMMON_OBJS := \
|
2021-09-21 08:23:10 +01:00
|
|
|
common/autodata.o \
|
2020-05-15 23:13:22 +01:00
|
|
|
common/setup.o \
|
2017-08-28 17:13:01 +01:00
|
|
|
common/utils.o
|
|
|
|
|
2017-09-11 05:49:48 +01:00
|
|
|
$(COMMON_TEST_PROGRAMS): $(COMMON_TEST_COMMON_OBJS) $(BITCOIN_OBJS)
|
2017-11-24 04:12:55 +00:00
|
|
|
$(COMMON_TEST_OBJS): $(COMMON_HEADERS) $(WIRE_HEADERS) $(COMMON_SRC)
|
2017-08-28 17:13:01 +01:00
|
|
|
|
2020-08-31 02:13:25 +01:00
|
|
|
ALL_C_SOURCES += $(COMMON_TEST_SRC)
|
2017-08-28 17:13:01 +01:00
|
|
|
ALL_TEST_PROGRAMS += $(COMMON_TEST_PROGRAMS)
|
|
|
|
|
2019-11-14 00:14:53 +00:00
|
|
|
# Sphinx test wants to decode TLVs.
|
2023-05-22 01:51:44 +01:00
|
|
|
common/test/run-sphinx: wire/onion_wiregen.o wire/towire.o wire/fromwire.o
|
|
|
|
common/test/run-blindedpath_enctlv common/test/run-blindedpath_onion: common/base32.o common/wireaddr.o wire/onion_wiregen.o wire/peer_wiregen.o wire/towire.o wire/fromwire.o wire/tlvstream.o
|
|
|
|
common/test/run-route_blinding_test: wire/onion_wiregen.o wire/peer_wiregen.o wire/towire.o wire/fromwire.o wire/tlvstream.o common/coin_mvt.o
|
|
|
|
common/test/run-route_blinding_override_test: common/base32.o common/wireaddr.o wire/onion_wiregen.o wire/peer_wiregen.o wire/towire.o wire/fromwire.o wire/tlvstream.o common/coin_mvt.o
|
2019-11-14 00:14:53 +00:00
|
|
|
|
2020-01-26 12:07:50 +00:00
|
|
|
common/test/run-param \
|
|
|
|
common/test/run-json: \
|
|
|
|
common/amount.o \
|
|
|
|
common/base32.o \
|
|
|
|
common/bigsize.o \
|
2021-07-02 22:00:17 +01:00
|
|
|
common/channel_id.o \
|
2022-02-16 21:36:47 +00:00
|
|
|
common/coin_mvt.o \
|
2020-01-26 12:07:50 +00:00
|
|
|
common/json_stream.o \
|
2021-07-02 22:00:17 +01:00
|
|
|
common/lease_rates.o \
|
|
|
|
common/node_id.o \
|
|
|
|
common/pseudorand.o \
|
2020-01-26 12:07:50 +00:00
|
|
|
common/type_to_string.o \
|
2021-10-12 12:16:37 +01:00
|
|
|
common/wireaddr.o \
|
2020-01-26 12:07:50 +00:00
|
|
|
wire/fromwire.o \
|
2023-05-22 01:51:44 +01:00
|
|
|
wire/onion_wiregen.o \
|
|
|
|
wire/peer_wiregen.o \
|
2020-01-26 12:07:50 +00:00
|
|
|
wire/towire.o
|
|
|
|
|
2021-05-21 06:21:05 +01:00
|
|
|
common/test/run-route common/test/run-route-specific: \
|
|
|
|
common/amount.o \
|
|
|
|
common/dijkstra.o \
|
2023-05-22 01:51:44 +01:00
|
|
|
common/fp16.o \
|
2021-05-21 06:21:05 +01:00
|
|
|
common/gossmap.o \
|
|
|
|
common/node_id.o \
|
|
|
|
common/pseudorand.o \
|
|
|
|
common/route.o \
|
|
|
|
wire/fromwire.o \
|
2023-05-22 01:51:44 +01:00
|
|
|
wire/peer_wiregen.o \
|
2021-05-21 06:21:05 +01:00
|
|
|
wire/towire.o
|
|
|
|
|
2021-05-22 06:00:22 +01:00
|
|
|
common/test/run-gossmap_local: \
|
2021-10-12 12:16:37 +01:00
|
|
|
common/base32.o \
|
|
|
|
common/wireaddr.o \
|
2021-05-22 06:00:22 +01:00
|
|
|
wire/fromwire.o \
|
2023-05-22 01:51:44 +01:00
|
|
|
wire/peer_wiregen.o \
|
2021-06-10 18:54:08 +01:00
|
|
|
wire/tlvstream.o \
|
2021-05-22 06:00:22 +01:00
|
|
|
wire/towire.o
|
2021-05-21 06:21:05 +01:00
|
|
|
|
2022-07-04 05:44:06 +01:00
|
|
|
common/test/run-gossmap_canned: \
|
|
|
|
common/base32.o \
|
|
|
|
common/wireaddr.o \
|
|
|
|
wire/fromwire.o \
|
2023-05-22 01:51:44 +01:00
|
|
|
wire/peer_wiregen.o \
|
2022-07-04 05:44:06 +01:00
|
|
|
wire/tlvstream.o \
|
|
|
|
wire/towire.o
|
|
|
|
|
2021-07-05 12:26:39 +01:00
|
|
|
common/test/run-bolt12_merkle: \
|
|
|
|
common/amount.o \
|
|
|
|
common/bigsize.o \
|
2021-10-12 12:16:37 +01:00
|
|
|
common/base32.o \
|
2021-07-05 12:26:39 +01:00
|
|
|
common/bech32.o \
|
|
|
|
common/bech32_util.o \
|
|
|
|
common/bolt12.o \
|
|
|
|
common/node_id.o \
|
|
|
|
common/type_to_string.o \
|
2021-10-12 12:16:37 +01:00
|
|
|
common/wireaddr.o \
|
2023-05-22 01:51:44 +01:00
|
|
|
wire/bolt12_wiregen.o \
|
2021-07-05 12:26:39 +01:00
|
|
|
wire/fromwire.o \
|
|
|
|
wire/tlvstream.o \
|
2023-05-22 01:51:44 +01:00
|
|
|
wire/peer_wiregen.o \
|
2021-07-05 12:26:39 +01:00
|
|
|
wire/towire.o
|
|
|
|
|
2023-05-22 22:52:40 +01:00
|
|
|
common/test/run-bolt12-format-string-test: \
|
|
|
|
common/amount.o \
|
|
|
|
common/bigsize.o \
|
|
|
|
common/base32.o \
|
|
|
|
common/bech32.o \
|
|
|
|
common/bech32_util.o \
|
|
|
|
common/bolt12.o \
|
|
|
|
common/node_id.o \
|
|
|
|
wire/bolt12$(EXP)_wiregen.o \
|
|
|
|
wire/tlvstream.o \
|
|
|
|
wire/towire.o
|
|
|
|
|
2021-10-12 12:16:37 +01:00
|
|
|
common/test/run-bolt12_merkle-json: \
|
|
|
|
common/base32.o \
|
|
|
|
common/wireaddr.o
|
2021-07-05 12:26:39 +01:00
|
|
|
|
2023-01-06 14:09:55 +00:00
|
|
|
|
|
|
|
common/test/run-version: \
|
|
|
|
common/amount.o \
|
|
|
|
wire/fromwire.o \
|
|
|
|
wire/towire.o
|
|
|
|
|
|
|
|
|
2019-06-20 19:13:14 +01:00
|
|
|
check-units: $(COMMON_TEST_PROGRAMS:%=unittest/%)
|