diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-06 16:44:07 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-11 15:56:10 -0500 |
commit | d3a7a352d59e4075e979bfe9aea73f0f531c32eb (patch) | |
tree | a8d67597c5865a404c2616603a8cd42aa8ae2a15 | |
parent | 207beff5414a44bcde41535a905e51d5b774330b (diff) | |
download | libgit2-d3a7a352d59e4075e979bfe9aea73f0f531c32eb.tar.gz |
cmake: move test enablement into test cmake
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/CMakeLists.txt | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 23d09682d..ae0a5d685 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -111,7 +111,6 @@ 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 b85cd6ed3..760925fcf 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -62,6 +62,8 @@ 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) |