summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-11-06 16:44:07 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2021-11-10 21:04:58 -0500
commit4acd826c256f2d16203c965356e99de2ddd15e9f (patch)
treeff224dde70df68930b3743aad7731666afbed200
parent9ed84d837dd3df0f4131e4f38813980ab6140879 (diff)
downloadlibgit2-4acd826c256f2d16203c965356e99de2ddd15e9f.tar.gz
cmake: move test enablement into test cmake
-rw-r--r--CMakeLists.txt1
-rw-r--r--tests/CMakeLists.txt2
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)