Salome HOME
Merge from V6_main 01/04/2013
[modules/med.git] / src / MEDMEMBinTest / Makefile.am
1 # Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 #  MED MEDMEM : MED files in memory
21 #
22 include $(top_srcdir)/adm_local/unix/make_common_starter.am
23
24 # first '.' says that this folder must be compiled before Test (MEDMEM/Test uses MEDMEM)
25 #if CPPUNIT_IS_OK
26 # SUBDIRS=. Test
27 #endif
28
29 #DIST_SUBDIRS= Test
30
31 #lib_LTLIBRARIES= libMEDMEMBinTest.la
32
33
34 #libmedmem_la_LDFLAGS= -L$(top_builddir)/lib@LIB_LOCATION_SUFFIX@/salome 
35 #libMEDMEMBinTest_la_CPPFLAGS= $(MED3_INCLUDES) $(HDF5_INCLUDES) @CXXTMPDPTHFLAGS@ \
36 #       -I$(srcdir)/../MEDWrapper/Base \
37 #       -I$(srcdir)/../MEDWrapper/V2_1/Core -I$(srcdir)/../INTERPOLATION
38
39 # change motivated by the bug KERNEL4778.
40 #libMEDMEMBinTest_la_LDFLAGS=$(MED3_LIBS_C_ONLY) $(HDF5_LIBS) ../MEDWrapper/V2_1/Core/libmed_V2_1.la \
41 #       ../MEDWrapper/Base/libMEDWrapperBase.la $(STDLIB)
42 #if MED_ENABLE_KERNEL
43 #    libMEDMEMBinTest_la_CPPFLAGS+= ${KERNEL_CXXFLAGS}
44 #    libMEDMEMBinTest_la_LDFLAGS+= ${KERNEL_LDFLAGS} -lSALOMELocalTrace 
45 #endif
46
47 AM_CPPFLAGS += $(MED3_INCLUDES) $(HDF5_INCLUDES) @CXXTMPDPTHFLAGS@ \
48         -I$(srcdir)/../INTERP_KERNEL \
49         -I$(srcdir)/../INTERP_KERNEL/Bases \
50         -I$(srcdir)/../INTERP_KERNEL/GaussPoints \
51         -I$(srcdir)/../MEDMEM
52
53 LDADD= $(MED3_LIBS_C_ONLY) $(HDF5_LIBS)  \
54         $(STDLIB) ../MEDMEM/libmedmem.la ../INTERP_KERNEL/libinterpkernel.la
55
56
57 if MED_ENABLE_KERNEL
58     AM_CPPFLAGS+= ${KERNEL_CXXFLAGS}
59     LDADD+= ${KERNEL_LDFLAGS} -lSALOMELocalTrace -lSALOMEBasics
60 endif
61
62
63 bin_PROGRAMS= \
64         ensight2med med2ensight convertToPoly dumpInterpolation \
65         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 \
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
81
82 #AM_CPPFLAGS= $(libMEDMEMBinTest_la_CPPFLAGS)
83 #LDADD= $(libMEDMEMBinTest_la_LDFLAGS) -lm libMEDMEMBinTest.la
84
85 TESTS = $(bin_PROGRAMS)
86
87 # tests that fail because they require arguments
88 XFAIL_TESTS = \
89         dumpInterpolation \
90         convertToPoly \
91         duplicateMED \
92         duplicateMEDMESH \
93         ensight2med \
94         med2ensight \
95         med2vtk \
96         medmembin_test \
97         readCoordinate \
98         readEntete \
99         testAnalFile \
100         test_MEDMEM_PolyDriverMedMeshRead \
101         test_MEDMEM_PolyDriverMedMeshWrite \
102         test_MEDMEM_poly3D \
103         test_copie_connectivity \
104         test_copie_family \
105         test_copie_fieldT \
106         test_copie_field_ \
107         test_copie_group \
108         test_copie_mesh \
109         test_copie_support \
110         test_gibi_driver \
111         test_grid \
112         test_operation_fielddouble \
113         test_operation_fieldint \
114         test_porflow_driver \
115         test_profil_MedFieldDriver \
116         test_profil_gauss_MedFieldDriver
117
118 # scripts running tests with appropriate arguments
119 SCRIPT_TESTS = \
120         scripts/check_convertToPoly \
121         scripts/check_duplicateMED \
122         scripts/check_ensight2med \
123         scripts/check_med2ensight \
124         scripts/check_med2vtk \
125         scripts/check_readCoordinate \
126         scripts/check_readEntete \
127         scripts/check_testAnalFile \
128         scripts/check_test_MEDMEM_PolyDriverMedMeshRead \
129         scripts/check_test_MEDMEM_PolyDriverMedMeshWrite \
130         scripts/check_test_MEDMEM_poly3D \
131         scripts/check_test_copie_connectivity \
132         scripts/check_test_copie_family \
133         scripts/check_test_copie_fieldT \
134         scripts/check_test_copie_field_ \
135         scripts/check_test_copie_group \
136         scripts/check_test_copie_mesh \
137         scripts/check_test_copie_support \
138         scripts/check_test_gibi_driver \
139         scripts/check_test_grid \
140         scripts/check_test_operation_fielddouble \
141         scripts/check_test_operation_fieldint \
142         scripts/check_test_porflow_driver \
143         scripts/check_test_profil_MedFieldDriver \
144         scripts/check_test_profil_gauss_MedFieldDriver
145
146 TESTS_ENVIRONMENT = $(SHELL)
147
148 TESTS += $(SCRIPT_TESTS)
149
150 #if MED_ENABLE_KERNEL
151 #     LDADD+=-lSALOMEBasics
152 #endif
153
154 dist_dumpInterpolation_SOURCES= dumpInterpolation.cxx
155 dist_convertToPoly_SOURCES= convertToPoly.cxx
156 dist_ensight2med_SOURCES= ensight2med.cxx
157 dist_med2ensight_SOURCES= med2ensight.cxx
158 dist_med2vtk_SOURCES= med2vtk.cxx
159 dist_duplicateMED_SOURCES= duplicateMED.cxx
160 dist_medmembin_test_SOURCES= med_test.cxx
161 dist_duplicateMEDMESH_SOURCES= duplicateMEDMESH.cxx
162 dist_test_write_groups_poly_SOURCES= test_write_groups_poly.cxx
163 dist_test_MEDMEM_ModulusArray_SOURCES= test_MEDMEM_ModulusArray.cxx
164 dist_test_MEDMEM_Array_SOURCES= test_MEDMEM_Array.cxx
165 dist_test_MEDMEM_SkyLineArray_SOURCES= test_MEDMEM_SkyLineArray.cxx
166 dist_test_MEDMEM_CellModel_SOURCES= test_MEDMEM_CellModel.cxx
167 dist_testUPointerOf_SOURCES= tests/testUPointerOf.cxx
168 dist_testUCoordinate_SOURCES= tests/testUCoordinate.cxx
169 dist_testUUnit_SOURCES= tests/testUUnit.cxx
170 dist_testUGeoNameMeshEntities_SOURCES= tests/testUGeoNameMeshEntities.cxx
171 dist_testUMedException_SOURCES= tests/testUMedException.cxx
172 dist_testUModulusArray_SOURCES= tests/testUModulusArray.cxx
173 dist_testUSkyLineArray_SOURCES= tests/testUSkyLineArray.cxx
174 dist_testUArray_SOURCES= tests/testUArray.cxx
175 dist_testUCellModel_SOURCES= tests/testUCellModel.cxx
176 dist_readEntete_SOURCES= tests/readEntete.cxx
177 dist_readCoordinate_SOURCES= tests/readCoordinate.cxx
178 dist_test_copie_field__SOURCES= test_copie_field_.cxx
179 dist_test_copie_fieldT_SOURCES= test_copie_fieldT.cxx
180 dist_test_copie_coordinate_SOURCES= test_copie_coordinate.cxx
181 dist_test_copie_medarray_SOURCES= test_copie_medarray.cxx
182 dist_test_copie_connectivity_SOURCES= test_copie_connectivity.cxx
183 dist_test_copie_support_SOURCES= test_copie_support.cxx
184 dist_test_copie_family_SOURCES= test_copie_family.cxx
185 dist_test_copie_group_SOURCES= test_copie_group.cxx
186 dist_test_copie_mesh_SOURCES= test_copie_mesh.cxx
187 dist_test_affect_medarray_SOURCES= test_affect_medarray.cxx
188 dist_test_MEDMEM_Meshing_SOURCES= test_MEDMEM_Meshing.cxx
189 dist_test_MEDMEM_MeshingPoly_SOURCES= test_MEDMEM_MeshingPoly.cxx
190 dist_test_operation_fielddouble_SOURCES= test_operation_fielddouble.cxx
191 dist_test_operation_fieldint_SOURCES= test_operation_fieldint.cxx
192 dist_test_gibi_driver_SOURCES= test_gibi_driver.cxx
193 dist_test_porflow_driver_SOURCES= test_porflow_driver.cxx
194 dist_test_grid_SOURCES= test_grid.cxx
195 dist_test_MEDMEM_PolyDriverMedMeshRead_SOURCES= test_MEDMEM_PolyDriverMedMeshRead.cxx
196 dist_test_MEDMEM_PolyDriverMedMeshWrite_SOURCES= test_MEDMEM_PolyDriverMedMeshWrite.cxx
197 dist_test_MEDMEM_poly3D_SOURCES= test_MEDMEM_poly3D.cxx
198 dist_test_MEDMEM_nArray_SOURCES= test_MEDMEM_nArray.cxx
199 dist_test_MEDMEM_Meshing_poly_SOURCES= test_MEDMEM_Meshing_poly.cxx
200 dist_test_profil_MedFieldDriver_SOURCES= test_profil_MedFieldDriver.cxx
201 dist_test_profil_gauss_MedFieldDriver_SOURCES= test_profil_gauss_MedFieldDriver.cxx
202 dist_test_GaussLocalization_SOURCES= test_GaussLocalization.cxx
203 dist_testAnalFile_SOURCES= testAnalFile.cxx
204 dist_test_MEDMEM_MeshingFlica_SOURCES= test_MEDMEM_MeshingFlica.cxx
205 dist_testConvertPolygon_SOURCES=testConvertPolygon.cxx
206
207 OBSOLETE_FILES = \
208         create_poly2D.c \
209         testAG.cxx
210
211 EXTRA_DIST += $(OBSOLETE_FILES) $(SCRIPT_TESTS)