diff --git a/CMakeLists.txt b/CMakeLists.txt index a6c4afe2..2b2048d4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,7 +63,7 @@ nwx_cxx_api_docs("README.md" "${project_inc_dir}" "${project_src_dir}") cmaize_find_or_build_dependency( spdlog URL github.com/gabime/spdlog - VERSION ${NWX_SPDLOG_VERSION} + VERSION ad0e89cbfb4d0c1ce4d097e134eb7be67baebb36 BUILD_TARGET spdlog FIND_TARGET spdlog::spdlog CMAKE_ARGS SPDLOG_INSTALL=ON @@ -78,7 +78,7 @@ endif () cmaize_find_or_build_dependency( cereal URL github.com/USCiLab/cereal - VERSION ${NWX_CEREAL_VERSION} + VERSION v1.3.0 BUILD_TARGET cereal FIND_TARGET cereal CMAKE_ARGS JUST_INSTALL_CEREAL=ON @@ -109,7 +109,7 @@ if("${BUILD_TESTING}") URL github.com/catchorg/Catch2 BUILD_TARGET Catch2 FIND_TARGET Catch2::Catch2 - VERSION ${NWX_CATCH2_VERSION} + VERSION v3.6.0 ) cmaize_add_tests( test_unit_parallelzone @@ -117,12 +117,6 @@ if("${BUILD_TESTING}") INCLUDE_DIRS "${project_src_dir}" DEPENDS Catch2::Catch2 ${PROJECT_NAME} ) - cmaize_add_tests( - test_integration_parallelzone - SOURCE_DIR "${CXX_TEST_DIR}/integration_tests" - INCLUDE_DIRS "${project_src_dir}" - DEPENDS Catch2::Catch2 ${PROJECT_NAME} - ) cmaize_add_tests( test_parallelzone_docs SOURCE_DIR "${CXX_TEST_DIR}/doc_snippets" diff --git a/tests/cxx/doc_snippets/catch.hpp b/tests/cxx/doc_snippets/catch.hpp new file mode 100644 index 00000000..3e8a4307 --- /dev/null +++ b/tests/cxx/doc_snippets/catch.hpp @@ -0,0 +1,5 @@ +#pragma once +#include +#include +#include +#include \ No newline at end of file diff --git a/tests/cxx/doc_snippets/test_parallelzone.hpp b/tests/cxx/doc_snippets/test_parallelzone.hpp index 5ebba9f2..a99c942e 100644 --- a/tests/cxx/doc_snippets/test_parallelzone.hpp +++ b/tests/cxx/doc_snippets/test_parallelzone.hpp @@ -15,7 +15,7 @@ */ #pragma once -#include +#include "catch.hpp" #include namespace testing { diff --git a/tests/cxx/integration_tests/blank_test.cpp b/tests/cxx/integration_tests/blank_test.cpp deleted file mode 100644 index f0e48aac..00000000 --- a/tests/cxx/integration_tests/blank_test.cpp +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2023 NWChemEx-Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#define CATCH_CONFIG_MAIN -#include -#include - -int print_and_return(int ii) { - std::cout << "This is only a blank model for an integration test." - << std::endl; - return 0; -} - -TEST_CASE("Blank test", "[classic]") { REQUIRE(print_and_return(0) == 0); } diff --git a/tests/cxx/unit_tests/parallelzone/archive_wrapper.cpp b/tests/cxx/unit_tests/parallelzone/archive_wrapper.cpp index 75a0a2f4..e31df6fa 100644 --- a/tests/cxx/unit_tests/parallelzone/archive_wrapper.cpp +++ b/tests/cxx/unit_tests/parallelzone/archive_wrapper.cpp @@ -14,8 +14,8 @@ * limitations under the License. */ +#include "catch.hpp" #include "parallelzone/archive_wrapper.hpp" -#include TEMPLATE_TEST_CASE("Serialization with ArchiveWrapper", "[serialization][Serializer][Deserializer]", diff --git a/tests/cxx/unit_tests/parallelzone/catch.hpp b/tests/cxx/unit_tests/parallelzone/catch.hpp new file mode 100644 index 00000000..3e8a4307 --- /dev/null +++ b/tests/cxx/unit_tests/parallelzone/catch.hpp @@ -0,0 +1,5 @@ +#pragma once +#include +#include +#include +#include \ No newline at end of file diff --git a/tests/cxx/unit_tests/parallelzone/logging/detail_/spdlog/file.cpp b/tests/cxx/unit_tests/parallelzone/logging/detail_/spdlog/file.cpp index d03344ec..6f28ac90 100644 --- a/tests/cxx/unit_tests/parallelzone/logging/detail_/spdlog/file.cpp +++ b/tests/cxx/unit_tests/parallelzone/logging/detail_/spdlog/file.cpp @@ -14,7 +14,7 @@ * limitations under the License. */ -#include +#include "../../../catch.hpp" #include #include #include diff --git a/tests/cxx/unit_tests/parallelzone/logging/detail_/spdlog/spdlog.cpp b/tests/cxx/unit_tests/parallelzone/logging/detail_/spdlog/spdlog.cpp index 53ae926c..1746f362 100644 --- a/tests/cxx/unit_tests/parallelzone/logging/detail_/spdlog/spdlog.cpp +++ b/tests/cxx/unit_tests/parallelzone/logging/detail_/spdlog/spdlog.cpp @@ -14,7 +14,7 @@ * limitations under the License. */ -#include +#include "../../../catch.hpp" #include #include #include diff --git a/tests/cxx/unit_tests/parallelzone/logging/detail_/spdlog/stdout.cpp b/tests/cxx/unit_tests/parallelzone/logging/detail_/spdlog/stdout.cpp index 091c2eeb..f6cbf672 100644 --- a/tests/cxx/unit_tests/parallelzone/logging/detail_/spdlog/stdout.cpp +++ b/tests/cxx/unit_tests/parallelzone/logging/detail_/spdlog/stdout.cpp @@ -14,7 +14,7 @@ * limitations under the License. */ -#include +#include "../../../catch.hpp" #include #include #include diff --git a/tests/cxx/unit_tests/parallelzone/logging/logger.cpp b/tests/cxx/unit_tests/parallelzone/logging/logger.cpp index ebfdda96..1fde56dc 100644 --- a/tests/cxx/unit_tests/parallelzone/logging/logger.cpp +++ b/tests/cxx/unit_tests/parallelzone/logging/logger.cpp @@ -14,7 +14,7 @@ * limitations under the License. */ -#include +#include "../catch.hpp" #include #include #include diff --git a/tests/cxx/unit_tests/parallelzone/mpi_helpers/binary_buffer/binary_buffer.cpp b/tests/cxx/unit_tests/parallelzone/mpi_helpers/binary_buffer/binary_buffer.cpp index 1ca00be2..b933f4dc 100644 --- a/tests/cxx/unit_tests/parallelzone/mpi_helpers/binary_buffer/binary_buffer.cpp +++ b/tests/cxx/unit_tests/parallelzone/mpi_helpers/binary_buffer/binary_buffer.cpp @@ -14,7 +14,7 @@ * limitations under the License. */ -#include +#include "../../catch.hpp" #include /* Testing Strategy: diff --git a/tests/cxx/unit_tests/parallelzone/mpi_helpers/binary_buffer/binary_view.cpp b/tests/cxx/unit_tests/parallelzone/mpi_helpers/binary_buffer/binary_view.cpp index 95176eae..efc47ea9 100644 --- a/tests/cxx/unit_tests/parallelzone/mpi_helpers/binary_buffer/binary_view.cpp +++ b/tests/cxx/unit_tests/parallelzone/mpi_helpers/binary_buffer/binary_view.cpp @@ -14,7 +14,7 @@ * limitations under the License. */ -#include +#include "../../catch.hpp" #include #include diff --git a/tests/cxx/unit_tests/parallelzone/mpi_helpers/binary_buffer/detail_/binary_buffer_pimpl.cpp b/tests/cxx/unit_tests/parallelzone/mpi_helpers/binary_buffer/detail_/binary_buffer_pimpl.cpp index b5414603..95908724 100644 --- a/tests/cxx/unit_tests/parallelzone/mpi_helpers/binary_buffer/detail_/binary_buffer_pimpl.cpp +++ b/tests/cxx/unit_tests/parallelzone/mpi_helpers/binary_buffer/detail_/binary_buffer_pimpl.cpp @@ -14,7 +14,7 @@ * limitations under the License. */ -#include +#include "../../../catch.hpp" #include /* Testing Strategy: diff --git a/tests/cxx/unit_tests/parallelzone/mpi_helpers/commpp/commpp.cpp b/tests/cxx/unit_tests/parallelzone/mpi_helpers/commpp/commpp.cpp index 667291c0..4c086d96 100644 --- a/tests/cxx/unit_tests/parallelzone/mpi_helpers/commpp/commpp.cpp +++ b/tests/cxx/unit_tests/parallelzone/mpi_helpers/commpp/commpp.cpp @@ -15,6 +15,7 @@ */ #include "../../test_parallelzone.hpp" +#include #include using namespace parallelzone::mpi_helpers; diff --git a/tests/cxx/unit_tests/parallelzone/mpi_helpers/traits/mpi_data_type.cpp b/tests/cxx/unit_tests/parallelzone/mpi_helpers/traits/mpi_data_type.cpp index e8e4530f..5673786d 100644 --- a/tests/cxx/unit_tests/parallelzone/mpi_helpers/traits/mpi_data_type.cpp +++ b/tests/cxx/unit_tests/parallelzone/mpi_helpers/traits/mpi_data_type.cpp @@ -14,7 +14,7 @@ * limitations under the License. */ -#include +#include "../../catch.hpp" #include using namespace parallelzone::mpi_helpers; diff --git a/tests/cxx/unit_tests/parallelzone/mpi_helpers/traits/mpi_op.cpp b/tests/cxx/unit_tests/parallelzone/mpi_helpers/traits/mpi_op.cpp index 3361d7f3..8b00bfdf 100644 --- a/tests/cxx/unit_tests/parallelzone/mpi_helpers/traits/mpi_op.cpp +++ b/tests/cxx/unit_tests/parallelzone/mpi_helpers/traits/mpi_op.cpp @@ -14,7 +14,7 @@ * limitations under the License. */ -#include +#include "../../catch.hpp" #include using namespace parallelzone::mpi_helpers; diff --git a/tests/cxx/unit_tests/parallelzone/mpi_helpers/traits/test_traits.hpp b/tests/cxx/unit_tests/parallelzone/mpi_helpers/traits/test_traits.hpp index 30dcbc65..fe88fb75 100644 --- a/tests/cxx/unit_tests/parallelzone/mpi_helpers/traits/test_traits.hpp +++ b/tests/cxx/unit_tests/parallelzone/mpi_helpers/traits/test_traits.hpp @@ -14,7 +14,7 @@ * limitations under the License. */ -#include +#include "../../catch.hpp" #include #include #include diff --git a/tests/cxx/unit_tests/parallelzone/runtime/detail_/resource_set_pimpl.cpp b/tests/cxx/unit_tests/parallelzone/runtime/detail_/resource_set_pimpl.cpp index 67b38ad5..e1c5abe9 100644 --- a/tests/cxx/unit_tests/parallelzone/runtime/detail_/resource_set_pimpl.cpp +++ b/tests/cxx/unit_tests/parallelzone/runtime/detail_/resource_set_pimpl.cpp @@ -14,7 +14,7 @@ * limitations under the License. */ -#include +#include "../../catch.hpp" #include #include diff --git a/tests/cxx/unit_tests/parallelzone/serialization.cpp b/tests/cxx/unit_tests/parallelzone/serialization.cpp index ed16e7b7..39a61806 100644 --- a/tests/cxx/unit_tests/parallelzone/serialization.cpp +++ b/tests/cxx/unit_tests/parallelzone/serialization.cpp @@ -14,8 +14,8 @@ * limitations under the License. */ +#include "catch.hpp" #include "parallelzone/serialization.hpp" -#include TEMPLATE_TEST_CASE("Serialization with Cereal wrapper", "[serialization][serializer][deserializer]", diff --git a/tests/cxx/unit_tests/parallelzone/test_parallelzone.hpp b/tests/cxx/unit_tests/parallelzone/test_parallelzone.hpp index 5ebba9f2..a99c942e 100644 --- a/tests/cxx/unit_tests/parallelzone/test_parallelzone.hpp +++ b/tests/cxx/unit_tests/parallelzone/test_parallelzone.hpp @@ -15,7 +15,7 @@ */ #pragma once -#include +#include "catch.hpp" #include namespace testing {