diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-17 07:27:39 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-17 07:27:39 -0500 |
commit | 4a54d8e39e053377a877c65e897f2424b11a51e4 (patch) | |
tree | 0ac0b262b43d2f6846ddb807f25900c5beade52b | |
parent | 7a15213e3bdf9f8d459a34d0f16999ef4c6e2a85 (diff) | |
download | libgit2-4a54d8e39e053377a877c65e897f2424b11a51e4.tar.gz |
cmake: enable testing at the top level
Ensure that we `enable_testing()` at the top-level CMakeLists.txt or
else we'll need to navigate within the build directory to the correct
place in the hierarchy to run `ctest`. Now we can `ctest` at the
top-level again.
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/CMakeLists.txt | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 664abc0d2..c414bbe3a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -111,6 +111,7 @@ include(DefaultCFlags) add_subdirectory(src) if(BUILD_TESTS) + enable_testing() add_subdirectory(tests) endif() diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index b42359a63..84df92a45 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -68,8 +68,6 @@ function(ADD_CLAR_TEST name) endif() endfunction(ADD_CLAR_TEST) -enable_testing() - add_clar_test(offline -v -xonline) add_clar_test(invasive -v -score::ftruncate -sfilter::stream::bigfile -sodb::largefiles -siterator::workdir::filesystem_gunk -srepo::init -srepo::init::at_filesystem_root) add_clar_test(online -v -sonline -xonline::customcert) |