Commit 28057a71 authored by GILLES Sebastien's avatar GILLES Sebastien

#1398 Change teat utility used from Catch2 to Boost.Test.

The reason for the change was partly bug #1363: tests were failing for macOS / shared library / release mode solely due to an internal error of Catch2.

Now we need to have Boost Test installed (as usual ThirdPartyCompilationLibrary facility provides it).

I also used the modifications to refresh the way tests were written:

- Fixture are now handled in a much better way; in peculiar some tests no longer required a fake model and its equally fake Lua file to proceed.
- The model tests have been refined to provide more information in case of failure (the complete path of the files that might not be equal are now directly given).
- Mpi fixture is now working completely: you may define several test suites in an executable without having it fail (previously it was the case only for the full-fledged model fixture).

This commit is unusually big for me, but that is due to the fact with macro everywhere in both Boost.Test and Catch2 I had rather not used them at the same time.
parent 7e79da1e
......@@ -73,6 +73,10 @@ morefem_find_library(LIB_LUA "lua" ${LUA_LIB_DIR} "Lua")
morefem_find_library(LIB_BOOST_FILESYSTEM "boost_filesystem" ${BOOST_LIB_DIR} "Boost filesystem")
morefem_find_library(LIB_BOOST_SYSTEM "boost_system" ${BOOST_LIB_DIR} "Boost system")
morefem_find_library(LIB_BOOST_TEST "boost_unit_test_framework" ${BOOST_LIB_DIR} "Boost test")
morefem_find_library(LIB_BOOST_TEST_EXEC_MONITOR "boost_test_exec_monitor" ${BOOST_LIB_DIR} "Boost test exec monitor")
if(BLAS_CUSTOM_LINKER)
set(LIB_BLAS ${BLAS_LIB})
else()
......
......@@ -328,7 +328,6 @@
BE099ED81DAFEAAA00A54392 /* FromAtDofToAtQuadPt.hxx in Headers */ = {isa = PBXBuildFile; fileRef = BE099ED51DAFEAAA00A54392 /* FromAtDofToAtQuadPt.hxx */; };
BE099EDD1DAFEACD00A54392 /* FromAtDofToAtQuadPt.hpp in Headers */ = {isa = PBXBuildFile; fileRef = BE099EDA1DAFEACD00A54392 /* FromAtDofToAtQuadPt.hpp */; };
BE099EDE1DAFEACD00A54392 /* FromAtDofToAtQuadPt.hxx in Headers */ = {isa = PBXBuildFile; fileRef = BE099EDB1DAFEACD00A54392 /* FromAtDofToAtQuadPt.hxx */; };
BE09CF42207E267700DAB24D /* CatchMainTest.hpp in Headers */ = {isa = PBXBuildFile; fileRef = BE09CF3F207E267700DAB24D /* CatchMainTest.hpp */; };
BE0AD2731CC182AD0086EDF7 /* Mesh.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BE0AD2691CC182AD0086EDF7 /* Mesh.cpp */; };
BE0AD2741CC182AD0086EDF7 /* Mesh.hpp in Headers */ = {isa = PBXBuildFile; fileRef = BE0AD26A1CC182AD0086EDF7 /* Mesh.hpp */; };
BE0AD2751CC182AD0086EDF7 /* Mesh.hxx in Headers */ = {isa = PBXBuildFile; fileRef = BE0AD26B1CC182AD0086EDF7 /* Mesh.hxx */; };
......@@ -435,6 +434,13 @@
BE1B6C721CC2E6950020BFDC /* Ensight.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BE1B6C6F1CC2E6950020BFDC /* Ensight.cpp */; };
BE1B6C731CC2E6950020BFDC /* Ensight.hpp in Headers */ = {isa = PBXBuildFile; fileRef = BE1B6C701CC2E6950020BFDC /* Ensight.hpp */; };
BE1B6C741CC2E6950020BFDC /* Ensight.hxx in Headers */ = {isa = PBXBuildFile; fileRef = BE1B6C711CC2E6950020BFDC /* Ensight.hxx */; };
BE1D4492225352A300911391 /* MacroVariationalOperator.hpp in Headers */ = {isa = PBXBuildFile; fileRef = BE1D448F225352A300911391 /* MacroVariationalOperator.hpp */; };
BE1D44A922560BF000911391 /* Model.hpp in Headers */ = {isa = PBXBuildFile; fileRef = BE1D44A522560BEF00911391 /* Model.hpp */; };
BE1D44AA22560BF000911391 /* Model.hxx in Headers */ = {isa = PBXBuildFile; fileRef = BE1D44A622560BEF00911391 /* Model.hxx */; };
BE1D44AB22560BF000911391 /* Mpi.hpp in Headers */ = {isa = PBXBuildFile; fileRef = BE1D44A722560BEF00911391 /* Mpi.hpp */; };
BE1D44AC22560BF000911391 /* Mpi.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BE1D44A822560BF000911391 /* Mpi.cpp */; };
BE1D44AF22560CD100911391 /* Environment.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BE1D44AE22560CD100911391 /* Environment.cpp */; };
BE1D44B122560CE100911391 /* Environment.hpp in Headers */ = {isa = PBXBuildFile; fileRef = BE1D44B022560CE100911391 /* Environment.hpp */; };
BE1E873D1B8DBF460002EE64 /* Definitions.hpp in Headers */ = {isa = PBXBuildFile; fileRef = BE1E873C1B8DBF460002EE64 /* Definitions.hpp */; };
BE1E87401B8DBF670002EE64 /* Definitions.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BE1E873E1B8DBF670002EE64 /* Definitions.cpp */; };
BE1EBB021CA0961000EC0EAA /* InputData.hpp in Headers */ = {isa = PBXBuildFile; fileRef = BE1EBB011CA0961000EC0EAA /* InputData.hpp */; };
......@@ -874,8 +880,6 @@
BE53FC331E0D86B900C5D6F5 /* Subtuple.hxx in Headers */ = {isa = PBXBuildFile; fileRef = BE53FC311E0D86B900C5D6F5 /* Subtuple.hxx */; };
BE5657411D3CD7470091F063 /* Array.hpp in Headers */ = {isa = PBXBuildFile; fileRef = BE56573F1D3CD7470091F063 /* Array.hpp */; };
BE5657421D3CD7470091F063 /* Array.hxx in Headers */ = {isa = PBXBuildFile; fileRef = BE5657401D3CD7470091F063 /* Array.hxx */; };
BE57F669205BDCDE00BA471A /* Fixture.hxx in Headers */ = {isa = PBXBuildFile; fileRef = BE57F666205BDCDE00BA471A /* Fixture.hxx */; };
BE57F66A205BDCDE00BA471A /* Fixture.hpp in Headers */ = {isa = PBXBuildFile; fileRef = BE57F667205BDCDE00BA471A /* Fixture.hpp */; };
BE59D6971DDF5212006FF5CB /* FromVertexMatching.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BE59D68D1DDF5212006FF5CB /* FromVertexMatching.cpp */; };
BE59D6981DDF5212006FF5CB /* FromVertexMatching.hpp in Headers */ = {isa = PBXBuildFile; fileRef = BE59D68E1DDF5212006FF5CB /* FromVertexMatching.hpp */; };
BE59D6991DDF5212006FF5CB /* FromVertexMatching.hxx in Headers */ = {isa = PBXBuildFile; fileRef = BE59D68F1DDF5212006FF5CB /* FromVertexMatching.hxx */; };
......@@ -1486,7 +1490,6 @@
BEDEDE07212FFB4C0060F00E /* Solid.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BEDEDE04212FFB4C0060F00E /* Solid.cpp */; };
BEDEDE08212FFB4C0060F00E /* Solid.hxx in Headers */ = {isa = PBXBuildFile; fileRef = BEDEDE05212FFB4C0060F00E /* Solid.hxx */; };
BEDEDE09212FFB4C0060F00E /* Solid.hpp in Headers */ = {isa = PBXBuildFile; fileRef = BEDEDE06212FFB4C0060F00E /* Solid.hpp */; };
BEDFFB53204EE3E200A52F86 /* catch.hpp in Headers */ = {isa = PBXBuildFile; fileRef = BEDFFB52204EE3E200A52F86 /* catch.hpp */; };
BEE072A01FE177E2002D6EF1 /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BEE072961FE177E2002D6EF1 /* main.cpp */; };
BEE072A21FE177E2002D6EF1 /* Model.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BEE072981FE177E2002D6EF1 /* Model.cpp */; };
BEE072A31FE177E2002D6EF1 /* VariationalFormulation.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BEE0729D1FE177E2002D6EF1 /* VariationalFormulation.cpp */; };
......@@ -2903,7 +2906,6 @@
BE099ED51DAFEAAA00A54392 /* FromAtDofToAtQuadPt.hxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = FromAtDofToAtQuadPt.hxx; path = FromParameterAtDof/Internal/FromAtDofToAtQuadPt.hxx; sourceTree = "<group>"; };
BE099EDA1DAFEACD00A54392 /* FromAtDofToAtQuadPt.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = FromAtDofToAtQuadPt.hpp; path = FromParameterAtDof/Internal/Local/FromAtDofToAtQuadPt.hpp; sourceTree = "<group>"; };
BE099EDB1DAFEACD00A54392 /* FromAtDofToAtQuadPt.hxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = FromAtDofToAtQuadPt.hxx; path = FromParameterAtDof/Internal/Local/FromAtDofToAtQuadPt.hxx; sourceTree = "<group>"; };
BE09CF3F207E267700DAB24D /* CatchMainTest.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = CatchMainTest.hpp; sourceTree = "<group>"; };
BE0AD2691CC182AD0086EDF7 /* Mesh.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Mesh.cpp; sourceTree = "<group>"; };
BE0AD26A1CC182AD0086EDF7 /* Mesh.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; lineEnding = 0; path = Mesh.hpp; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.cpp; };
BE0AD26B1CC182AD0086EDF7 /* Mesh.hxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; lineEnding = 0; path = Mesh.hxx; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.cpp; };
......@@ -3282,6 +3284,16 @@
BE1B6C6F1CC2E6950020BFDC /* Ensight.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; lineEnding = 0; name = Ensight.cpp; path = Format/Ensight.cpp; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.cpp; };
BE1B6C701CC2E6950020BFDC /* Ensight.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = Ensight.hpp; path = Format/Ensight.hpp; sourceTree = "<group>"; };
BE1B6C711CC2E6950020BFDC /* Ensight.hxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; name = Ensight.hxx; path = Format/Ensight.hxx; sourceTree = "<group>"; };
BE1D448F225352A300911391 /* MacroVariationalOperator.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = MacroVariationalOperator.hpp; sourceTree = "<group>"; };
BE1D44932253575200911391 /* CMakeLists.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = CMakeLists.txt; sourceTree = "<group>"; };
BE1D44A122555ADF00911391 /* CMakeLists.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = CMakeLists.txt; sourceTree = "<group>"; };
BE1D44A222555ADF00911391 /* demo_input_data.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = demo_input_data.lua; sourceTree = "<group>"; };
BE1D44A522560BEF00911391 /* Model.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = Model.hpp; sourceTree = "<group>"; };
BE1D44A622560BEF00911391 /* Model.hxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = Model.hxx; sourceTree = "<group>"; };
BE1D44A722560BEF00911391 /* Mpi.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = Mpi.hpp; sourceTree = "<group>"; };
BE1D44A822560BF000911391 /* Mpi.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Mpi.cpp; sourceTree = "<group>"; };
BE1D44AE22560CD100911391 /* Environment.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Environment.cpp; sourceTree = "<group>"; };
BE1D44B022560CE100911391 /* Environment.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = Environment.hpp; sourceTree = "<group>"; };
BE1E873C1B8DBF460002EE64 /* Definitions.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = Definitions.hpp; sourceTree = "<group>"; };
BE1E873E1B8DBF670002EE64 /* Definitions.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Definitions.cpp; sourceTree = "<group>"; };
BE1EBAFD1CA0957300EC0EAA /* main_test_coloring.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = main_test_coloring.cpp; path = Coloring/main_test_coloring.cpp; sourceTree = "<group>"; };
......@@ -3764,8 +3776,6 @@
BE56573F1D3CD7470091F063 /* Array.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = Array.hpp; sourceTree = "<group>"; };
BE5657401D3CD7470091F063 /* Array.hxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = Array.hxx; sourceTree = "<group>"; };
BE576E941CB56C7C00872AA1 /* Model.doxygen */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = Model.doxygen; sourceTree = "<group>"; };
BE57F666205BDCDE00BA471A /* Fixture.hxx */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = Fixture.hxx; sourceTree = "<group>"; };
BE57F667205BDCDE00BA471A /* Fixture.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = Fixture.hpp; sourceTree = "<group>"; };
BE5891171E1525840075B046 /* ThirdParty.doxygen */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = ThirdParty.doxygen; sourceTree = "<group>"; };
BE5891181E1526A30075B046 /* ParameterInstances.doxygen */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = ParameterInstances.doxygen; sourceTree = "<group>"; };
BE5892941E1528050075B046 /* OperatorInstances.doxygen */ = {isa = PBXFileReference; explicitFileType = text.rtf; fileEncoding = 4; path = OperatorInstances.doxygen; sourceTree = "<group>"; };
......@@ -3870,6 +3880,7 @@
BE6462361AEE1AEF00D5162A /* GlobalVector.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; lineEnding = 0; path = GlobalVector.cpp; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.cpp; };
BE6462371AEE1AEF00D5162A /* GlobalVector.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = GlobalVector.hpp; sourceTree = "<group>"; };
BE6462381AEE1AEF00D5162A /* GlobalVector.hxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = GlobalVector.hxx; sourceTree = "<group>"; };
BE65841222522A8400EC36E2 /* Test.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = Test.hpp; sourceTree = "<group>"; };
BE6601A01F4B34DC0075ABC6 /* SpatialPoint.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SpatialPoint.cpp; sourceTree = "<group>"; };
BE6601A11F4B34DC0075ABC6 /* SpatialPoint.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = SpatialPoint.hpp; sourceTree = "<group>"; };
BE6601A21F4B34DC0075ABC6 /* SpatialPoint.hxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = SpatialPoint.hxx; sourceTree = "<group>"; };
......@@ -4320,7 +4331,6 @@
BEAA03BF20A2F1B00070343F /* SourceList.cmake */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = SourceList.cmake; sourceTree = "<group>"; };
BEAA03C020A2F6490070343F /* CMakeLists.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = CMakeLists.txt; sourceTree = "<group>"; };
BEAA03C120A2F65A0070343F /* CMakeLists.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = CMakeLists.txt; sourceTree = "<group>"; };
BEAA03C720A359430070343F /* CatchImplMacro.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = CatchImplMacro.cpp; sourceTree = "<group>"; };
BEAA180E20A6E7440070343F /* CMakeLists.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = CMakeLists.txt; path = Sources/CMakeLists.txt; sourceTree = "<group>"; };
BEABCEBD1AE65A9A00817D37 /* libFormulationSolver.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libFormulationSolver.a; sourceTree = BUILT_PRODUCTS_DIR; };
BEABE1DE1E014F730072318A /* demo_input_parameter_test_ipl.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = demo_input_parameter_test_ipl.lua; sourceTree = "<group>"; };
......@@ -4517,7 +4527,6 @@
BEC526FA1CC58462000E9027 /* CoordIndexes.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CoordIndexes.cpp; sourceTree = "<group>"; };
BEC526FB1CC58462000E9027 /* CoordIndexes.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = CoordIndexes.hpp; sourceTree = "<group>"; };
BEC526FC1CC58462000E9027 /* CoordIndexes.hxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = CoordIndexes.hxx; sourceTree = "<group>"; };
BEC5CFB61F4DBF9B00A2863B /* demo_input_data.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = demo_input_data.lua; sourceTree = "<group>"; };
BEC5CFB81F4DBF9B00A2863B /* main.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = main.cpp; sourceTree = "<group>"; };
BEC72C3F2053EB6500E71849 /* QuasiIncompressibleSecondPiolaKirchhoffStressTensor.hxx */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = QuasiIncompressibleSecondPiolaKirchhoffStressTensor.hxx; sourceTree = "<group>"; };
BEC72C402053EB6500E71849 /* QuasiIncompressibleSecondPiolaKirchhoffStressTensor.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = QuasiIncompressibleSecondPiolaKirchhoffStressTensor.hpp; sourceTree = "<group>"; };
......@@ -4535,7 +4544,6 @@
BECCE67A18EAE16A0043D5DB /* QuadraturePoint.hxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = QuadraturePoint.hxx; sourceTree = "<group>"; };
BED13351206519C700A3B0AA /* Penalization.hxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = Penalization.hxx; sourceTree = "<group>"; };
BED13352206519C800A3B0AA /* Penalization.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = Penalization.hpp; sourceTree = "<group>"; };
BED2787421A20CBF004107BD /* InputData.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; path = InputData.hpp; sourceTree = "<group>"; };
BED748E41906734200BAB761 /* main_test_ondomatic_numbering.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = main_test_ondomatic_numbering.cpp; sourceTree = "<group>"; };
BED7490719068BEB00BAB761 /* InputData.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = InputData.hpp; sourceTree = "<group>"; };
BED793AE1D1AD75900492784 /* HyperelasticLaw.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = HyperelasticLaw.hpp; sourceTree = "<group>"; };
......@@ -4602,7 +4610,6 @@
BEDEDE2721304E020060F00E /* test_all_defined.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = test_all_defined.cpp; sourceTree = "<group>"; };
BEDEDE2821304E020060F00E /* test_no_kappa_mu_C.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = test_no_kappa_mu_C.cpp; sourceTree = "<group>"; };
BEDEDE2921304E020060F00E /* test_poisson_without_young.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = test_poisson_without_young.cpp; sourceTree = "<group>"; };
BEDFFB52204EE3E200A52F86 /* catch.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = catch.hpp; sourceTree = "<group>"; };
BEDFFB7C204EE4F400A52F86 /* CMakeLists.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = CMakeLists.txt; sourceTree = "<group>"; };
BEDFFB7D204EE4F400A52F86 /* main.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = main.cpp; sourceTree = "<group>"; };
BEE072811FE1776F002D6EF1 /* Laplacian */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = Laplacian; sourceTree = BUILT_PRODUCTS_DIR; };
......@@ -4626,8 +4633,6 @@
BEE3C6D31DB628CF001C34CA /* SnesInterface.hpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; name = SnesInterface.hpp; path = Snes/SnesInterface.hpp; sourceTree = "<group>"; };
BEE3C6D41DB628CF001C34CA /* SnesInterface.hxx */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.h; name = SnesInterface.hxx; path = Snes/SnesInterface.hxx; sourceTree = "<group>"; };
BEE5435A1CBAE93600AD52FA /* VariationalFormulation.doxygen */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.h; fileEncoding = 4; path = VariationalFormulation.doxygen; sourceTree = "<group>"; };
BEE734D01F75432D001D01A9 /* demo_input_data.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = demo_input_data.lua; sourceTree = "<group>"; };
BEE734D11F75432D001D01A9 /* InputData.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = InputData.hpp; sourceTree = "<group>"; };
BEE734D51F7550F7001D01A9 /* test.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = test.cpp; sourceTree = "<group>"; };
BEE79C6A2136F43000388FED /* CMakeLists.txt */ = {isa = PBXFileReference; lastKnownFileType = text; path = CMakeLists.txt; sourceTree = "<group>"; };
BEE79C6B2136F43000388FED /* test.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = test.cpp; sourceTree = "<group>"; };
......@@ -6390,6 +6395,19 @@
name = Format;
sourceTree = "<group>";
};
BE1D4498225505C500911391 /* Fixture */ = {
isa = PBXGroup;
children = (
BE1D44A522560BEF00911391 /* Model.hpp */,
BE1D44A622560BEF00911391 /* Model.hxx */,
BE1D44A822560BF000911391 /* Mpi.cpp */,
BE1D44A722560BEF00911391 /* Mpi.hpp */,
BE1D44AE22560CD100911391 /* Environment.cpp */,
BE1D44B022560CE100911391 /* Environment.hpp */,
);
path = Fixture;
sourceTree = "<group>";
};
BE1EBAFB1CA0954C00EC0EAA /* Coloring */ = {
isa = PBXGroup;
children = (
......@@ -6419,7 +6437,9 @@
BE2457AB1E005B0B00677AEF /* InputData */ = {
isa = PBXGroup;
children = (
BE1D44A122555ADF00911391 /* CMakeLists.txt */,
BEFC984E1F506C940025A424 /* README */,
BE1D44A222555ADF00911391 /* demo_input_data.lua */,
BEABE1DE1E014F730072318A /* demo_input_parameter_test_ipl.lua */,
BE2457AE1E005B2900677AEF /* main.cpp */,
BE2457AD1E005B2900677AEF /* InputData.hpp */,
......@@ -6715,16 +6735,14 @@
BE436A181F694FE9003CE8E3 /* TestLinearAlgebra.hxx */,
BEBFCE7820580C610033C4C1 /* InitializeTestMoReFEMData.hpp */,
BEBFCE7720580C610033C4C1 /* InitializeTestMoReFEMData.hxx */,
BE57F667205BDCDE00BA471A /* Fixture.hpp */,
BE57F666205BDCDE00BA471A /* Fixture.hxx */,
BEAA03C720A359430070343F /* CatchImplMacro.cpp */,
BE09CF3F207E267700DAB24D /* CatchMainTest.hpp */,
BE8E219A207E454800E24E6D /* CheckIdenticalFiles.cpp */,
BE8E219C207E454800E24E6D /* CheckIdenticalFiles.hpp */,
BE8E219B207E454800E24E6D /* CheckIdenticalFiles.hxx */,
BE8E21CB207FA4D800E24E6D /* CompareEnsightFiles.cpp */,
BE8E21CD207FA4D800E24E6D /* CompareEnsightFiles.hpp */,
BE8E21CC207FA4D800E24E6D /* CompareEnsightFiles.hxx */,
BE1D448F225352A300911391 /* MacroVariationalOperator.hpp */,
BE1D4498225505C500911391 /* Fixture */,
);
path = Tools;
sourceTree = "<group>";
......@@ -7621,6 +7639,7 @@
BE5A4E1F1B677AE0006822DD /* Operators */ = {
isa = PBXGroup;
children = (
BE1D44932253575200911391 /* CMakeLists.txt */,
BE1ABADD1B9DC78000A7DBD8 /* P1_to_HigherOrder */,
BE5A4E201B677B23006822DD /* ConformProjector */,
BEC77E951DDDC34800F8B444 /* NonConformInterpolator */,
......@@ -8945,6 +8964,7 @@
isa = PBXGroup;
children = (
BE9ECC0A1F5857B900D92CD7 /* Filesystem.hpp */,
BE65841222522A8400EC36E2 /* Test.hpp */,
BE9453BC2106098300953B84 /* Variant.hpp */,
BEF3B482212D893000807965 /* Optional.hpp */,
);
......@@ -9372,7 +9392,6 @@
children = (
BE1457F21E54BC47000A2BF5 /* Tclap */,
BE2DCB401C7477420070090E /* Lm6 */,
BEDFFB51204EE3E200A52F86 /* Catch */,
);
path = Source;
sourceTree = "<group>";
......@@ -9777,8 +9796,6 @@
isa = PBXGroup;
children = (
BE2243E620A1ACCC006AD11E /* CMakeLists.txt */,
BED2787421A20CBF004107BD /* InputData.hpp */,
BEC5CFB61F4DBF9B00A2863B /* demo_input_data.lua */,
BEC5CFB81F4DBF9B00A2863B /* main.cpp */,
);
path = Gather;
......@@ -9970,14 +9987,6 @@
path = Solid;
sourceTree = "<group>";
};
BEDFFB51204EE3E200A52F86 /* Catch */ = {
isa = PBXGroup;
children = (
BEDFFB52204EE3E200A52F86 /* catch.hpp */,
);
path = Catch;
sourceTree = "<group>";
};
BEDFFB7B204EE4F400A52F86 /* TypeName */ = {
isa = PBXGroup;
children = (
......@@ -10020,8 +10029,6 @@
isa = PBXGroup;
children = (
BE2243E820A1ACDA006AD11E /* CMakeLists.txt */,
BEE734D01F75432D001D01A9 /* demo_input_data.lua */,
BEE734D11F75432D001D01A9 /* InputData.hpp */,
BEE734D51F7550F7001D01A9 /* test.cpp */,
);
path = SendReceive;
......@@ -10532,15 +10539,17 @@
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
BE57F66A205BDCDE00BA471A /* Fixture.hpp in Headers */,
BE1D44AA22560BF000911391 /* Model.hxx in Headers */,
BE8E219F207E454800E24E6D /* CheckIdenticalFiles.hpp in Headers */,
BE57F669205BDCDE00BA471A /* Fixture.hxx in Headers */,
BE1D44B122560CE100911391 /* Environment.hpp in Headers */,
BE1D4492225352A300911391 /* MacroVariationalOperator.hpp in Headers */,
BE1D44A922560BF000911391 /* Model.hpp in Headers */,
BEBFCE7A20580C610033C4C1 /* InitializeTestMoReFEMData.hxx in Headers */,
BE8E219E207E454800E24E6D /* CheckIdenticalFiles.hxx in Headers */,
BE09CF42207E267700DAB24D /* CatchMainTest.hpp in Headers */,
BE436A1B1F694FE9003CE8E3 /* TestLinearAlgebra.hxx in Headers */,
BEBFCE7B20580C610033C4C1 /* InitializeTestMoReFEMData.hpp in Headers */,
BE436A1A1F694FE9003CE8E3 /* TestLinearAlgebra.hpp in Headers */,
BE1D44AB22560BF000911391 /* Mpi.hpp in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
......@@ -11149,7 +11158,6 @@
BE90E1921A24929A00CCAFDE /* UniqueId.hpp in Headers */,
BE90E1B81A24929A00CCAFDE /* Petsc.hpp in Headers */,
BE90E1C61A2492AA00CCAFDE /* SubVector_Base.hxx in Headers */,
BEDFFB53204EE3E200A52F86 /* catch.hpp in Headers */,
BE145A101E54BC49000A2BF5 /* VersionVisitor.h in Headers */,
BE90E1691A24926E00CCAFDE /* PointerComparison.hxx in Headers */,
BE145A081E54BC49000A2BF5 /* OptionalUnlabeledTracker.h in Headers */,
......@@ -11885,6 +11893,7 @@
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
);
mainGroup = BE5BC26F16C008CF00232749;
......@@ -12191,6 +12200,8 @@
files = (
BE8E21D0207FAA4E00E24E6D /* CompareEnsightFiles.cpp in Sources */,
BE8E219D207E454800E24E6D /* CheckIdenticalFiles.cpp in Sources */,
BE1D44AF22560CD100911391 /* Environment.cpp in Sources */,
BE1D44AC22560BF000911391 /* Mpi.cpp in Sources */,
BE436A191F694FE9003CE8E3 /* TestLinearAlgebra.cpp in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
......@@ -44,7 +44,7 @@
allowLocationSimulation = "YES">
<PathRunnable
runnableDebuggingMode = "0"
FilePath = "/Volumes/Data/opt/clang/Openmpi/bin/orterun">
FilePath = "/Volumes/Data/opt/clang_release/Openmpi/bin/orterun">
</PathRunnable>
<MacroExpansion>
<BuildableReference
......
......@@ -94,5 +94,7 @@ morefem_install(MoReFEM4ElasticityCheckResults)
add_test(ElasticityCheckResults
MoReFEM4ElasticityCheckResults
--test_output_dir ${MOREFEM_TEST_OUTPUT_DIR}
--root_dir ${MOREFEM_ROOT})
--
${MOREFEM_ROOT}
${MOREFEM_TEST_OUTPUT_DIR}
)
......@@ -8,83 +8,112 @@
*/
#define BOOST_TEST_MODULE model_elasticity
#include "ThirdParty/IncludeWithoutWarning/Boost/Test.hpp"
#include "Utilities/Filesystem/File.hpp"
#include "ModelInstances/Elasticity/InputData.hpp"
using namespace MoReFEM;
#include "Test/Tools/CatchMainTest.hpp"
#include "Test/Tools/CheckIdenticalFiles.hpp"
#include "Test/Tools/CompareEnsightFiles.hpp"
#include "Test/Tools/Fixture/Environment.hpp"
void CommonTestCase(std::string&& seq_or_par,
std::string&& dimension);
void CommonTestCase(std::string&& seq_or_par,
std::string&& dimension)
namespace // anonymous
{
decltype(auto) environment = Utilities::Environment::GetInstance(__FILE__, __LINE__);
std::string root_dir, output_dir;
REQUIRE_NOTHROW(root_dir = environment.GetEnvironmentVariable("MOREFEM_ROOT", __FILE__, __LINE__));
REQUIRE_NOTHROW(output_dir = environment.GetEnvironmentVariable("MOREFEM_TEST_OUTPUT_DIR", __FILE__, __LINE__));
REQUIRE(FilesystemNS::Folder::DoExist(root_dir));
REQUIRE(FilesystemNS::Folder::DoExist(output_dir));
std::string ref_dir = root_dir + "/Sources/ModelInstances/Elasticity/ExpectedResults/" + dimension;
std::string obtained_dir = output_dir + std::string("/") + seq_or_par + std::string("/Elasticity/") + dimension;
TestNS::CheckIdenticalFiles(ref_dir, obtained_dir, "input_data.lua", __FILE__, __LINE__);
TestNS::CheckIdenticalFiles(ref_dir, obtained_dir, "model_name.hhdata", __FILE__, __LINE__);
TestNS::CheckIdenticalFiles(ref_dir, obtained_dir, "unknowns.hhdata", __FILE__, __LINE__);
void CommonTestCase(std::string&& seq_or_par,
std::string&& dimension);
ref_dir += "/Mesh_1/";
obtained_dir += "/Mesh_1/";
TestNS::CheckIdenticalFiles(ref_dir, obtained_dir, "interfaces.hhdata", __FILE__, __LINE__);
} // namespace anonymous
ref_dir += "Ensight6/";
obtained_dir += "Ensight6/";
TestNS::CheckIdenticalFiles(ref_dir, obtained_dir, "mesh.geo", __FILE__, __LINE__);
TestNS::CheckIdenticalFiles(ref_dir, obtained_dir, "problem.case", __FILE__, __LINE__);
PRAGMA_DIAGNOSTIC(push)
PRAGMA_DIAGNOSTIC(ignored "-Wdisabled-macro-expansion")
std::ostringstream oconv;
for (auto i = 0; i <= 5; ++i)
{
oconv.str("");
oconv << "solid_displacement." << std::setw(5) << std::setfill('0') << i << ".scl";
TestNS::CompareEnsightFiles(ref_dir, obtained_dir, oconv.str(), __FILE__, __LINE__, 1.e-11);
}
}
TEST_CASE("Elasticity output is conform to what is expected - 3D case, sequential")
BOOST_FIXTURE_TEST_CASE(seq_3d, TestNS::FixtureNS::Environment)
{
CommonTestCase("Seq", "3D");
}
TEST_CASE("Elasticity output is conform to what is expected - 3D case, mpi 4 processors")
BOOST_FIXTURE_TEST_CASE(mpi4_3d, TestNS::FixtureNS::Environment)
{
CommonTestCase("Mpi4", "3D");
}
TEST_CASE("Elasticity output is conform to what is expected - 2D case, sequential")
BOOST_FIXTURE_TEST_CASE(seq_2d, TestNS::FixtureNS::Environment)
{
CommonTestCase("Seq", "2D");
}
TEST_CASE("Elasticity output is conform to what is expected - 2D case, mpi 4 processors")
BOOST_FIXTURE_TEST_CASE(mpi4_2d, TestNS::FixtureNS::Environment)
{
CommonTestCase("Mpi4", "2D");
}
PRAGMA_DIAGNOSTIC(pop)
namespace // anonymous
{
void CommonTestCase(std::string&& seq_or_par,
std::string&& dimension)
{
decltype(auto) environment = Utilities::Environment::GetInstance(__FILE__, __LINE__);
std::string root_dir, output_dir;
/* BOOST_REQUIRE_NO_THROW */(root_dir = environment.GetEnvironmentVariable("MOREFEM_ROOT", __FILE__, __LINE__));
/* BOOST_REQUIRE_NO_THROW */(output_dir = environment.GetEnvironmentVariable("MOREFEM_TEST_OUTPUT_DIR",
__FILE__, __LINE__));
BOOST_REQUIRE(FilesystemNS::Folder::DoExist(root_dir));
BOOST_REQUIRE(FilesystemNS::Folder::DoExist(output_dir));
std::string ref_dir = root_dir + "/Sources/ModelInstances/Elasticity/ExpectedResults/" + dimension;
std::string obtained_dir = output_dir + std::string("/") + seq_or_par + std::string("/Elasticity/") + dimension;
/* BOOST_REQUIRE_NO_THROW */(TestNS::CheckIdenticalFiles(ref_dir, obtained_dir, "input_data.lua",
__FILE__, __LINE__));
/* BOOST_REQUIRE_NO_THROW */(TestNS::CheckIdenticalFiles(ref_dir, obtained_dir, "model_name.hhdata",
__FILE__, __LINE__));
/* BOOST_REQUIRE_NO_THROW */(TestNS::CheckIdenticalFiles(ref_dir, obtained_dir, "unknowns.hhdata",
__FILE__, __LINE__));
ref_dir += "/Mesh_1/";
obtained_dir += "/Mesh_1/";
/* BOOST_REQUIRE_NO_THROW */(TestNS::CheckIdenticalFiles(ref_dir, obtained_dir, "interfaces.hhdata",
__FILE__, __LINE__));
ref_dir += "Ensight6/";
obtained_dir += "Ensight6/";
/* BOOST_REQUIRE_NO_THROW */(TestNS::CheckIdenticalFiles(ref_dir, obtained_dir, "mesh.geo", __FILE__, __LINE__));
/* BOOST_REQUIRE_NO_THROW */(TestNS::CheckIdenticalFiles(ref_dir, obtained_dir, "problem.case", __FILE__, __LINE__));
std::ostringstream oconv;
for (auto i = 0; i <= 5; ++i)
{
oconv.str("");
oconv << "solid_displacement." << std::setw(5) << std::setfill('0') << i << ".scl";
/* BOOST_REQUIRE_NO_THROW */(TestNS::CompareEnsightFiles(ref_dir, obtained_dir, oconv.str(),
__FILE__, __LINE__, 1.e-11));
}
}
} // namespace anonymous
......@@ -92,8 +92,11 @@ add_test(HeatModel1DEnsightOutput-mpi
add_test(HeatCheckResults
MoReFEM4HeatCheckResults
--test_output_dir ${MOREFEM_TEST_OUTPUT_DIR}
--root_dir ${MOREFEM_ROOT})
--
${MOREFEM_ROOT}
${MOREFEM_TEST_OUTPUT_DIR}
)
......@@ -8,35 +8,78 @@
*/
#define BOOST_TEST_MODULE model_heat
#include "ThirdParty/IncludeWithoutWarning/Boost/Test.hpp"
#include "Utilities/Filesystem/File.hpp"
#include "ModelInstances/Heat/InputData.hpp"
using namespace MoReFEM;
#include "Test/Tools/CatchMainTest.hpp"
#include "Test/Tools/CheckIdenticalFiles.hpp"
#include "Test/Tools/CompareEnsightFiles.hpp"
#include "Test/Tools/Fixture/Environment.hpp"
namespace
namespace // anonymous
{
void CommonTestCase(std::string&& seq_or_par,
std::string&& dimension);
} // namespace anonymous
PRAGMA_DIAGNOSTIC(push)
PRAGMA_DIAGNOSTIC(ignored "-Wdisabled-macro-expansion")
BOOST_FIXTURE_TEST_CASE(sequential_1d, TestNS::FixtureNS::Environment)
{
CommonTestCase("Seq", "1D");
}
BOOST_FIXTURE_TEST_CASE(mpi4_1d, TestNS::FixtureNS::Environment)
{
CommonTestCase("Mpi4", "1D");
}
BOOST_FIXTURE_TEST_CASE(sequential_2d, TestNS::FixtureNS::Environment)
{
CommonTestCase("Seq", "2D");
}
BOOST_FIXTURE_TEST_CASE(mpi4_2d, TestNS::FixtureNS::Environment)
{
CommonTestCase("Mpi4", "2D");
}
PRAGMA_DIAGNOSTIC(pop)
namespace // anonymous
{
void CommonTestCase(std::string&& seq_or_par,
std::string&& dimension)
{
decltype(auto) environment = Utilities::Environment::GetInstance(__FILE__, __LINE__);
std::string root_dir, output_dir;
REQUIRE_NOTHROW(root_dir = environment.GetEnvironmentVariable("MOREFEM_ROOT", __FILE__, __LINE__));
REQUIRE_NOTHROW(output_dir = environment.GetEnvironmentVariable("MOREFEM_TEST_OUTPUT_DIR", __FILE__, __LINE__));
/* BOOST_REQUIRE_NO_THROW */(root_dir = environment.GetEnvironmentVariable("MOREFEM_ROOT", __FILE__, __LINE__));
/* BOOST_REQUIRE_NO_THROW */(output_dir = environment.GetEnvironmentVariable("MOREFEM_TEST_OUTPUT_DIR", __FILE__, __LINE__));
REQUIRE(FilesystemNS::Folder::DoExist(root_dir));
REQUIRE(FilesystemNS::Folder::DoExist(output_dir));
BOOST_REQUIRE(FilesystemNS::Folder::DoExist(root_dir));
BOOST_REQUIRE(FilesystemNS::Folder::DoExist(output_dir));
std::string ref_dir = root_dir + "/Sources/ModelInstances/Heat/ExpectedResults/" + dimension;
std::string obtained_dir = output_dir + std::string("/") + seq_or_par + std::string("/Heat/") + dimension;
......@@ -66,28 +109,6 @@ namespace
}
}
}
TEST_CASE("Heat output is conform to what is expected - 1D case, sequential")
{
CommonTestCase("Seq", "1D");
}
TEST_CASE("Heat output is conform to what is expected - 1D case, mpi 4 processors")
{
CommonTestCase("Mpi4", "1D");
}
TEST_CASE("Heat output is conform to what is expected - 2D case, sequential")
{
CommonTestCase("Seq", "2D");
}
TEST_CASE("Heat output is conform to what is expected - 2D case, mpi 4 processors")
{
CommonTestCase("Mpi4", "2D");
}
} // namespace anonymous
......@@ -64,5 +64,8 @@ add_test(HyperelasticityModelEnsightOutput-mpi
add_test(HyperelasticityCheckResults
MoReFEM4HyperelasticityCheckResults
--test_output_dir ${MOREFEM_TEST_OUTPUT_DIR}
--root_dir ${MOREFEM_ROOT})
--
${MOREFEM_ROOT}
${MOREFEM_TEST_OUTPUT_DIR}
)
......@@ -7,6 +7,9 @@
//
*/
#define BOOST_TEST_MODULE model_hyperelasticity
#include "ThirdParty/IncludeWithoutWarning/Boost/Test.hpp"
#include "Utilities/Filesystem/File.hpp"
......@@ -14,65 +17,85 @@
using namespace MoReFEM;
#include "Test/Tools/CatchMainTest.hpp"
#include "Test/Tools/CheckIdenticalFiles.hpp"
#include "Test/Tools/CompareEnsightFiles.hpp"
#include "Test/Tools/Fixture/Environment.hpp"
void CommonTestCase(std::string&& seq_or_par);
namespace // anonymous
{
void CommonTestCase(std::string&& seq_or_par)
{
decltype(auto) environment = Utilities::Environment::GetInstance(__FILE__, __LINE__);
std::string root_dir, output_dir;
void CommonTestCase(std::string&& seq_or_par);
REQUIRE_NOTHROW(root_dir = environment.GetEnvironmentVariable("MOREFEM_ROOT", __FILE__, __LINE__));
REQUIRE_NOTHROW(output_dir = environment.GetEnvironmentVariable("MOREFEM_TEST_OUTPUT_DIR", __FILE__, __LINE__));
REQUIRE(FilesystemNS::Folder::DoExist(root_dir));
REQUIRE(FilesystemNS::Folder::DoExist(output_dir));
} // namespace anonymous
std::string ref_dir = root_dir + "/Sources/ModelInstances/Hyperelasticity/ExpectedResults/";
std::string obtained_dir = output_dir + std::string("/") + seq_or_par + std::string("/MidpointHyperelasticity/");
TestNS::CheckIdenticalFiles(ref_dir, obtained_dir, "input_data.lua", __FILE__, __LINE__);
TestNS::CheckIdenticalFiles(ref_dir, obtained_dir, "model_name.hhdata", __FILE__, __LINE__);
TestNS::CheckIdenticalFiles(ref_dir, obtained_dir, "unknowns.hhdata", __FILE__, __LINE__);
PRAGMA_DIAGNOSTIC(push)
PRAGMA_DIAGNOSTIC(ignored "-Wdisabled-macro-expansion")
ref_dir += "/Mesh_1/";
obtained_dir += "/Mesh_1/";
TestNS::CheckIdenticalFiles(ref_dir, obtained_dir, "interfaces.hhdata", __FILE__, __LINE__);
BOOST_FIXTURE_TEST_CASE(sequential, TestNS::FixtureNS::Environment)
{
CommonTestCase("Seq");
}
ref_dir += "Ensight6/";
obtained_dir += "Ensight6/";
TestNS::CheckIdenticalFiles(ref_dir, obtained_dir, "mesh.geo", __FILE__, __LINE__);
TestNS::CheckIdenticalFiles(ref_dir, obtained_dir, "problem.case", __FILE__, __LINE__);
BOOST_FIXTURE_TEST_CASE(mpi4, TestNS::FixtureNS::Environment)
{
CommonTestCase("Mpi4");
}
std::ostringstream oconv;
PRAGMA_DIAGNOSTIC(pop)
PRAGMA_DIAGNOSTIC(ignored "-Wdisabled-macro-expansion")
for (auto i = 0; i <= 20; ++i)
namespace // anonymous
{
void CommonTestCase(std::string&& seq_or_par)
{
oconv.str("");
oconv << "displacement." << std::setw(5) << std::setfill('0') << i << ".scl";
TestNS::CompareEnsightFiles(ref_dir, obtained_dir, oconv.str(), __FILE__, __LINE__);
}
decltype(auto) environment = Utilities