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(&gtest, factory));
    CHECK_RC(tapi_gtest_start(&gtest));
    CHECK_RC(tapi_gtest_wait(&gtest, TE_SEC2MS(10)));

    TEST_SUCCESS;

cleanup:
    CLEANUP_CHECK_RC(tapi_gtest_fini(&gtest));
    tapi_job_factory_destroy(factory);
    TEST_END;
}