mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-07 01:42:27 +00:00
Update files that reference tests-clar
This commit is contained in:
parent
1782038144
commit
83e1efbf46
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,6 +1,6 @@
|
|||||||
/tests-clar/clar.suite
|
/tests/clar.suite
|
||||||
/tests-clar/clar.suite.rule
|
/tests/clar.suite.rule
|
||||||
/tests-clar/.clarcache
|
/tests/.clarcache
|
||||||
/apidocs
|
/apidocs
|
||||||
/trash-*.exe
|
/trash-*.exe
|
||||||
/libgit2.pc
|
/libgit2.pc
|
||||||
|
@ -97,7 +97,7 @@ ENDFUNCTION()
|
|||||||
# explorer does. This is esp. useful with the libgit2_clar project, were
|
# explorer does. This is esp. useful with the libgit2_clar project, were
|
||||||
# usually 2 or more files share the same name. Sadly, this file grouping
|
# usually 2 or more files share the same name. Sadly, this file grouping
|
||||||
# is a per-directory option in cmake and not per-target, resulting in
|
# is a per-directory option in cmake and not per-target, resulting in
|
||||||
# empty virtual folders "tests-clar" for the git2.dll
|
# empty virtual folders "tests" for the git2.dll
|
||||||
FUNCTION(MSVC_SPLIT_SOURCES target)
|
FUNCTION(MSVC_SPLIT_SOURCES target)
|
||||||
IF(MSVC_IDE)
|
IF(MSVC_IDE)
|
||||||
GET_TARGET_PROPERTY(sources ${target} SOURCES)
|
GET_TARGET_PROPERTY(sources ${target} SOURCES)
|
||||||
@ -393,9 +393,9 @@ INSTALL(FILES include/git2.h DESTINATION ${INCLUDE_INSTALL_DIR} )
|
|||||||
IF (BUILD_CLAR)
|
IF (BUILD_CLAR)
|
||||||
FIND_PACKAGE(PythonInterp REQUIRED)
|
FIND_PACKAGE(PythonInterp REQUIRED)
|
||||||
|
|
||||||
SET(CLAR_FIXTURES "${CMAKE_CURRENT_SOURCE_DIR}/tests-clar/resources/")
|
SET(CLAR_FIXTURES "${CMAKE_CURRENT_SOURCE_DIR}/tests/resources/")
|
||||||
SET(CLAR_PATH "${CMAKE_CURRENT_SOURCE_DIR}/tests-clar")
|
SET(CLAR_PATH "${CMAKE_CURRENT_SOURCE_DIR}/tests")
|
||||||
SET(CLAR_RESOURCES "${CMAKE_CURRENT_SOURCE_DIR}/tests-clar/resources" CACHE PATH "Path to test resources.")
|
SET(CLAR_RESOURCES "${CMAKE_CURRENT_SOURCE_DIR}/tests/resources" CACHE PATH "Path to test resources.")
|
||||||
ADD_DEFINITIONS(-DCLAR_FIXTURE_PATH=\"${CLAR_FIXTURES}\")
|
ADD_DEFINITIONS(-DCLAR_FIXTURE_PATH=\"${CLAR_FIXTURES}\")
|
||||||
ADD_DEFINITIONS(-DCLAR_RESOURCES=\"${TEST_RESOURCES}\")
|
ADD_DEFINITIONS(-DCLAR_RESOURCES=\"${TEST_RESOURCES}\")
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ int main (int argc, char** argv)
|
|||||||
// simplest. There are also [methods][me] for specifying the index file
|
// simplest. There are also [methods][me] for specifying the index file
|
||||||
// and work tree locations, here we assume they are in the normal places.
|
// and work tree locations, here we assume they are in the normal places.
|
||||||
//
|
//
|
||||||
// (Try running this program against tests-clar/resources/testrepo.git.)
|
// (Try running this program against tests/resources/testrepo.git.)
|
||||||
//
|
//
|
||||||
// [me]: http://libgit2.github.com/libgit2/#HEAD/group/repository
|
// [me]: http://libgit2.github.com/libgit2/#HEAD/group/repository
|
||||||
int error;
|
int error;
|
||||||
|
@ -4,7 +4,7 @@ THIS_FILE="$(readlink -f "$0")"
|
|||||||
ROOT="$(dirname "$(dirname "$(dirname "$THIS_FILE")")")"
|
ROOT="$(dirname "$(dirname "$(dirname "$THIS_FILE")")")"
|
||||||
PROGRAM="$ROOT"/examples/rev-list
|
PROGRAM="$ROOT"/examples/rev-list
|
||||||
LIBDIR="$ROOT"/build
|
LIBDIR="$ROOT"/build
|
||||||
REPO="$ROOT"/tests-clar/resources/testrepo.git
|
REPO="$ROOT"/tests/resources/testrepo.git
|
||||||
|
|
||||||
cd "$REPO"
|
cd "$REPO"
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
* `git_packbuilder_set_threads` can be used to adjust the number of
|
* `git_packbuilder_set_threads` can be used to adjust the number of
|
||||||
* threads used for the process.
|
* threads used for the process.
|
||||||
*
|
*
|
||||||
* See tests-clar/pack/packbuilder.c for an example.
|
* See tests/pack/packbuilder.c for an example.
|
||||||
*
|
*
|
||||||
* @ingroup Git
|
* @ingroup Git
|
||||||
* @{
|
* @{
|
||||||
|
@ -27,7 +27,7 @@ static int foreach_cb(const git_oid *oid, void *data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* $ git --git-dir tests-clar/resources/testrepo.git count-objects --verbose
|
* $ git --git-dir tests/resources/testrepo.git count-objects --verbose
|
||||||
* count: 47
|
* count: 47
|
||||||
* size: 4
|
* size: 4
|
||||||
* in-pack: 1640
|
* in-pack: 1640
|
||||||
|
@ -106,7 +106,7 @@ void test_pack_packbuilder__create_pack(void)
|
|||||||
* we create exactly the same pack as git.git does when *not*
|
* we create exactly the same pack as git.git does when *not*
|
||||||
* reusing existing deltas (as libgit2).
|
* reusing existing deltas (as libgit2).
|
||||||
*
|
*
|
||||||
* $ cd tests-clar/resources/testrepo.git
|
* $ cd tests/resources/testrepo.git
|
||||||
* $ git rev-list --objects HEAD | \
|
* $ git rev-list --objects HEAD | \
|
||||||
* git pack-objects -q --no-reuse-delta --threads=1 pack
|
* git pack-objects -q --no-reuse-delta --threads=1 pack
|
||||||
* $ sha1sum git-80e61eb315239ef3c53033e37fee43b744d57122.pack
|
* $ sha1sum git-80e61eb315239ef3c53033e37fee43b744d57122.pack
|
||||||
|
Loading…
Reference in New Issue
Block a user