feat(raft-library): task 1.1 — build scaffold (raft/ files + meson wiring)
This commit is contained in:
parent
dbb750ebd3
commit
7f7de013b9
7 changed files with 225 additions and 0 deletions
|
|
@ -36,6 +36,7 @@ extern void test_cluster(void);
|
|||
extern void test_cluster_parse(void);
|
||||
extern void test_libxce_retry(void);
|
||||
extern void test_netio_on_connected(void);
|
||||
extern void test_raft(void);
|
||||
|
||||
void setUp(void) { return; }
|
||||
|
||||
|
|
@ -141,6 +142,7 @@ int main(int argc, char* argv[])
|
|||
TEST(test_cluster_parse);
|
||||
TEST(test_libxce_retry);
|
||||
TEST(test_netio_on_connected);
|
||||
TEST(test_raft);
|
||||
|
||||
return UNITY_END();
|
||||
}
|
||||
|
|
|
|||
16
src/lib/testsuite/test_raft.c
Normal file
16
src/lib/testsuite/test_raft.c
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#include <stdio.h>
|
||||
|
||||
#include <unity/unity.h>
|
||||
|
||||
static void test_raft_placeholder(void)
|
||||
{
|
||||
/* placeholder — real tests added in task 2 */
|
||||
TEST_PASS();
|
||||
}
|
||||
|
||||
void test_raft(void)
|
||||
{
|
||||
printf("\n>> raft test\n\n");
|
||||
|
||||
RUN_TEST(test_raft_placeholder);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue