@@ -43,9 +43,10 @@ ARQ_STUBS = datalink_arq/arq_test_stubs.c
4343
4444# Test executables
4545TEST_BINS = test_ring_buffer test_arq_protocol test_arq_timing test_arq_fsm \
46- test_tcp_interfaces test_resampler test_arq_ladder test_arq_sim test_arq_conn test_cfg_utils \
47- test_arq_tnc test_channel_busy test_mfsk test_mfsk_modem test_pattern_ack_detection test_arq_olla \
48- test_pcm24 test_freedv_harq test_sock_wire test_virtual_clock
46+ test_tcp_interfaces test_resampler test_arq_ladder test_arq_sim \
47+ test_arq_conn test_cfg_utils test_arq_tnc test_channel_busy test_mfsk \
48+ test_mfsk_modem test_pattern_ack_detection test_freedv_harq \
49+ test_pcm24 test_sock_wire test_virtual_clock
4950
5051.PHONY : all test clean
5152
@@ -80,7 +81,7 @@ test_arq_protocol: datalink_arq/test_arq_protocol.c $(UNITY_SRC) $(ARQ_STUBS) \
8081
8182# Delivery-driven ladder test (deterministic climb/drop, MFSK start, BW clamp)
8283test_arq_ladder : datalink_arq/test_arq_ladder.c $(UNITY_SRC ) $(ARQ_STUBS ) \
83- ../datalink_arq/arq_fsm.c \
84+ ../datalink_arq/arq_fsm.c ../common/virtual_clock.c \
8485 ../datalink_arq/arq_protocol.c ../datalink_arq/arq_timing.c \
8586 ../datalink_arq/arith.c
8687 $(CC) $(CFLAGS) -I../modem/freedv -o $@ $^ $(LDFLAGS) -lm
@@ -133,24 +134,8 @@ test_arq_tnc: datalink_arq/test_arq_tnc.c $(UNITY_SRC) ../datalink_arq/arq_tnc.c
133134test_channel_busy : modem/test_channel_busy.c $(UNITY_SRC ) ../modem/channel_busy.c
134135 $(CC ) $(CFLAGS ) -I../modem -o $@ $^ $(LDFLAGS ) -lm
135136
136- # HARQ combined-decode acceptance gate (drives the real DATAC15 \
137- LDPC decoder) test_freedv_harq: modem/test_freedv_harq.c \
138- $(UNITY_SRC) ../modem/freedv/mpdecode_core.c \
139- ../modem/freedv/phi0.c ../modem/freedv/H_256_768_22.c $(CC) \
140- $(CFLAGS) -I../modem/freedv -o $@ $^ $(LDFLAGS) -lm # -x sock \
141- wire codec: byte-exact pin of the lockstep frame layout \
142- test_sock_wire: audioio/test_sock_wire.c $(UNITY_SRC) $(CC) \
143- $(CFLAGS) -I../audioio -o $@ $^ $(LDFLAGS) # Virtual clock (time \
144- base for -x sock); hermes_uptime_ms stubbed in-test \
145- test_virtual_clock: common/test_virtual_clock.c $(UNITY_SRC) \
146- ../common/virtual_clock.c $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) # \
147- MFSK codec test (mod/demod round-trip + modulation-order gain) \
148- test_mfsk: modem/test_mfsk.c $(UNITY_SRC) ../modem/mfsk.c \
149- round-trip, gain, OFDM framing) ../modem/mfsk_ofdm.c \
150- ../modem/mfsk_sync.c ../modem/mfsk_ldpc.c \
151- ../modem/mfsk_ldpc_1_16.c ../modem/mfsk_ldpc_2_16.c \
152- ../modem/mfsk_ldpc_3_16.c ../modem/mfsk_ldpc_5_16.c \
153- ../modem/mfsk_ldpc_8_16.c
137+ # MFSK codec test (mod/demod round-trip, modulation-order gain, OFDM framing)
138+ test_mfsk : modem/test_mfsk.c $(UNITY_SRC ) ../modem/mfsk.c ../modem/mfsk_ofdm.c ../modem/mfsk_sync.c ../modem/mfsk_ldpc.c ../modem/mfsk_ldpc_1_16.c ../modem/mfsk_ldpc_2_16.c ../modem/mfsk_ldpc_3_16.c ../modem/mfsk_ldpc_5_16.c ../modem/mfsk_ldpc_8_16.c
154139 $(CC ) $(CFLAGS ) -I../modem -o $@ $^ $(LDFLAGS ) -lm
155140
156141# MFSK modem backend (burst TX/RX through the vtable); links libfreedvdata for CRC16
@@ -170,5 +155,18 @@ test_pattern_ack_detection: modem/test_pattern_ack_detection.c $(UNITY_SRC) \
170155 ../modem/modem_mfsk.c $(MFSK_SRC)
171156 $(CC) $(CFLAGS) -I../modem -I../modem/freedv -o $@ $^ ../modem/freedv/libfreedvdata.a $(LDFLAGS) -lm
172157
158+ # HARQ combined-decode acceptance gate (drives the real DATAC15 LDPC decoder)
159+ test_freedv_harq : modem/test_freedv_harq.c $(UNITY_SRC ) \
160+ ../modem/freedv/mpdecode_core.c ../modem/freedv/phi0.c \
161+ ../modem/freedv/H_256_768_22.c
162+ $(CC) $(CFLAGS) -I../modem/freedv -o $@ $^ $(LDFLAGS) -lm
163+ # -x sock wire codec: byte-exact pin of the lockstep frame layout
164+ test_sock_wire : audioio/test_sock_wire.c $(UNITY_SRC )
165+ $(CC ) $(CFLAGS ) -I../audioio -o $@ $^ $(LDFLAGS )
166+
167+ # Virtual clock (time base for -x sock); hermes_uptime_ms stubbed in-test
168+ test_virtual_clock : common/test_virtual_clock.c $(UNITY_SRC ) ../common/virtual_clock.c
169+ $(CC ) $(CFLAGS ) -o $@ $^ $(LDFLAGS )
170+
173171clean :
174172 rm -f $(TEST_BINS )
0 commit comments