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

@ -27,6 +27,7 @@ extern void test_repl_unit(void);
extern void test_repl_apply(void);
extern void test_persist_repl(void);
extern void test_repl_catchup(void);
extern void test_p2_integration(void);
void setUp(void) { return; }
@ -123,6 +124,7 @@ int main(int argc, char* argv[])
TEST(test_repl_apply);
TEST(test_persist_repl);
TEST(test_repl_catchup);
TEST(test_p2_integration);
return UNITY_END();
}