main.c 438 Bytes
Newer Older
1
#include "clar_libgit2.h"
2
#include "clar_libgit2_trace.h"
3

4
#ifdef _WIN32
Vicent Marti committed
5
int __cdecl main(int argc, char *argv[])
6
#else
Vicent Marti committed
7
int main(int argc, char *argv[])
8
#endif
9 10 11
{
	int res;

12 13
	clar_test_init(argc, argv);

14
	git_libgit2_init();
15
	cl_global_trace_register();
16
	cl_sandbox_set_search_path_defaults();
17

18
	/* Run the test suite */
19 20 21
	res = clar_test_run();

	clar_test_shutdown();
22

23
	cl_global_trace_disable();
24
	git_libgit2_shutdown();
25 26 27

	return res;
}