-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #271 from fnalacceleratormodeling/catch2_v3
migrate tests to Catch2v3
- Loading branch information
Showing
321 changed files
with
4,001 additions
and
119,585 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,186 @@ | ||
-- The CXX compiler identification is Clang 17.0.6 | ||
-- The C compiler identification is Clang 17.0.6 | ||
-- Detecting CXX compiler ABI info | ||
-- Detecting CXX compiler ABI info - done | ||
-- Check for working CXX compiler: /Users/sasyed/Documents/packages/spack/opt/spack/darwin-sonoma-m1/apple-clang-15.0.0/llvm-17.0.6-uzrfikeehxbzxp3x3twl6wjnh53hpvmr/bin/clang++ - skipped | ||
-- Detecting CXX compile features | ||
-- Detecting CXX compile features - done | ||
-- Detecting C compiler ABI info | ||
-- Detecting C compiler ABI info - done | ||
-- Check for working C compiler: /Users/sasyed/Documents/packages/spack/opt/spack/darwin-sonoma-m1/apple-clang-15.0.0/llvm-17.0.6-uzrfikeehxbzxp3x3twl6wjnh53hpvmr/bin/clang - skipped | ||
-- Detecting C compile features | ||
-- Detecting C compile features - done | ||
-- Preparing to install Synergia3 version: 2024.04.17-06b47c68c | ||
-- ENABLE_KOKKOS_BACKEND is OpenMP | ||
-- Adding SYNERGIA_ENABLE_OPENMP to compiler definiions | ||
-- Using clang++ | ||
-- Found PkgConfig: /Users/sasyed/Documents/packages/spack/var/spack/environments/synergia-debug/.spack-env/view/bin/pkg-config (found version "1.9.5") | ||
-- Checking for one of the modules 'PETSc>=3.19.0' | ||
-- Found PETSc version 3.21.0 | ||
-- Found MPI_C: /Users/sasyed/Documents/packages/spack/var/spack/environments/synergia-debug/.spack-env/view/lib/libmpi.dylib (found version "4.0") | ||
-- Found MPI_CXX: /Users/sasyed/Documents/packages/spack/var/spack/environments/synergia-debug/.spack-env/view/lib/libmpicxx.dylib (found version "4.0") | ||
-- Found MPI: TRUE (found version "4.0") found components: C CXX | ||
-- MPI_VERSION is: | ||
-- Found OpenMP_C: -fopenmp=libomp (found version "5.1") | ||
-- Found OpenMP_CXX: -fopenmp=libomp (found version "5.1") | ||
-- Found OpenMP: TRUE (found version "5.1") | ||
-- Found OpenMP_C: -fopenmp=libomp (found version "5.1") | ||
-- Found OpenMP_CXX: -fopenmp=libomp (found version "5.1") | ||
-- Enabled Kokkos devices: OPENMP;SERIAL | ||
-- Using external installation of kokkos | ||
-- Using Kokkos version: 4.3.0 | ||
-- Performing Test HAVE_FLAG__ffile_prefix_map__Users_sasyed_Documents_packages_synergia2_build_debug__deps_catch2_src__ | ||
-- Performing Test HAVE_FLAG__ffile_prefix_map__Users_sasyed_Documents_packages_synergia2_build_debug__deps_catch2_src__ - Success | ||
-- Found HDF5: hdf5-shared (found version "1.14.3") | ||
-- Using parallel hdf5 | ||
-- Building openPMD I/O capabilities | ||
-- fetching OpenPMD | ||
-- Found MPI: TRUE (found version "4.0") found components: CXX | ||
CMake Deprecation Warning at build_debug/_deps/openpmd-src/share/openPMD/thirdParty/json/CMakeLists.txt:1 (cmake_minimum_required): | ||
Compatibility with CMake < 3.5 will be removed from a future version of | ||
CMake. | ||
|
||
Update the VERSION argument <min> value or use a ...<max> suffix to tell | ||
CMake that the project does not need compatibility with older versions. | ||
|
||
|
||
-- Using the single-header code from /Users/sasyed/Documents/packages/synergia2/build_debug/_deps/openpmd-src/share/openPMD/thirdParty/json/single_include/ | ||
-- nlohmann-json: Using INTERNAL version '3.9.1' | ||
CMake Deprecation Warning at build_debug/_deps/openpmd-src/share/openPMD/thirdParty/toml11/CMakeLists.txt:1 (cmake_minimum_required): | ||
Compatibility with CMake < 3.5 will be removed from a future version of | ||
CMake. | ||
|
||
Update the VERSION argument <min> value or use a ...<max> suffix to tell | ||
CMake that the project does not need compatibility with older versions. | ||
|
||
|
||
-- toml11: Using INTERNAL version '3.7.1' | ||
-- Found HDF5: hdf5-shared (found version "1.14.3") found components: C | ||
CMake Deprecation Warning at build_debug/_deps/openpmd-src/share/openPMD/cmake/FindADIOS.cmake:91 (cmake_minimum_required): | ||
Compatibility with CMake < 3.5 will be removed from a future version of | ||
CMake. | ||
|
||
Update the VERSION argument <min> value or use a ...<max> suffix to tell | ||
CMake that the project does not need compatibility with older versions. | ||
Call Stack (most recent call first): | ||
build_debug/_deps/openpmd-src/CMakeLists.txt:384 (find_package) | ||
|
||
|
||
-- Could NOT find ADIOS2 (missing: ADIOS2_DIR) | ||
-- Found Python: /Users/sasyed/Documents/packages/spack/opt/spack/darwin-sonoma-m1/clang-17.0.6/python-3.11.7-znr5l76khnnq5dt4mm4fobxdqeozzbcw/bin/python3.11 (found version "3.11.7") found components: Interpreter Development.Module | ||
CMake Deprecation Warning at build_debug/_deps/openpmd-src/share/openPMD/thirdParty/pybind11/CMakeLists.txt:8 (cmake_minimum_required): | ||
Compatibility with CMake < 3.5 will be removed from a future version of | ||
CMake. | ||
|
||
Update the VERSION argument <min> value or use a ...<max> suffix to tell | ||
CMake that the project does not need compatibility with older versions. | ||
|
||
|
||
-- pybind11 v2.10.1 | ||
-- Performing Test HAS_FLTO | ||
-- Performing Test HAS_FLTO - Success | ||
-- Performing Test HAS_FLTO_THIN | ||
-- Performing Test HAS_FLTO_THIN - Success | ||
-- pybind11: Using INTERNAL version 2.10.1 | ||
-- Python LTO/IPO: ON | ||
|
||
openPMD build configuration: | ||
library Version: 0.15.2 | ||
openPMD Standard: 1.1.0 | ||
C++ Compiler: Clang 17.0.6 | ||
/Users/sasyed/Documents/packages/spack/opt/spack/darwin-sonoma-m1/apple-clang-15.0.0/llvm-17.0.6-uzrfikeehxbzxp3x3twl6wjnh53hpvmr/bin/clang++ | ||
|
||
Installation: OFF | ||
|
||
Build Type: Debug | ||
Library: static | ||
CLI Tools: OFF | ||
Examples: OFF | ||
Testing: OFF | ||
Invasive Tests: OFF | ||
Internal VERIFY: ON | ||
Build Options: | ||
MPI: ON | ||
HDF5: ON | ||
ADIOS1: OFF | ||
ADIOS2: OFF | ||
PYTHON: ON | ||
CUDA_EXAMPLES: OFF | ||
|
||
-- Found GSL: /Users/sasyed/Documents/packages/spack/var/spack/environments/synergia-debug/.spack-env/view/include (found version "2.7.1") | ||
-- Found FFTW3: /Users/sasyed/Documents/packages/spack/var/spack/environments/synergia-debug/.spack-env/view/lib/libfftw3.dylib | ||
-- Using external cereal with cmake configuration from /Users/sasyed/Documents/packages/spack/var/spack/environments/synergia-debug/.spack-env/view/lib/cmake/cereal | ||
-- Building python bindings | ||
-- Found Python: /Users/sasyed/Documents/packages/spack/opt/spack/darwin-sonoma-m1/clang-17.0.6/python-3.11.7-znr5l76khnnq5dt4mm4fobxdqeozzbcw/bin/python3.11 (found version "3.11.7") found components: Interpreter Development Development.Module Development.Embed | ||
-- Using external pybind11 | ||
-- Simple timer 2 profiling enabled | ||
-- Particle array padding disabled | ||
-- using double for gsvector | ||
-- Configuring Eigen3 for use in host routines. | ||
-- Performing Test standard_math_library_linked_to_automatically | ||
-- Performing Test standard_math_library_linked_to_automatically - Success | ||
-- Standard libraries to link to explicitly: none | ||
-- Performing Test COMPILER_SUPPORT_WERROR | ||
-- Performing Test COMPILER_SUPPORT_WERROR - Success | ||
-- Performing Test COMPILER_SUPPORT_pedantic | ||
-- Performing Test COMPILER_SUPPORT_pedantic - Success | ||
-- Performing Test COMPILER_SUPPORT_Wall | ||
-- Performing Test COMPILER_SUPPORT_Wall - Success | ||
-- Performing Test COMPILER_SUPPORT_Wextra | ||
-- Performing Test COMPILER_SUPPORT_Wextra - Success | ||
-- Performing Test COMPILER_SUPPORT_Wundef | ||
-- Performing Test COMPILER_SUPPORT_Wundef - Success | ||
-- Performing Test COMPILER_SUPPORT_Wcastalign | ||
-- Performing Test COMPILER_SUPPORT_Wcastalign - Success | ||
-- Performing Test COMPILER_SUPPORT_Wcharsubscripts | ||
-- Performing Test COMPILER_SUPPORT_Wcharsubscripts - Success | ||
-- Performing Test COMPILER_SUPPORT_Wnonvirtualdtor | ||
-- Performing Test COMPILER_SUPPORT_Wnonvirtualdtor - Success | ||
-- Performing Test COMPILER_SUPPORT_Wunusedlocaltypedefs | ||
-- Performing Test COMPILER_SUPPORT_Wunusedlocaltypedefs - Success | ||
-- Performing Test COMPILER_SUPPORT_Wpointerarith | ||
-- Performing Test COMPILER_SUPPORT_Wpointerarith - Success | ||
-- Performing Test COMPILER_SUPPORT_Wwritestrings | ||
-- Performing Test COMPILER_SUPPORT_Wwritestrings - Success | ||
-- Performing Test COMPILER_SUPPORT_Wformatsecurity | ||
-- Performing Test COMPILER_SUPPORT_Wformatsecurity - Success | ||
-- Performing Test COMPILER_SUPPORT_Wshorten64to32 | ||
-- Performing Test COMPILER_SUPPORT_Wshorten64to32 - Success | ||
-- Performing Test COMPILER_SUPPORT_Wlogicalop | ||
-- Performing Test COMPILER_SUPPORT_Wlogicalop - Failed | ||
-- Performing Test COMPILER_SUPPORT_Wenumconversion | ||
-- Performing Test COMPILER_SUPPORT_Wenumconversion - Success | ||
-- Performing Test COMPILER_SUPPORT_Wcpp11extensions | ||
-- Performing Test COMPILER_SUPPORT_Wcpp11extensions - Success | ||
-- Performing Test COMPILER_SUPPORT_Wdoublepromotion | ||
-- Performing Test COMPILER_SUPPORT_Wdoublepromotion - Success | ||
-- Performing Test COMPILER_SUPPORT_Wshadow | ||
-- Performing Test COMPILER_SUPPORT_Wshadow - Success | ||
-- Performing Test COMPILER_SUPPORT_Wnopsabi | ||
-- Performing Test COMPILER_SUPPORT_Wnopsabi - Success | ||
-- Performing Test COMPILER_SUPPORT_Wnovariadicmacros | ||
-- Performing Test COMPILER_SUPPORT_Wnovariadicmacros - Success | ||
-- Performing Test COMPILER_SUPPORT_Wnolonglong | ||
-- Performing Test COMPILER_SUPPORT_Wnolonglong - Success | ||
-- Performing Test COMPILER_SUPPORT_fnochecknew | ||
-- Performing Test COMPILER_SUPPORT_fnochecknew - Success | ||
-- Performing Test COMPILER_SUPPORT_fnocommon | ||
-- Performing Test COMPILER_SUPPORT_fnocommon - Failed | ||
-- Performing Test COMPILER_SUPPORT_fstrictaliasing | ||
-- Performing Test COMPILER_SUPPORT_fstrictaliasing - Failed | ||
-- Performing Test COMPILER_SUPPORT_wd981 | ||
-- Performing Test COMPILER_SUPPORT_wd981 - Failed | ||
-- Performing Test COMPILER_SUPPORT_wd2304 | ||
-- Performing Test COMPILER_SUPPORT_wd2304 - Failed | ||
-- Performing Test COMPILER_SUPPORT_OPENMP | ||
-- Performing Test COMPILER_SUPPORT_OPENMP - Success | ||
-- The Fortran compiler identification is unknown | ||
-- Found unsuitable Qt version "" from NOTFOUND | ||
-- Qt4 not found, so disabling the mandelbrot and opengl demos | ||
-- Could NOT find CLANG_FORMAT: Found unsuitable version "17.0.6", but required is exact version "9" (found /Users/sasyed/Documents/packages/spack/opt/spack/darwin-sonoma-m1/apple-clang-15.0.0/llvm-17.0.6-uzrfikeehxbzxp3x3twl6wjnh53hpvmr/bin/clang-format) | ||
-- | ||
-- Configured Eigen 3.4.90 | ||
-- | ||
-- Configuring done (16.3s) | ||
-- Generating done (0.4s) | ||
-- Build files have been written to: /Users/sasyed/Documents/packages/synergia2/build_debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,31 @@ | ||
#define CATCH_CONFIG_MAIN | ||
#include "synergia/utils/catch.hpp" | ||
#include <catch2/catch_test_macros.hpp> | ||
|
||
#include <Kokkos_Core.hpp> | ||
|
||
#include <map> | ||
#include <vector> | ||
#include <memory> | ||
#include <type_traits> | ||
#include <vector> | ||
|
||
struct TinyBunch | ||
{ | ||
explicit TinyBunch(int s) : size(s) { } | ||
struct TinyBunch { | ||
explicit TinyBunch(int s) : size(s) {} | ||
|
||
TinyBunch(TinyBunch const&) = delete; | ||
TinyBunch(TinyBunch &&) = default; | ||
TinyBunch(TinyBunch&&) = default; | ||
|
||
int size; | ||
Kokkos::View<double*> particles; | ||
std::map<std::string, std::unique_ptr<int>> diags; | ||
//std::unique_ptr<int> pi; | ||
// std::unique_ptr<int> pi; | ||
}; | ||
|
||
static_assert(std::is_move_constructible<TinyBunch>::value, | ||
"TinyBunch isn't move constructible"); | ||
"TinyBunch isn't move constructible"); | ||
|
||
TEST_CASE("Bunch traits", "[Bunch]") | ||
{ | ||
CHECK( true ); | ||
CHECK(true); | ||
|
||
std::vector<TinyBunch> bunches; | ||
bunches.emplace_back(3); | ||
} | ||
|
Oops, something went wrong.