feature: stellar dev API support stellar_new()/stellar_run()/stellar_free()/stellar_loopbreak()
This commit is contained in:
@@ -176,7 +176,14 @@ static inline void packet_inject_test(struct packet_inject_case *test)
|
||||
snprintf(temp, sizeof(temp), "dumpfile_dir = \"%s\"", dumpfile_dir);
|
||||
EXPECT_TRUE(replace_file_string("./conf/stellar.toml", "mode = marsio", "mode = dumpfile") == 0);
|
||||
EXPECT_TRUE(replace_file_string("./conf/stellar.toml", "dumpfile_dir = \"/tmp/dumpfile/\"", temp) == 0);
|
||||
stellar_run(0, NULL);
|
||||
|
||||
const char *stellar_cfg_file = "./conf/stellar.toml";
|
||||
const char *plugin_cfg_file = "./plugin/spec.toml";
|
||||
const char *log_cfg_file = "./conf/log.toml";
|
||||
struct stellar *st = stellar_new(stellar_cfg_file, plugin_cfg_file, log_cfg_file);
|
||||
EXPECT_TRUE(st != NULL);
|
||||
stellar_run(st);
|
||||
stellar_free(st);
|
||||
|
||||
// compare
|
||||
for (int i = 0; i < MAX_COMPARISON; i++)
|
||||
|
||||
Reference in New Issue
Block a user