1 # Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 # This library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License.
11 # This library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with this library; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 # MED MEDMEM : MED files in memory
24 include $(top_srcdir)/adm_local/unix/make_common_starter.am
26 # first '.' says that this folder must be compiled before Test (MEDMEM/Test uses MEDMEM)
33 #lib_LTLIBRARIES= libMEDMEMBinTest.la
36 #libmedmem_la_LDFLAGS= -L$(top_builddir)/lib@LIB_LOCATION_SUFFIX@/salome
37 #libMEDMEMBinTest_la_CPPFLAGS= $(MED2_INCLUDES) $(HDF5_INCLUDES) @CXXTMPDPTHFLAGS@ \
38 # -I$(srcdir)/../MEDWrapper/Base \
39 # -I$(srcdir)/../MEDWrapper/V2_1/Core -I$(srcdir)/../INTERPOLATION
41 # change motivated by the bug KERNEL4778.
42 #libMEDMEMBinTest_la_LDFLAGS=$(MED2_LIBS) $(HDF5_LIBS) ../MEDWrapper/V2_1/Core/libmed_V2_1.la \
43 # ../MEDWrapper/Base/libMEDWrapperBase.la $(STDLIB)
45 # libMEDMEMBinTest_la_CPPFLAGS+= ${KERNEL_CXXFLAGS}
46 # libMEDMEMBinTest_la_LDFLAGS+= ${KERNEL_LDFLAGS} -lSALOMELocalTrace
49 AM_CPPFLAGS= $(MED2_INCLUDES) $(HDF5_INCLUDES) @CXXTMPDPTHFLAGS@ \
50 -I$(srcdir)/../MEDWrapper/Base \
51 -I$(srcdir)/../MEDWrapper/V2_1/Core -I$(srcdir)/../INTERPOLATION \
54 LDADD= $(MED2_LIBS) $(HDF5_LIBS) ../MEDWrapper/V2_1/Core/libmed_V2_1.la \
55 ../MEDWrapper/Base/libMEDWrapperBase.la $(STDLIB) ../MEDMEM/libmedmem.la
58 AM_CPPFLAGS+= ${KERNEL_CXXFLAGS}
59 LDADD+= ${KERNEL_LDFLAGS} -lSALOMELocalTrace -lSALOMEBasics
64 ensight2med med2ensight convertToPoly \
65 med2_1_To_med2_2 med2vtk duplicateMED medmembin_test duplicateMEDMESH test_write_groups_poly\
66 test_MEDMEM_ModulusArray test_MEDMEM_Array test_MEDMEM_SkyLineArray \
67 test_MEDMEM_CellModel testUPointerOf testUCoordinate testUUnit \
68 testUGeoNameMeshEntities testUMedException testUModulusArray \
69 testUSkyLineArray testUArray testUCellModel readEntete readCoordinate \
70 test_copie_field_ test_copie_fieldT test_copie_coordinate \
71 test_copie_medarray test_copie_connectivity test_copie_support \
72 test_copie_family test_copie_group test_copie_mesh test_affect_medarray \
73 test_MEDMEM_Meshing test_MEDMEM_MeshingPoly test_operation_fielddouble \
74 test_operation_fieldint test_gibi_driver test_porflow_driver \
75 test_grid test_MEDMEM_PolyhedronArray test_MEDMEM_PolyConnectivity \
76 test_MEDMEM_PolyDriverMedMeshRead test_MEDMEM_PolyDriverMedMeshWrite \
77 test_MEDMEM_poly3D test_MEDMEM_nArray test_MEDMEM_Meshing_poly test_profil_MedFieldDriver \
78 test_profil_gauss_MedFieldDriver test_GaussLocalization testAnalFile test_MEDMEM_MeshingFlica testConvertPolygon \
79 create_mesh create_mesh_c2q4s2 create_mesh_c3h8q4 create_mesh_c3h8q4_wrong \
80 create_mesh_c2q4s2_wrong create_grid create_mesh_c2q4 create_mesh_c3h8 create_poly3D
82 #AM_CPPFLAGS= $(libMEDMEMBinTest_la_CPPFLAGS)
83 #LDADD= $(libMEDMEMBinTest_la_LDFLAGS) -lm libMEDMEMBinTest.la
85 TESTS = $(bin_PROGRAMS)
87 # tests that fail because they require arguments
100 test_MEDMEM_PolyDriverMedMeshRead \
101 test_MEDMEM_PolyDriverMedMeshWrite \
103 test_copie_connectivity \
112 test_operation_fielddouble \
113 test_operation_fieldint \
114 test_porflow_driver \
115 test_profil_MedFieldDriver \
116 test_profil_gauss_MedFieldDriver
118 # scripts running tests with appropriate arguments
120 scripts/check_convertToPoly \
121 scripts/check_duplicateMED \
122 scripts/check_ensight2med \
123 scripts/check_med2_1_To_med2_2 \
124 scripts/check_med2ensight \
125 scripts/check_med2vtk \
126 scripts/check_readCoordinate \
127 scripts/check_readEntete \
128 scripts/check_testAnalFile \
129 scripts/check_test_MEDMEM_PolyDriverMedMeshRead \
130 scripts/check_test_MEDMEM_PolyDriverMedMeshWrite \
131 scripts/check_test_MEDMEM_poly3D \
132 scripts/check_test_copie_connectivity \
133 scripts/check_test_copie_family \
134 scripts/check_test_copie_fieldT \
135 scripts/check_test_copie_field_ \
136 scripts/check_test_copie_group \
137 scripts/check_test_copie_mesh \
138 scripts/check_test_copie_support \
139 scripts/check_test_gibi_driver \
140 scripts/check_test_grid \
141 scripts/check_test_operation_fielddouble \
142 scripts/check_test_operation_fieldint \
143 scripts/check_test_porflow_driver \
144 scripts/check_test_profil_MedFieldDriver \
145 scripts/check_test_profil_gauss_MedFieldDriver
147 TESTS_ENVIRONMENT = $(SHELL)
149 TESTS += $(SCRIPT_TESTS)
151 #if MED_ENABLE_KERNEL
152 # LDADD+=-lSALOMEBasics
155 dist_convertToPoly_SOURCES= convertToPoly.cxx
156 dist_ensight2med_SOURCES= ensight2med.cxx
157 dist_med2ensight_SOURCES= med2ensight.cxx
158 dist_med2_1_To_med2_2_SOURCES= med2_1_To_med2_2.cxx
159 dist_med2vtk_SOURCES= med2vtk.cxx
160 dist_duplicateMED_SOURCES= duplicateMED.cxx
161 dist_medmembin_test_SOURCES= med_test.cxx
162 dist_duplicateMEDMESH_SOURCES= duplicateMEDMESH.cxx
163 dist_test_write_groups_poly_SOURCES= test_write_groups_poly.cxx
164 dist_test_MEDMEM_ModulusArray_SOURCES= test_MEDMEM_ModulusArray.cxx
165 dist_test_MEDMEM_Array_SOURCES= test_MEDMEM_Array.cxx
166 dist_test_MEDMEM_SkyLineArray_SOURCES= test_MEDMEM_SkyLineArray.cxx
167 dist_test_MEDMEM_CellModel_SOURCES= test_MEDMEM_CellModel.cxx
168 dist_testUPointerOf_SOURCES= tests/testUPointerOf.cxx
169 dist_testUCoordinate_SOURCES= tests/testUCoordinate.cxx
170 dist_testUUnit_SOURCES= tests/testUUnit.cxx
171 dist_testUGeoNameMeshEntities_SOURCES= tests/testUGeoNameMeshEntities.cxx
172 dist_testUMedException_SOURCES= tests/testUMedException.cxx
173 dist_testUModulusArray_SOURCES= tests/testUModulusArray.cxx
174 dist_testUSkyLineArray_SOURCES= tests/testUSkyLineArray.cxx
175 dist_testUArray_SOURCES= tests/testUArray.cxx
176 dist_testUCellModel_SOURCES= tests/testUCellModel.cxx
177 dist_readEntete_SOURCES= tests/readEntete.cxx
178 dist_readCoordinate_SOURCES= tests/readCoordinate.cxx
179 dist_test_copie_field__SOURCES= test_copie_field_.cxx
180 dist_test_copie_fieldT_SOURCES= test_copie_fieldT.cxx
181 dist_test_copie_coordinate_SOURCES= test_copie_coordinate.cxx
182 dist_test_copie_medarray_SOURCES= test_copie_medarray.cxx
183 dist_test_copie_connectivity_SOURCES= test_copie_connectivity.cxx
184 dist_test_copie_support_SOURCES= test_copie_support.cxx
185 dist_test_copie_family_SOURCES= test_copie_family.cxx
186 dist_test_copie_group_SOURCES= test_copie_group.cxx
187 dist_test_copie_mesh_SOURCES= test_copie_mesh.cxx
188 dist_test_affect_medarray_SOURCES= test_affect_medarray.cxx
189 dist_test_MEDMEM_Meshing_SOURCES= test_MEDMEM_Meshing.cxx
190 dist_test_MEDMEM_MeshingPoly_SOURCES= test_MEDMEM_MeshingPoly.cxx
191 dist_test_operation_fielddouble_SOURCES= test_operation_fielddouble.cxx
192 dist_test_operation_fieldint_SOURCES= test_operation_fieldint.cxx
193 dist_test_gibi_driver_SOURCES= test_gibi_driver.cxx
194 dist_test_porflow_driver_SOURCES= test_porflow_driver.cxx
195 dist_test_grid_SOURCES= test_grid.cxx
196 dist_test_MEDMEM_PolyhedronArray_SOURCES= test_MEDMEM_PolyhedronArray.cxx
197 dist_test_MEDMEM_PolyConnectivity_SOURCES= test_MEDMEM_PolyConnectivity.cxx
198 dist_test_MEDMEM_PolyDriverMedMeshRead_SOURCES= test_MEDMEM_PolyDriverMedMeshRead.cxx
199 dist_test_MEDMEM_PolyDriverMedMeshWrite_SOURCES= test_MEDMEM_PolyDriverMedMeshWrite.cxx
200 dist_test_MEDMEM_poly3D_SOURCES= test_MEDMEM_poly3D.cxx
201 dist_test_MEDMEM_nArray_SOURCES= test_MEDMEM_nArray.cxx
202 dist_test_MEDMEM_Meshing_poly_SOURCES= test_MEDMEM_Meshing_poly.cxx
203 dist_test_profil_MedFieldDriver_SOURCES= test_profil_MedFieldDriver.cxx
204 dist_test_profil_gauss_MedFieldDriver_SOURCES= test_profil_gauss_MedFieldDriver.cxx
205 dist_test_GaussLocalization_SOURCES= test_GaussLocalization.cxx
206 dist_testAnalFile_SOURCES= testAnalFile.cxx
207 dist_test_MEDMEM_MeshingFlica_SOURCES= test_MEDMEM_MeshingFlica.cxx
208 dist_testConvertPolygon_SOURCES=testConvertPolygon.cxx
214 EXTRA_DIST += $(OBSOLETE_FILES) $(SCRIPT_TESTS)