tests: move clar to deps

Clean up the `tests` folder to only contain _actual tests_. Since clar
is now a reasonably external project, move it to `deps`.
This commit is contained in:
Edward Thomson
2026-01-10 14:05:19 +00:00
parent 77028ee987
commit 1424585fb6
20 changed files with 2 additions and 4 deletions

View File

@@ -4,8 +4,6 @@ These are the unit and integration tests for the libgit2 projects.
* `benchmarks`
These are benchmark tests that excercise the CLI.
* `clar`
This is [clar](https://github.com/clar-test/clar) the common test framework.
* `headertest`
This is a simple project that ensures that our public headers are
compatible with extremely strict compilation options.

View File

@@ -12,7 +12,7 @@ if(NOT PYTHONINTERP_FOUND)
"Make sure python is available, or pass -DBUILD_TESTS=OFF to skip building the tests")
ENDIF()
set(CLAR_PATH "${PROJECT_SOURCE_DIR}/tests/clar")
set(CLAR_PATH "${PROJECT_SOURCE_DIR}/deps/clar")
set(CLAR_FIXTURES "${PROJECT_SOURCE_DIR}/tests/resources/")
set(TEST_PATH "${CMAKE_CURRENT_SOURCE_DIR}")
add_definitions(-DCLAR_FIXTURE_PATH=\"${CLAR_FIXTURES}\")

View File

@@ -12,7 +12,7 @@ if(NOT PYTHONINTERP_FOUND)
"Make sure python is available, or pass -DBUILD_TESTS=OFF to skip building the tests")
ENDIF()
set(CLAR_PATH "${libgit2_SOURCE_DIR}/tests/clar")
set(CLAR_PATH "${libgit2_SOURCE_DIR}/deps/clar")
set(CLAR_FIXTURES "${libgit2_SOURCE_DIR}/tests/resources/")
set(TEST_PATH "${CMAKE_CURRENT_SOURCE_DIR}")
add_definitions(-DCLAR_FIXTURE_PATH=\"${CLAR_FIXTURES}\")