Skip to content
Snippets Groups Projects
Select Git revision
  • cb004f33c9ff076b6ce7316b92fdcb247f64e5f4
  • develop default protected
  • feature/gmsh-reader
  • feature/reconstruction
  • save_clemence
  • origin/stage/bouguettaia
  • feature/kinetic-schemes
  • feature/local-dt-fsi
  • feature/composite-scheme-sources
  • feature/composite-scheme-other-fluxes
  • feature/serraille
  • feature/variational-hydro
  • feature/composite-scheme
  • hyperplastic
  • feature/polynomials
  • feature/gks
  • feature/implicit-solver-o2
  • feature/coupling_module
  • feature/implicit-solver
  • feature/merge-local-dt-fsi
  • master protected
  • v0.5.0 protected
  • v0.4.1 protected
  • v0.4.0 protected
  • v0.3.0 protected
  • v0.2.0 protected
  • v0.1.0 protected
  • Kidder
  • v0.0.4 protected
  • v0.0.3 protected
  • v0.0.2 protected
  • v0 protected
  • v0.0.1 protected
33 results

CMakeLists.txt

Blame
  • CMakeLists.txt 2.75 KiB
    include_directories("${PUGS_BINARY_DIR}/src/utils")
    set(EXECUTABLE_OUTPUT_PATH ${PUGS_BINARY_DIR})
    
    add_executable (unit_tests
      test_main.cpp
      test_AffectationProcessor.cpp
      test_AffectationToStringProcessor.cpp
      test_Array.cpp
      test_ArrayUtils.cpp
      test_ASTBuilder.cpp
      test_ASTDotPrinter.cpp
      test_ASTModulesImporter.cpp
      test_ASTNode.cpp
      test_ASTNodeAffectationExpressionBuilder.cpp
      test_ASTNodeBinaryOperatorExpressionBuilder.cpp
      test_ASTNodeCFunctionExpressionBuilder.cpp
      test_ASTNodeDataType.cpp
      test_ASTNodeDataTypeBuilder.cpp
      test_ASTNodeDataTypeChecker.cpp
      test_ASTNodeDeclarationToAffectationConverter.cpp
      test_ASTNodeEmptyBlockCleaner.cpp
      test_ASTNodeExpressionBuilder.cpp
      test_ASTNodeFunctionEvaluationExpressionBuilder.cpp
      test_ASTNodeFunctionExpressionBuilder.cpp
      test_ASTNodeIncDecExpressionBuilder.cpp
      test_ASTNodeJumpPlacementChecker.cpp
      test_ASTNodeListProcessor.cpp
      test_ASTNodeTypeCleaner.cpp
      test_ASTNodeUnaryOperatorExpressionBuilder.cpp
      test_ASTNodeValueBuilder.cpp
      test_ASTPrinter.cpp
      test_ASTSymbolTableBuilder.cpp
      test_ASTSymbolInitializationChecker.cpp
      test_BreakProcessor.cpp
      test_BinaryExpressionProcessor_arithmetic.cpp
      test_BinaryExpressionProcessor_comparison.cpp
      test_BinaryExpressionProcessor_equality.cpp
      test_BinaryExpressionProcessor_logic.cpp
      test_BiCGStab.cpp
      test_CFunctionEmbedder.cpp
      test_CFunctionEmbedderTable.cpp
      test_CMathModule.cpp
      test_ContinueProcessor.cpp
      test_ConcatExpressionProcessor.cpp
      test_CRSMatrix.cpp
      test_DoWhileProcessor.cpp
      test_ExecUntilBreakOrContinue.cpp
      test_FakeProcessor.cpp
      test_ForProcessor.cpp
      test_IfProcessor.cpp
      test_IncDecExpressionProcessor.cpp
      test_INodeProcessor.cpp
      test_ItemType.cpp
      test_NameProcessor.cpp
      test_OStreamProcessor.cpp
      test_PCG.cpp
      test_PugsAssert.cpp
      test_RevisionInfo.cpp
      test_SparseMatrixDescriptor.cpp
      test_SymbolTable.cpp
      test_TinyMatrix.cpp
      test_TinyVector.cpp
      test_UnaryExpressionProcessor.cpp
      test_Vector.cpp
      test_WhileProcessor.cpp
      )
    
    add_executable (mpi_unit_tests
      mpi_test_main.cpp
      mpi_test_Messenger.cpp
      )
    
    target_link_libraries (unit_tests
      PugsLanguage
      PugsUtils
      kokkos
      Catch2
      )
    
    target_link_libraries (mpi_unit_tests
      PugsUtils
      kokkos
      ${PARMETIS_LIBRARIES}
      ${MPI_CXX_LINK_FLAGS} ${MPI_CXX_LIBRARIES}
      Catch2
      )
    
    enable_testing()
    
    #parse catch tests
    ParseAndAddCatchTests(unit_tests)
    
    if(${PUGS_HAS_MPI})
      set(MPIEXEC_OPTION_FLAGS --oversubscribe)
      if (NOT "$ENV{GITLAB_CI}" STREQUAL "")
        set(MPIEXEC_OPTION_FLAGS ${MPIEXEC_OPTION_FLAGS} --allow-run-as-root)
      endif()
      set(OptionalCatchTestLauncher ${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} 3 ${MPIEXEC_OPTION_FLAGS} --path ${PUGS_BINARY_DIR})
    endif()
    ParseAndAddCatchTests(mpi_unit_tests)
    unset(OptionalCatchTestLauncher)