]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Reduced version of INTERPKernel tests can be run in MICROMED mode. abn/tests_from_build
authorabn <adrien.bruneton@cea.fr>
Mon, 4 Jan 2016 11:21:39 +0000 (12:21 +0100)
committerabn <adrien.bruneton@cea.fr>
Mon, 4 Jan 2016 11:21:39 +0000 (12:21 +0100)
CMakeLists.txt
resources/CMakeLists.txt
src/CMakeLists.txt
src/INTERP_KERNELTest/CMakeLists.txt
src/INTERP_KERNELTest/TestInterpKernel.cxx

index 8786daa3ae290540da336ff45eb450d6e8c494f7..788afbb4aa3cc0845d7b6562af4e4a78d65442a7 100644 (file)
@@ -200,11 +200,7 @@ IF(MEDCOUPLING_BUILD_DOC)
   ADD_SUBDIRECTORY(doc)
 ENDIF(MEDCOUPLING_BUILD_DOC)
 
-IF(NOT MEDCOUPLING_MICROMED)
-  IF(MEDCOUPLING_WITH_FILE_EXAMPLES)
-    ADD_SUBDIRECTORY(resources)
-  ENDIF(MEDCOUPLING_WITH_FILE_EXAMPLES)
-ENDIF(NOT MEDCOUPLING_MICROMED)
+ADD_SUBDIRECTORY(resources)
 
 # Configuration export
 # ====================
index 3fe42f071e4c65ee775740a36f331de092593f1a..85ba41e6bc8d110a80f0a16b9374b48eccc3fb69 100644 (file)
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-SET(MED_RESOURCES_FILES
+SET(MED_test_fig_files
+  Pol1.fig
+  Pol2.fig
+  Pol3.fig
+  Pol4.fig
+)
+
+SET(MED_other_FILES
   #boitenew.cnc
   #boitenew.inp
   #boitenew.xyz
@@ -192,10 +199,6 @@ SET(MED_RESOURCES_FILES
   Mesh3D_10_2d1.med
   Mesh3D_10_2d2.med
   Mesh3D_11.med
-  Pol1.fig
-  Pol2.fig
-  Pol3.fig
-  Pol4.fig
   # blow5_ascii.case
   # blow5_ascii.geo
   # blow5_ascii_cd_displacement
@@ -209,31 +212,18 @@ SET(MED_RESOURCES_FILES
   agitateur.med
   )
 
-# IF(MED_ENABLE_GUI)
-#   FILE(GLOB MED_RESOURCES_PNG "${CMAKE_CURRENT_SOURCE_DIR}/*.png")
-#   SET(MED_RESOURCES_FILES
-#     ${MED_RESOURCES_FILES}
-#     ModuleMed.png
-#     Data.png
-#     Infos.png
-#     Structure.png
-#     explore_med_file.png
-#     field_selection.png
-#     med_mesh.png
-#     med_field.png
-#     mesh_selection.png
-#     )
-# ENDIF(MED_ENABLE_GUI)
+SET(MED_RESOURCES_FILES ${MED_test_fig_files})
+
+IF(NOT MEDCOUPLING_MICROMED)
+  IF(MEDCOUPLING_WITH_FILE_EXAMPLES)
+    FOREACH(resfile ${MED_other_FILES})
+      LIST(APPEND MED_RESOURCES_FILES ${resfile})
+    ENDFOREACH()
+  ENDIF()
+ENDIF()
 
 FOREACH(resfile ${MED_RESOURCES_FILES})
   CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/${resfile}" "${CMAKE_CURRENT_BINARY_DIR}/${resfile}" COPYONLY)
 ENDFOREACH(resfile)
 
 INSTALL(FILES ${MED_RESOURCES_FILES} DESTINATION ${MEDCOUPLING_INSTALL_RES_DATA})
-
-#MESSAGE(STATUS "Creation of ${CMAKE_CURRENT_BINARY_DIR}/MEDCatalog.xml")
-#CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/MEDCatalog.xml.in ${CMAKE_CURRENT_BINARY_DIR}/MEDCatalog.xml @ONLY)
-#MESSAGE(STATUS "Creation of ${CMAKE_CURRENT_BINARY_DIR}/SalomeApp.xml")
-#CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/SalomeApp.xml.in ${CMAKE_CURRENT_BINARY_DIR}/SalomeApp.xml @ONLY)
-
-#INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/MEDCatalog.xml ${CMAKE_CURRENT_BINARY_DIR}/SalomeApp.xml DESTINATION ${SALOME_MED_INSTALL_RES_DATA})
index 62ef3fb7c08659123ff5df1c64d4126613b059e7..3076314bd19cbd0d2a7d4b210e35dee9f4a8432d 100644 (file)
 
 # InterpKERNEL
 ADD_SUBDIRECTORY(INTERP_KERNEL)
-IF(MEDCOUPLING_BUILD_TESTS)
-  IF(NOT MEDCOUPLING_MICROMED)  # to be fixed later: the tests depends on some MEDLoader includes!!
-     ADD_SUBDIRECTORY(INTERP_KERNELTest)
-  ENDIF()
-ENDIF(MEDCOUPLING_BUILD_TESTS)
+ADD_SUBDIRECTORY(INTERP_KERNELTest)
 
 # MEDCoupling
 ADD_SUBDIRECTORY(MEDCoupling)
@@ -29,7 +25,6 @@ IF(MEDCOUPLING_ENABLE_PYTHON)
   ADD_SUBDIRECTORY(MEDCoupling_Swig)
 ENDIF(MEDCOUPLING_ENABLE_PYTHON)
 
-
 IF(NOT MEDCOUPLING_MICROMED)
   # MEDLoader
   ADD_SUBDIRECTORY(MEDLoader)
index fcc8f41470fd79dab37c094d0e6236afd2a3a4a2..6a8cfb2b036fd309fee0cd40eb77a31d1e300678 100644 (file)
 
 ADD_DEFINITIONS(${HDF5_DEFINITIONS} ${MEDFILE_DEFINITIONS} ${XDR_DEFINITIONS} ${CPPUNIT_DEFINITIONS})
 
+IF(MEDCOUPLING_MICROMED)
+  ADD_DEFINITIONS(-DMEDCOUPLING_MICROMED)
+ENDIF()
+
 INCLUDE_DIRECTORIES(
   ${CPPUNIT_INCLUDE_DIRS}
   ${HDF5_INCLUDE_DIRS}
   ${MEDFILE_INCLUDE_DIRS}
   ${XDR_INCLUDE_DIRS}
-  ${CMAKE_CURRENT_SOURCE_DIR}/../MEDLoader
   ${CMAKE_CURRENT_SOURCE_DIR}/../MEDCoupling
   ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL
   ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL/Bases
@@ -33,6 +36,10 @@ INCLUDE_DIRECTORIES(
   ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL/GaussPoints
   ${CMAKE_CURRENT_SOURCE_DIR}/../INTERP_KERNEL/Geometric2D
   )
+  
+IF(NOT MEDCOUPLING_MICROMED)
+  INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../MEDLoader)
+ENDIF()
 
 SET(InterpKernelTest_SOURCES
   BBTreeTest.cxx
index bfc450a26a37746e7f6d254ff081a271045fe55c..49d4663c90e334d9322fe57e1df6107dc3c78828 100644 (file)
 #include "UnitTetraIntersectionBaryTest.hxx"
 #include "UnitTetra3D2DIntersectionTest.hxx"
 
+#ifndef MEDCOUPLING_MICROMED
 #include "HexaTests.hxx"
 #include "InterpolationOptionsTest.hxx"
 #include "MultiElement2DTests.hxx"
 #include "MultiElementTetraTests.hxx"
 #include "SingleElementTetraTests.hxx"
 #include "ThreeDSurfProjectionTest.hxx"
+#endif
 
 using namespace INTERP_TEST;
 
@@ -47,12 +49,15 @@ CPPUNIT_TEST_SUITE_REGISTRATION( TransformedTriangleTest );
 CPPUNIT_TEST_SUITE_REGISTRATION( UnitTetraIntersectionBaryTest );
 CPPUNIT_TEST_SUITE_REGISTRATION( UnitTetra3D2DIntersectionTest );
 
+#ifndef MEDCOUPLING_MICROMED
+// These test suites need MEDLoader to load some test files:
 CPPUNIT_TEST_SUITE_REGISTRATION( InterpolationOptionsTest );
 CPPUNIT_TEST_SUITE_REGISTRATION( HexaTests );
 CPPUNIT_TEST_SUITE_REGISTRATION( MultiElement2DTests );
 CPPUNIT_TEST_SUITE_REGISTRATION( MultiElementTetraTests );
 CPPUNIT_TEST_SUITE_REGISTRATION( SingleElementTetraTests );
 CPPUNIT_TEST_SUITE_REGISTRATION( ThreeDSurfProjectionTest );
+#endif
 // --- generic Main program from KERNEL_SRC/src/Basics/Test
 
 #include "BasicMainTest.hxx"