Example #1
0
int
main(int argc, char **argv)
{
	g_test_init(&argc, &argv, NULL);
	oio_log_lazy_init ();
	oio_log_init_level(GRID_LOGLVL_INFO);
	g_log_set_default_handler(oio_log_stderr, NULL);

	g_test_add_func("/cache/cycle/redis", test_cache_cycle_redis);
	return g_test_run();
}
Example #2
0
void
oio_ext_init_test (int *argc, char ***argv)
{
	g_test_init (argc, argv, NULL);

	char *sep = strrchr ((*argv)[0], '/');
	g_set_prgname (sep ? sep+1 : (*argv)[0]);

	oio_log_lazy_init ();
	oio_log_init_level(GRID_LOGLVL_INFO);
	oio_log_init_level_from_env("G_DEBUG_LEVEL");
	g_log_set_default_handler(oio_log_stderr, NULL);
	oio_ext_set_random_reqid ();
}
Example #3
0
int
main(int argc, char **argv)
{
	g_test_init (&argc, &argv, NULL);
	oio_log_lazy_init ();
	oio_log_init_level(GRID_LOGLVL_INFO);
	g_log_set_default_handler(oio_log_stderr, NULL);

	g_test_add_func("/core/url/configure/valid",
			test_configure_valid);
	g_test_add_func("/core/url/configure/invalid",
			test_configure_invalid);
	g_test_add_func("/core/url/dup", test_dup);
	return g_test_run();
}