Blame tests/perf/merge.c

Packit ae9e2a
#include "clar_libgit2.h"
Packit ae9e2a
#include "helper__perf__do_merge.h"
Packit ae9e2a
Packit ae9e2a
/* This test requires a large repo with many files.
Packit ae9e2a
 * It doesn't care about the contents, just the size.
Packit ae9e2a
 * 
Packit ae9e2a
 * For now, we use the LibGit2 repo containing the
Packit ae9e2a
 * source tree because it is already here.
Packit ae9e2a
 *
Packit ae9e2a
 * `find . | wc -l` reports 5128.
Packit ae9e2a
 * 
Packit ae9e2a
 */
Packit ae9e2a
#define SRC_REPO (cl_fixture("../.."))
Packit ae9e2a
Packit ae9e2a
/* We need 2 arbitrary commits within that repo
Packit ae9e2a
 * that have a large number of changed files.
Packit ae9e2a
 * Again, we don't care about the actual contents,
Packit ae9e2a
 * just the size.
Packit ae9e2a
 *
Packit ae9e2a
 * For now, we use these public branches:
Packit ae9e2a
 * maint/v0.21 d853fb9f24e0fe63b3dce9fbc04fd9cfe17a030b Always checkout with case sensitive iterator
Packit ae9e2a
 * maint/v0.22 1ce9ea3ba9b4fa666602d52a5281d41a482cc58b checkout tests: cleanup realpath impl on Win32
Packit ae9e2a
 *
Packit ae9e2a
 */
Packit ae9e2a
#define ID_BRANCH_A "d853fb9f24e0fe63b3dce9fbc04fd9cfe17a030b"
Packit ae9e2a
#define ID_BRANCH_B "1ce9ea3ba9b4fa666602d52a5281d41a482cc58b"
Packit ae9e2a
Packit ae9e2a
void test_perf_merge__m1(void)
Packit ae9e2a
{
Packit ae9e2a
	perf__do_merge(SRC_REPO, "m1", ID_BRANCH_A, ID_BRANCH_B);
Packit ae9e2a
}