test: P2-6 replication integration tests — trim, degraded mode, catch-up lifecycle (P2 gate)

Add test_p2_integration.c with 7 integration tests covering the assembled P2
replication system: WAL_CHECKPOINT assert invariant, trim_lsn with active standby,
checkpoint must not update last_replicated_crc, sync degraded mode, full catch-up
lifecycle, needs_snapshot boundary conditions, and API completeness gate.

All 32 controller unit tests pass (0 failures).
This commit is contained in:
Rongsong Shen 2026-05-07 18:41:10 +00:00
parent 6e4fd1aa81
commit 6bae7b382c
3 changed files with 218 additions and 0 deletions

View file

@ -92,6 +92,7 @@ controller_unit_test_src = [
'testsuite/test_repl_apply.c',
'testsuite/test_persist_repl.c',
'testsuite/test_repl_catchup.c',
'testsuite/test_p2_integration.c',
'persist.c',
'ha.c',
'repl.c',