test(ha-config-bootstrap): RED-phase tests for ha-term.bin durability (task 6.1)

5 Unity tests covering persist (req 9.1), restore (req 9.2 RED),
missing-file zero-init (req 9.3), CRC-mismatch safe-zero, and
write+rename atomicity. Build fails with 3 undefined-reference linker
errors on ha_restore_term() — expected RED phase proof.
This commit is contained in:
Rongsong Shen 2026-05-28 10:11:56 +00:00
parent ab174c8b06
commit 722d7824c4
4 changed files with 406 additions and 1 deletions

View file

@ -37,6 +37,7 @@ extern void test_worker_join(void);
extern void test_ha_startup(void);
extern void test_ha_election(void);
extern void test_ha_bootstrap(void);
extern void test_ha_durability(void);
void setUp(void) { return; }
@ -143,6 +144,7 @@ int main(int argc, char* argv[])
TEST(test_ha_startup);
TEST(test_ha_election);
TEST(test_ha_bootstrap);
TEST(test_ha_durability);
return UNITY_END();
}