mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 20:42:23 +00:00
Merge pull request #1962 from libgit2/rename-tests
Rename tests directory
This commit is contained in:
commit
845eed800a
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,6 +1,6 @@
|
||||
/tests-clar/clar.suite
|
||||
/tests-clar/clar.suite.rule
|
||||
/tests-clar/.clarcache
|
||||
/tests/clar.suite
|
||||
/tests/clar.suite.rule
|
||||
/tests/.clarcache
|
||||
/apidocs
|
||||
/trash-*.exe
|
||||
/libgit2.pc
|
||||
|
@ -97,7 +97,7 @@ ENDFUNCTION()
|
||||
# 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
|
||||
# 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)
|
||||
IF(MSVC_IDE)
|
||||
GET_TARGET_PROPERTY(sources ${target} SOURCES)
|
||||
@ -393,9 +393,9 @@ INSTALL(FILES include/git2.h DESTINATION ${INCLUDE_INSTALL_DIR} )
|
||||
IF (BUILD_CLAR)
|
||||
FIND_PACKAGE(PythonInterp REQUIRED)
|
||||
|
||||
SET(CLAR_FIXTURES "${CMAKE_CURRENT_SOURCE_DIR}/tests-clar/resources/")
|
||||
SET(CLAR_PATH "${CMAKE_CURRENT_SOURCE_DIR}/tests-clar")
|
||||
SET(CLAR_RESOURCES "${CMAKE_CURRENT_SOURCE_DIR}/tests-clar/resources" CACHE PATH "Path to test resources.")
|
||||
SET(CLAR_FIXTURES "${CMAKE_CURRENT_SOURCE_DIR}/tests/resources/")
|
||||
SET(CLAR_PATH "${CMAKE_CURRENT_SOURCE_DIR}/tests")
|
||||
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_RESOURCES=\"${TEST_RESOURCES}\")
|
||||
|
||||
|
@ -66,7 +66,7 @@ int main (int argc, char** argv)
|
||||
// simplest. There are also [methods][me] for specifying the index file
|
||||
// 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
|
||||
int error;
|
||||
|
@ -4,7 +4,7 @@ THIS_FILE="$(readlink -f "$0")"
|
||||
ROOT="$(dirname "$(dirname "$(dirname "$THIS_FILE")")")"
|
||||
PROGRAM="$ROOT"/examples/rev-list
|
||||
LIBDIR="$ROOT"/build
|
||||
REPO="$ROOT"/tests-clar/resources/testrepo.git
|
||||
REPO="$ROOT"/tests/resources/testrepo.git
|
||||
|
||||
cd "$REPO"
|
||||
|
||||
|
@ -38,7 +38,7 @@
|
||||
* `git_packbuilder_set_threads` can be used to adjust the number of
|
||||
* threads used for the process.
|
||||
*
|
||||
* See tests-clar/pack/packbuilder.c for an example.
|
||||
* See tests/pack/packbuilder.c for an example.
|
||||
*
|
||||
* @ingroup Git
|
||||
* @{
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user