GTest TAPI usage scenarios
Wrap GTest
int main(int argc, char *argv[]) { tapi_gtest gtest; tapi_job_factory_t *factory; TEST_START; TEST_GET_GTEST_PARAM(gtest); CHECK_RC(tapi_job_factory_rpc_create(rpcs, &factory)); CHECK_RC(tapi_gtest_init(>est, factory)); CHECK_RC(tapi_gtest_start(>est)); CHECK_RC(tapi_gtest_wait(>est, TE_SEC2MS(10))); TEST_SUCCESS; cleanup: CLEANUP_CHECK_RC(tapi_gtest_fini(>est)); tapi_job_factory_destroy(factory); TEST_END; }