Commit d3a7a352 by Edward Thomson

cmake: move test enablement into test cmake

parent 207beff5
...@@ -111,7 +111,6 @@ include(DefaultCFlags) ...@@ -111,7 +111,6 @@ include(DefaultCFlags)
add_subdirectory(src) add_subdirectory(src)
if(BUILD_TESTS) if(BUILD_TESTS)
enable_testing()
add_subdirectory(tests) add_subdirectory(tests)
endif() endif()
......
...@@ -62,6 +62,8 @@ function(ADD_CLAR_TEST name) ...@@ -62,6 +62,8 @@ function(ADD_CLAR_TEST name)
endif() endif()
endfunction(ADD_CLAR_TEST) endfunction(ADD_CLAR_TEST)
enable_testing()
add_clar_test(offline -v -xonline) 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(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) add_clar_test(online -v -sonline -xonline::customcert)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment