File: merge.c

package info (click to toggle)
libgit2 0.25.1%2Breally0.24.6-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 28,512 kB
  • ctags: 15,888
  • sloc: ansic: 153,520; sh: 297; python: 175; makefile: 70; php: 65
file content (44 lines) | stat: -rw-r--r-- 1,109 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include "clar_libgit2.h"
#include "helper__perf__do_merge.h"

/* This test requires a large repo with many files.
 * It doesn't care about the contents, just the size.
 * 
 * For now, we use the LibGit2 repo containing the
 * source tree because it is already here.
 *
 * `find . | wc -l` reports 5128.
 * 
 */
#define SRC_REPO (cl_fixture("../.."))

/* We need 2 arbitrary commits within that repo
 * that have a large number of changed files.
 * Again, we don't care about the actual contents,
 * just the size.
 *
 * For now, we use these public branches:
 * maint/v0.21 d853fb9f24e0fe63b3dce9fbc04fd9cfe17a030b Always checkout with case sensitive iterator
 * maint/v0.22 1ce9ea3ba9b4fa666602d52a5281d41a482cc58b checkout tests: cleanup realpath impl on Win32
 *
 */
#define ID_BRANCH_A "d853fb9f24e0fe63b3dce9fbc04fd9cfe17a030b"
#define ID_BRANCH_B "1ce9ea3ba9b4fa666602d52a5281d41a482cc58b"


void test_perf_merge__initialize(void)
{
}

void test_perf_merge__cleanup(void)
{
}

void test_perf_merge__m1(void)
{
#if 1
	cl_skip();
#else
	perf__do_merge(SRC_REPO, "m1", ID_BRANCH_A, ID_BRANCH_B);
#endif
}