enable http test case.

This commit is contained in:
lijia
2024-08-21 10:05:10 +08:00
parent 3cdfabb683
commit baefff5a16
4 changed files with 46 additions and 32 deletions

View File

@@ -138,13 +138,12 @@ int main(int argc, char *argv[])
assert(g_load_result_root != NULL && g_test_result_root != NULL);
}
::testing::InitGoogleTest(&argc, argv);
if (stellar_run(argc - 1, argv + 1) < 0)
{
return -1;
}
struct stellar *st = stellar_new("./conf/stellar.toml", "./plugin/spec.toml", "./conf/log.toml");
stellar_run(st);
if (result_json_path != NULL)
{
ret = RUN_ALL_TESTS();
}
stellar_free(st);
return ret;
}