2018-01-24 06:24:38 +01:00
|
|
|
BITCOIN_TEST_SRC := $(wildcard bitcoin/test/run-*.c)
|
|
|
|
BITCOIN_TEST_OBJS := $(BITCOIN_TEST_SRC:.c=.o)
|
|
|
|
BITCOIN_TEST_PROGRAMS := $(BITCOIN_TEST_OBJS:.o=)
|
|
|
|
|
2021-09-21 09:23:10 +02:00
|
|
|
BITCOIN_TEST_COMMON_OBJS := common/utils.o common/setup.o common/autodata.o
|
2018-01-24 06:24:38 +01:00
|
|
|
|
2022-07-16 06:55:09 +02:00
|
|
|
$(BITCOIN_TEST_PROGRAMS): $(BITCOIN_TEST_COMMON_OBJS) bitcoin/chainparams.o
|
2018-01-24 06:24:38 +01:00
|
|
|
$(BITCOIN_TEST_OBJS): $(CCAN_HEADERS) $(BITCOIN_HEADERS) $(BITCOIN_SRC)
|
|
|
|
|
|
|
|
ALL_TEST_PROGRAMS += $(BITCOIN_TEST_PROGRAMS)
|
2020-08-31 03:13:25 +02:00
|
|
|
ALL_C_SOURCES += $(BITCOIN_TEST_PROGRAMS:=.c)
|
2018-01-24 06:24:38 +01:00
|
|
|
|
2019-05-16 05:47:36 +02:00
|
|
|
# This needs to know what level of optimization we're using.
|
|
|
|
bitcoin/test/run-secret_eq_consttime.o: CFLAGS += -DCOPTFLAGS="\"${COPTFLAGS}\""
|
2018-01-24 06:24:38 +01:00
|
|
|
|
2019-06-20 20:13:14 +02:00
|
|
|
check-units: $(BITCOIN_TEST_PROGRAMS:%=unittest/%)
|