]> git.proxmox.com Git - libgit2.git/blame - tests/main.c
Merge pull request #2929 from ethomson/clar_update
[libgit2.git] / tests / main.c
CommitLineData
156cfec0
VM
1#include "clar_libgit2.h"
2
73b58c91 3#ifdef _WIN32
1d5d4186 4int __cdecl main(int argc, char *argv[])
73b58c91 5#else
1d5d4186 6int main(int argc, char *argv[])
73b58c91 7#endif
156cfec0
VM
8{
9 int res;
10
e0d61c7b
ET
11 clar_test_init(argc, argv);
12
799e22ea 13 git_libgit2_init();
8487e237 14 cl_sandbox_set_search_path_defaults();
e0d61c7b 15
156cfec0 16 /* Run the test suite */
e0d61c7b
ET
17 res = clar_test_run();
18
19 clar_test_shutdown();
156cfec0
VM
20
21 giterr_clear();
799e22ea 22 git_libgit2_shutdown();
156cfec0
VM
23
24 return res;
25}