mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-12-28 01:24:42 +01:00
80a47f1111
WebSocket is a bit weird: 1. It starts like an HTTP connection, but they send special headers. 2. We reply with special headers, one of which involves SHA1 of one of theirs. 3. We are then in WebSocket mode, where each frame starts with a 2-20 byte header. We relay data in a simplistic way: if either side sends something, we read it and relay it synchronously. That avoids any gratuitous buffering. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
25 lines
835 B
Makefile
25 lines
835 B
Makefile
# Note that these actually #include everything they need, except ccan/ and bitcoin/.
|
|
# That allows for unit testing of statics, and special effects.
|
|
CONNECTD_TEST_SRC := $(wildcard connectd/test/run-*.c)
|
|
CONNECTD_TEST_OBJS := $(CONNECTD_TEST_SRC:.c=.o)
|
|
CONNECTD_TEST_PROGRAMS := $(CONNECTD_TEST_OBJS:.o=)
|
|
|
|
CONNECTD_TEST_COMMON_OBJS := \
|
|
common/autodata.o \
|
|
common/features.o \
|
|
common/pseudorand.o \
|
|
common/setup.o \
|
|
common/type_to_string.o \
|
|
common/utils.o
|
|
|
|
ALL_C_SOURCES += $(CONNECTD_TEST_SRC)
|
|
ALL_TEST_PROGRAMS += $(CONNECTD_TEST_PROGRAMS)
|
|
|
|
$(CONNECTD_TEST_PROGRAMS): $(CONNECTD_TEST_COMMON_OBJS) $(BITCOIN_OBJS)
|
|
|
|
# Test objects depend on ../ src and headers.
|
|
$(CONNECTD_TEST_OBJS): $(CONNECTD_HEADERS) $(CONNECTD_SRC) $(WEBSOCKETD_HEADERS) $(WEBSOCKETD_SRC)
|
|
|
|
check-units: $(CONNECTD_TEST_PROGRAMS:%=unittest/%)
|
|
|