Skip to content

Commit a9c7c31

Browse files
rafael2kclaude
andcommitted
tests: wire test_freedv_harq into the suite after rebase onto trunk
Rebased mfsk-arq-integration onto mercuryv2 which now carries PR #127's HARQ combined-decode parity gate (freedv_700.c + mpdecode_core.h come in via the base cleanly). Re-add PR #127's test_freedv_harq to this branch's (divergent) tests/Makefile — TEST_BINS entry + build rule — which the rebase dropped while resolving the Makefile toward each MFSK commit. Full suite green incl. test_freedv_harq 3/3. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 7f68d5b commit a9c7c31

1 file changed

Lines changed: 20 additions & 22 deletions

File tree

tests/Makefile

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ ARQ_STUBS = datalink_arq/arq_test_stubs.c
4343

4444
# Test executables
4545
TEST_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)
8283
test_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
133134
test_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+
173171
clean:
174172
rm -f $(TEST_BINS)

0 commit comments

Comments
 (0)