Commit 4a54d8e3 by Edward Thomson

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.
parent 7a15213e
......@@ -111,6 +111,7 @@ include(DefaultCFlags)
add_subdirectory(src)
if(BUILD_TESTS)
enable_testing()
add_subdirectory(tests)
endif()
......
......@@ -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)
......
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