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-11 09:03:59 -0500
commit66662c02ab267aaa420c64f5f7db9429a2cb06d3 (patch)
tree62b8c8deb8132ea6634bceda43552bc822611a9d
parent8a522418aa2232c9c1384af299409a49b9e0f3ec (diff)
downloadlibgit2-66662c02ab267aaa420c64f5f7db9429a2cb06d3.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)