Back to index

salome-med  6.5.0
testMedMemCxxTests.py
Go to the documentation of this file.
00001 #  -*- coding: iso-8859-1 -*-
00002 # Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00003 #
00004 # Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00005 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00006 #
00007 # This library is free software; you can redistribute it and/or
00008 # modify it under the terms of the GNU Lesser General Public
00009 # License as published by the Free Software Foundation; either
00010 # version 2.1 of the License.
00011 #
00012 # This library is distributed in the hope that it will be useful,
00013 # but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015 # Lesser General Public License for more details.
00016 #
00017 # You should have received a copy of the GNU Lesser General Public
00018 # License along with this library; if not, write to the Free Software
00019 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00020 #
00021 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00022 #
00023 
00024 from libMEDMEM_Swig import *
00025 
00026 import os,string
00027 
00028 filesPath=os.environ["MED_ROOT_DIR"]
00029 filesPath=os.path.join(filesPath, "share", "salome", "resources", "med")
00030 
00031 testExecfiles = []
00032 argListTest = []
00033 rootFileTest = []
00034 meshTest = []
00035 fieldTest = []
00036 
00037 # executables list to test functionalities
00038 
00039 testExecfiles.append("testUArray")
00040 argListTest.append("")
00041 rootFileTest.append("")
00042 meshTest.append("")
00043 fieldTest.append("")
00044 
00045 testExecfiles.append("testUCellModel")
00046 argListTest.append("")
00047 rootFileTest.append("")
00048 meshTest.append("")
00049 fieldTest.append("")
00050 
00051 testExecfiles.append("testUCoordinate")
00052 argListTest.append("")
00053 rootFileTest.append("")
00054 meshTest.append("")
00055 fieldTest.append("")
00056 
00057 testExecfiles.append("testUGeoNameMeshEntities")
00058 argListTest.append("")
00059 rootFileTest.append("")
00060 meshTest.append("")
00061 fieldTest.append("")
00062 
00063 testExecfiles.append("testUMedException")
00064 argListTest.append("")
00065 rootFileTest.append("")
00066 meshTest.append("")
00067 fieldTest.append("")
00068 
00069 testExecfiles.append("testUModulusArray")
00070 argListTest.append("")
00071 rootFileTest.append("")
00072 meshTest.append("")
00073 fieldTest.append("")
00074 
00075 testExecfiles.append("testUPointerOf")
00076 argListTest.append("")
00077 rootFileTest.append("")
00078 meshTest.append("")
00079 fieldTest.append("")
00080 
00081 testExecfiles.append("testUSkyLineArray")
00082 argListTest.append("")
00083 rootFileTest.append("")
00084 meshTest.append("")
00085 fieldTest.append("")
00086 
00087 testExecfiles.append("testUUnit")
00088 argListTest.append("")
00089 rootFileTest.append("")
00090 meshTest.append("")
00091 fieldTest.append("")
00092 
00093 testExecfiles.append("test_affect_medarray")
00094 argListTest.append("")
00095 rootFileTest.append("")
00096 meshTest.append("")
00097 fieldTest.append("")
00098 
00099 testExecfiles.append("test_copie_coordinate")
00100 argListTest.append("")
00101 rootFileTest.append("")
00102 meshTest.append("")
00103 fieldTest.append("")
00104 
00105 testExecfiles.append("test_copie_medarray")
00106 argListTest.append("")
00107 rootFileTest.append("")
00108 meshTest.append("")
00109 fieldTest.append("")
00110 
00111 testExecfiles.append("test_MEDMEM_Array")
00112 argListTest.append("")
00113 rootFileTest.append("")
00114 meshTest.append("")
00115 fieldTest.append("")
00116 
00117 testExecfiles.append("test_MEDMEM_CellModel")
00118 argListTest.append("")
00119 rootFileTest.append("")
00120 meshTest.append("")
00121 fieldTest.append("")
00122 
00123 testExecfiles.append("test_MEDMEM_ModulusArray")
00124 argListTest.append("")
00125 rootFileTest.append("")
00126 meshTest.append("")
00127 fieldTest.append("")
00128 
00129 testExecfiles.append("test_MEDMEM_SkyLineArray")
00130 argListTest.append("")
00131 rootFileTest.append("")
00132 meshTest.append("")
00133 fieldTest.append("")
00134 
00135 testExecfiles.append("test_MEDMEM_Meshing")
00136 argListTest.append("toto")
00137 rootFileTest.append("")
00138 meshTest.append("")
00139 fieldTest.append("")
00140 
00141 testExecfiles.append("test_gibi_driver")
00142 rootFileTest.append("Darcy3_3D_H_10x10x10")
00143 argListTest.append(os.path.join(filesPath,"Darcy3_3D_H_10x10x10.sauve"))
00144 meshTest.append("")
00145 fieldTest.append("")
00146 
00147 testExecfiles.append("test_gibi_driver")
00148 rootFileTest.append("dx200_dy1_avec_2couches")
00149 argListTest.append(os.path.join(filesPath,"dx200_dy1_avec_2couches.sauve"))
00150 meshTest.append("")
00151 fieldTest.append("")
00152 
00153 testExecfiles.append("test_gibi_driver")
00154 rootFileTest.append("elle_2D_QT_10x10")
00155 argListTest.append(os.path.join(filesPath,"elle_2D_QT_10x10.sauve"))
00156 meshTest.append("")
00157 fieldTest.append("")
00158 
00159 testExecfiles.append("test_gibi_driver")
00160 rootFileTest.append("elle_2D_QT_2x2")
00161 argListTest.append(os.path.join(filesPath,"elle_2D_QT_2x2.sauve"))
00162 meshTest.append("")
00163 fieldTest.append("")
00164 
00165 testExecfiles.append("test_gibi_driver")
00166 rootFileTest.append("elle_2D_QT_40x40")
00167 argListTest.append(os.path.join(filesPath,"elle_2D_QT_40x40.sauve"))
00168 meshTest.append("")
00169 fieldTest.append("")
00170 
00171 testExecfiles.append("test_gibi_driver")
00172 rootFileTest.append("elle_2D_QT_4x4")
00173 argListTest.append(os.path.join(filesPath,"elle_2D_QT_4x4.sauve"))
00174 meshTest.append("")
00175 fieldTest.append("")
00176 
00177 testExecfiles.append("test_gibi_driver")
00178 rootFileTest.append("elle_3D_HPr_10x10x10")
00179 argListTest.append(os.path.join(filesPath,"elle_3D_HPr_10x10x10.sauve"))
00180 meshTest.append("")
00181 fieldTest.append("")
00182 
00183 testExecfiles.append("test_gibi_driver")
00184 rootFileTest.append("elle_3D_HPr_2x2x2")
00185 argListTest.append(os.path.join(filesPath,"elle_3D_HPr_2x2x2.sauve"))
00186 meshTest.append("")
00187 fieldTest.append("")
00188 
00189 testExecfiles.append("test_gibi_driver")
00190 rootFileTest.append("elle_3D_HPr_4x4x4")
00191 argListTest.append(os.path.join(filesPath,"elle_3D_HPr_4x4x4.sauve"))
00192 meshTest.append("")
00193 fieldTest.append("")
00194 
00195 testExecfiles.append("test_gibi_driver")
00196 rootFileTest.append("inclusion_2d_raf")
00197 argListTest.append(os.path.join(filesPath,"inclusion_2d_raf.sauve"))
00198 meshTest.append("")
00199 fieldTest.append("")
00200 
00201 testExecfiles.append("test_gibi_driver")
00202 rootFileTest.append("inclusion_2d")
00203 argListTest.append(os.path.join(filesPath,"inclusion_2d.sauve"))
00204 meshTest.append("")
00205 fieldTest.append("")
00206 
00207 testExecfiles.append("test_gibi_driver")
00208 rootFileTest.append("mail_ktest1-3-hexa")
00209 argListTest.append(os.path.join(filesPath,"mail_ktest1-3-hexa.sauve"))
00210 meshTest.append("")
00211 fieldTest.append("")
00212 
00213 testExecfiles.append("test_gibi_driver")
00214 rootFileTest.append("mail_ktest1-3-tetra")
00215 argListTest.append(os.path.join(filesPath,"mail_ktest1-3-tetra.sauve"))
00216 meshTest.append("")
00217 fieldTest.append("")
00218 
00219 testExecfiles.append("test_gibi_driver")
00220 rootFileTest.append("mail_ktest3-1")
00221 argListTest.append(os.path.join(filesPath,"mail_ktest3-1.sauve"))
00222 meshTest.append("")
00223 fieldTest.append("")
00224 
00225 testExecfiles.append("test_gibi_driver")
00226 rootFileTest.append("mail_ktest3-2")
00227 argListTest.append(os.path.join(filesPath,"mail_ktest3-2.sauve"))
00228 meshTest.append("")
00229 fieldTest.append("")
00230 
00231 testExecfiles.append("test_gibi_driver")
00232 rootFileTest.append("maillage_andra2_100elts")
00233 argListTest.append(os.path.join(filesPath,"maillage_andra2_100elts.sauve"))
00234 meshTest.append("")
00235 fieldTest.append("")
00236 
00237 testExecfiles.append("test_gibi_driver")
00238 rootFileTest.append("maillage_cas2_2d")
00239 argListTest.append(os.path.join(filesPath,"maillage_cas2_2d.sauve"))
00240 meshTest.append("")
00241 fieldTest.append("")
00242 
00243 testExecfiles.append("test_gibi_driver")
00244 rootFileTest.append("maillage_cas4_234elts")
00245 argListTest.append(os.path.join(filesPath,"maillage_cas4_234elts.sauve"))
00246 meshTest.append("")
00247 fieldTest.append("")
00248 
00249 testExecfiles.append("test_gibi_driver")
00250 rootFileTest.append("maillage_CHEMVAL_100elts")
00251 argListTest.append(os.path.join(filesPath,"maillage_CHEMVAL_100elts.sauve"))
00252 meshTest.append("")
00253 fieldTest.append("")
00254 
00255 testExecfiles.append("test_gibi_driver")
00256 rootFileTest.append("maillage_CHEMVAL_40elts")
00257 argListTest.append(os.path.join(filesPath,"maillage_CHEMVAL_40elts.sauve"))
00258 meshTest.append("")
00259 fieldTest.append("")
00260 
00261 testExecfiles.append("test_gibi_driver")
00262 rootFileTest.append("maillage_chemvalIV_cas1_100elts")
00263 argListTest.append(os.path.join(filesPath,"maillage_chemvalIV_cas1_100elts.sauve"))
00264 meshTest.append("")
00265 fieldTest.append("")
00266 
00267 testExecfiles.append("test_gibi_driver")
00268 rootFileTest.append("maillage_chemvalIV_cas1_40elts")
00269 argListTest.append(os.path.join(filesPath,"maillage_chemvalIV_cas1_40elts.sauve"))
00270 meshTest.append("")
00271 fieldTest.append("")
00272 
00273 # no resource file named maill_mistra_elim.sauve
00274 # testExecfiles.append("test_gibi_driver")
00275 # rootFileTest.append("maill_mistra_elim")
00276 # argListTest.append(os.path.join(filesPath,"maill_mistra_elim.sauve"))
00277 # meshTest.append("")
00278 # fieldTest.append("")
00279 
00280 testExecfiles.append("test_gibi_driver")
00281 rootFileTest.append("mail_test1-1-qua")
00282 argListTest.append(os.path.join(filesPath,"mail_test1-1-qua.sauve"))
00283 meshTest.append("")
00284 fieldTest.append("")
00285 
00286 testExecfiles.append("test_gibi_driver")
00287 rootFileTest.append("mail_test1-1-tri")
00288 argListTest.append(os.path.join(filesPath,"mail_test1-1-tri.sauve"))
00289 meshTest.append("")
00290 fieldTest.append("")
00291 
00292 testExecfiles.append("test_gibi_driver")
00293 rootFileTest.append("mail_test1-2-qua")
00294 argListTest.append(os.path.join(filesPath,"mail_test1-2-qua.sauve"))
00295 meshTest.append("")
00296 fieldTest.append("")
00297 
00298 testExecfiles.append("test_gibi_driver")
00299 rootFileTest.append("mail_test1-2-tri")
00300 argListTest.append(os.path.join(filesPath,"mail_test1-2-tri.sauve"))
00301 meshTest.append("")
00302 fieldTest.append("")
00303 
00304 testExecfiles.append("test_gibi_driver")
00305 rootFileTest.append("mail-test1-4-1")
00306 argListTest.append(os.path.join(filesPath,"mail-test1-4-1.sauve"))
00307 meshTest.append("")
00308 fieldTest.append("")
00309 
00310 testExecfiles.append("test_gibi_driver")
00311 rootFileTest.append("mail-test1-4-2")
00312 argListTest.append(os.path.join(filesPath,"mail-test1-4-2.sauve"))
00313 meshTest.append("")
00314 fieldTest.append("")
00315 
00316 testExecfiles.append("test_porflow_driver")
00317 rootFileTest.append("boitenew")
00318 argListTest.append(os.path.join(filesPath,"boitenew.inp"))
00319 meshTest.append("")
00320 fieldTest.append("")
00321 
00322 testExecfiles.append("test_porflow_driver")
00323 rootFileTest.append("Case1")
00324 argListTest.append(os.path.join(filesPath,"Case1.inp"))
00325 meshTest.append("")
00326 fieldTest.append("")
00327 
00328 testExecfiles.append("test_porflow_driver")
00329 rootFileTest.append("cube")
00330 argListTest.append(os.path.join(filesPath,"cube.inp"))
00331 meshTest.append("")
00332 fieldTest.append("")
00333 
00334 testExecfiles.append("test_porflow_driver")
00335 rootFileTest.append("test3")
00336 argListTest.append(os.path.join(filesPath,"test3.inp"))
00337 meshTest.append("")
00338 fieldTest.append("")
00339 
00340 testExecfiles.append("test_porflow_driver")
00341 rootFileTest.append("titi")
00342 argListTest.append(os.path.join(filesPath,"titi.inp"))
00343 meshTest.append("")
00344 fieldTest.append("")
00345 
00346 testExecfiles.append("test_copie_connectivity")
00347 rootFileTest.append("mesh")
00348 meshTest.append("Mesh 1")
00349 fieldTest.append("")
00350 argListTest.append(os.path.join(filesPath,"mesh.med") + " " + "'Mesh 1'")
00351 
00352 testExecfiles.append("test_copie_connectivity")
00353 rootFileTest.append("maillage_UniSegFam")
00354 meshTest.append("maillage_CHEMVAL_100elts")
00355 fieldTest.append("")
00356 argListTest.append(os.path.join(filesPath,"maillage_UniSegFam.med") + " " + "maillage_CHEMVAL_100elts")
00357                    
00358 testExecfiles.append("test_copie_connectivity")
00359 rootFileTest.append("carre_en_quad4")
00360 meshTest.append("carre_en_quad4")
00361 fieldTest.append("")
00362 argListTest.append(os.path.join(filesPath,"carre_en_quad4.med") + " " + "carre_en_quad4")
00363 
00364 testExecfiles.append("test_copie_connectivity")
00365 rootFileTest.append("cube_hexa8")
00366 meshTest.append("CUBE_EN_HEXA8")
00367 fieldTest.append("")
00368 argListTest.append(os.path.join(filesPath,"cube_hexa8.med") + " " + "CUBE_EN_HEXA8")
00369 
00370 testExecfiles.append("test_copie_connectivity")
00371 rootFileTest.append("test19")
00372 meshTest.append("maa1")
00373 fieldTest.append("")
00374 argListTest.append(os.path.join(filesPath,"test19.med") + " " + "maa1")
00375 
00376 testExecfiles.append("test_copie_connectivity")
00377 rootFileTest.append("carre_en_quad4_seg2")
00378 meshTest.append("carre_en_quad4_seg2")
00379 fieldTest.append("")
00380 argListTest.append(os.path.join(filesPath,"carre_en_quad4_seg2.med") + " " + "carre_en_quad4_seg2")
00381 
00382 testExecfiles.append("test_copie_connectivity")
00383 rootFileTest.append("cube_hexa8_quad4")
00384 meshTest.append("CUBE_EN_HEXA8_QUAD4")
00385 fieldTest.append("")
00386 argListTest.append(os.path.join(filesPath,"cube_hexa8_quad4.med") + " " + "CUBE_EN_HEXA8_QUAD4")
00387 
00388 testExecfiles.append("test_copie_connectivity")
00389 rootFileTest.append("pointe")
00390 meshTest.append("maa1")
00391 fieldTest.append("")
00392 argListTest.append(os.path.join(filesPath,"pointe.med") + " " + "maa1")
00393 
00394 testExecfiles.append("test_copie_family")
00395 rootFileTest.append("mesh")
00396 meshTest.append("Mesh 1")
00397 fieldTest.append("")
00398 argListTest.append(os.path.join(filesPath,"mesh.med") + " " + "'Mesh 1'")
00399 
00400 testExecfiles.append("test_copie_family")
00401 rootFileTest.append("pointe")
00402 meshTest.append("maa1")
00403 fieldTest.append("")
00404 argListTest.append(os.path.join(filesPath,"pointe.med") + " " + "maa1")
00405 
00406 # no nodal families in carre_en_quad4.med
00407 # testExecfiles.append("test_copie_family")
00408 # rootFileTest.append("carre_en_quad4")
00409 # meshTest.append("carre_en_quad4")
00410 # fieldTest.append("")
00411 # argListTest.append(os.path.join(filesPath,"carre_en_quad4.med") + " " + "carre_en_quad4")
00412 
00413 testExecfiles.append("test_copie_family")
00414 rootFileTest.append("cube_hexa8")
00415 meshTest.append("CUBE_EN_HEXA8")
00416 fieldTest.append("")
00417 argListTest.append(os.path.join(filesPath,"cube_hexa8.med") + " " + "CUBE_EN_HEXA8")
00418 
00419 testExecfiles.append("test_copie_family")
00420 rootFileTest.append("test19")
00421 meshTest.append("maa1")
00422 fieldTest.append("")
00423 argListTest.append(os.path.join(filesPath,"test19.med") + " " + "maa1")
00424 
00425 # no nodal families in carre_en_quad4_seg2.med
00426 # testExecfiles.append("test_copie_family")
00427 # rootFileTest.append("carre_en_quad4_seg2")
00428 # meshTest.append("carre_en_quad4_seg2")
00429 # fieldTest.append("")
00430 # argListTest.append(os.path.join(filesPath,"carre_en_quad4_seg2.med") + " " + "carre_en_quad4_seg2")
00431 
00432 testExecfiles.append("test_copie_family")
00433 rootFileTest.append("cube_hexa8_quad4")
00434 meshTest.append("CUBE_EN_HEXA8_QUAD4")
00435 fieldTest.append("")
00436 argListTest.append(os.path.join(filesPath,"cube_hexa8_quad4.med") + " " + "CUBE_EN_HEXA8_QUAD4")
00437 
00438 testExecfiles.append("test_copie_family")
00439 rootFileTest.append("pointe")
00440 meshTest.append("maa1")
00441 fieldTest.append("")
00442 argListTest.append(os.path.join(filesPath,"pointe.med") + " " + "maa1")
00443 
00444 # no nodal grous in mesh.med
00445 # testExecfiles.append("test_copie_group")
00446 # rootFileTest.append("mesh")
00447 # meshTest.append("Mesh 1")
00448 # fieldTest.append("")
00449 # argListTest.append(os.path.join(filesPath,"mesh.med") + " " + "'Mesh 1'")
00450 
00451 # no nodal grous in maillage_UniSegFam.med
00452 # testExecfiles.append("test_copie_group")
00453 # rootFileTest.append("maillage_UniSegFam")
00454 # meshTest.append("maillage_CHEMVAL_100elts")
00455 # fieldTest.append("")
00456 # argListTest.append(os.path.join(filesPath,"maillage_UniSegFam.med") + " " + "maillage_CHEMVAL_100elts")
00457 
00458 # no nodal grous in maillage_UniSegFam.med
00459 # testExecfiles.append("test_copie_group")
00460 # rootFileTest.append("carre_en_quad4")
00461 # meshTest.append("carre_en_quad4")
00462 # fieldTest.append("")
00463 # argListTest.append(os.path.join(filesPath,"carre_en_quad4.med") + " " + "carre_en_quad4")
00464 
00465 testExecfiles.append("test_copie_group")
00466 rootFileTest.append("cube_hexa8")
00467 meshTest.append("CUBE_EN_HEXA8")
00468 fieldTest.append("")
00469 argListTest.append(os.path.join(filesPath,"cube_hexa8.med") + " " + "CUBE_EN_HEXA8")
00470 
00471 testExecfiles.append("test_copie_group")
00472 rootFileTest.append("test19")
00473 meshTest.append("maa1")
00474 fieldTest.append("")
00475 argListTest.append(os.path.join(filesPath,"test19.med") + " " + "maa1")
00476 
00477 # no nodal grous in carre_en_quad4_seg2.med
00478 # testExecfiles.append("test_copie_group")
00479 # rootFileTest.append("carre_en_quad4_seg2")
00480 # meshTest.append("carre_en_quad4_seg2")
00481 # fieldTest.append("")
00482 # argListTest.append(os.path.join(filesPath,"carre_en_quad4_seg2.med") + " " + "carre_en_quad4_seg2")
00483 
00484 testExecfiles.append("test_copie_group")
00485 rootFileTest.append("cube_hexa8_quad4")
00486 meshTest.append("CUBE_EN_HEXA8_QUAD4")
00487 fieldTest.append("")
00488 argListTest.append(os.path.join(filesPath,"cube_hexa8_quad4.med") + " " + "CUBE_EN_HEXA8_QUAD4")
00489 
00490 testExecfiles.append("test_copie_group")
00491 rootFileTest.append("pointe")
00492 meshTest.append("maa1")
00493 fieldTest.append("")
00494 argListTest.append(os.path.join(filesPath,"pointe.med") + " " + "maa1")
00495 
00496 testExecfiles.append("test_copie_mesh")
00497 rootFileTest.append("mesh")
00498 meshTest.append("Mesh 1")
00499 fieldTest.append("")
00500 argListTest.append(os.path.join(filesPath,"mesh.med") + " " + "'Mesh 1'")
00501 
00502 testExecfiles.append("test_copie_mesh")
00503 rootFileTest.append("maillage_UniSegFam")
00504 meshTest.append("maillage_CHEMVAL_100elts")
00505 fieldTest.append("")
00506 argListTest.append(os.path.join(filesPath,"maillage_UniSegFam.med") + " " + "maillage_CHEMVAL_100elts")
00507                    
00508 testExecfiles.append("test_copie_mesh")
00509 rootFileTest.append("carre_en_quad4")
00510 meshTest.append("carre_en_quad4")
00511 fieldTest.append("")
00512 argListTest.append(os.path.join(filesPath,"carre_en_quad4.med") + " " + "carre_en_quad4")
00513 
00514 testExecfiles.append("test_copie_mesh")
00515 rootFileTest.append("cube_hexa8")
00516 meshTest.append("CUBE_EN_HEXA8")
00517 fieldTest.append("")
00518 argListTest.append(os.path.join(filesPath,"cube_hexa8.med") + " " + "CUBE_EN_HEXA8")
00519 
00520 testExecfiles.append("test_copie_mesh")
00521 rootFileTest.append("test19")
00522 meshTest.append("maa1")
00523 fieldTest.append("")
00524 argListTest.append(os.path.join(filesPath,"test19.med") + " " + "maa1")
00525 
00526 testExecfiles.append("test_copie_mesh")
00527 rootFileTest.append("carre_en_quad4_seg2")
00528 meshTest.append("carre_en_quad4_seg2")
00529 fieldTest.append("")
00530 argListTest.append(os.path.join(filesPath,"carre_en_quad4_seg2.med") + " " + "carre_en_quad4_seg2")
00531 
00532 testExecfiles.append("test_copie_mesh")
00533 rootFileTest.append("cube_hexa8_quad4")
00534 meshTest.append("CUBE_EN_HEXA8_QUAD4")
00535 fieldTest.append("")
00536 argListTest.append(os.path.join(filesPath,"cube_hexa8_quad4.med") + " " + "CUBE_EN_HEXA8_QUAD4")
00537 
00538 testExecfiles.append("test_copie_mesh")
00539 rootFileTest.append("pointe")
00540 meshTest.append("maa1")
00541 fieldTest.append("")
00542 argListTest.append(os.path.join(filesPath,"pointe.med") + " " + "maa1")
00543 
00544 testExecfiles.append("test_copie_support")
00545 rootFileTest.append("mesh")
00546 meshTest.append("Mesh 1")
00547 fieldTest.append("")
00548 argListTest.append(os.path.join(filesPath,"mesh.med") + " " + "'Mesh 1'")
00549 
00550 testExecfiles.append("test_copie_support")
00551 rootFileTest.append("maillage_UniSegFam")
00552 meshTest.append("maillage_CHEMVAL_100elts")
00553 fieldTest.append("")
00554 argListTest.append(os.path.join(filesPath,"maillage_UniSegFam.med") + " " + "maillage_CHEMVAL_100elts")
00555                    
00556 testExecfiles.append("test_copie_support")
00557 rootFileTest.append("carre_en_quad4")
00558 meshTest.append("carre_en_quad4")
00559 fieldTest.append("")
00560 argListTest.append(os.path.join(filesPath,"carre_en_quad4.med") + " " + "carre_en_quad4")
00561 
00562 testExecfiles.append("test_copie_support")
00563 rootFileTest.append("cube_hexa8")
00564 meshTest.append("CUBE_EN_HEXA8")
00565 fieldTest.append("")
00566 argListTest.append(os.path.join(filesPath,"cube_hexa8.med") + " " + "CUBE_EN_HEXA8")
00567 
00568 testExecfiles.append("test_copie_support")
00569 rootFileTest.append("test19")
00570 meshTest.append("maa1")
00571 fieldTest.append("")
00572 argListTest.append(os.path.join(filesPath,"test19.med") + " " + "maa1")
00573 
00574 testExecfiles.append("test_copie_support")
00575 rootFileTest.append("carre_en_quad4_seg2")
00576 meshTest.append("carre_en_quad4_seg2")
00577 fieldTest.append("")
00578 argListTest.append(os.path.join(filesPath,"carre_en_quad4_seg2.med") + " " + "carre_en_quad4_seg2")
00579 
00580 testExecfiles.append("test_copie_support")
00581 rootFileTest.append("cube_hexa8_quad4")
00582 meshTest.append("CUBE_EN_HEXA8_QUAD4")
00583 fieldTest.append("")
00584 argListTest.append(os.path.join(filesPath,"cube_hexa8_quad4.med") + " " + "CUBE_EN_HEXA8_QUAD4")
00585 
00586 testExecfiles.append("test_copie_support")
00587 rootFileTest.append("pointe")
00588 meshTest.append("maa1")
00589 fieldTest.append("")
00590 argListTest.append(os.path.join(filesPath,"pointe.med") + " " + "maa1")
00591 
00592 ###############################################################################
00593 
00594 nbOfTests = len(testExecfiles)
00595 
00596 print "Running all test programs with several arguments ... total = ",nbOfTests
00597 
00598 testOutfiles = []
00599 testErrfiles = []
00600 
00601 for i in range(nbOfTests):
00602     if (rootFileTest[i] == ""):
00603         testOutfiles.append(testExecfiles[i] + ".out")
00604     else:
00605         if (meshTest[i] == ""):
00606             testOutfiles.append(testExecfiles[i]+ "_" + rootFileTest[i] + ".out")
00607         else:
00608             if (fieldTest[i] == ""):
00609                 meshName = string.replace(meshTest[i]," ","_")
00610                 testOutfiles.append(testExecfiles[i]+ "_" + rootFileTest[i] + "_" + meshName + ".out")
00611             else:
00612                 meshName = string.replace(meshTest[i]," ","_")
00613                 fieldName = string.replace(fieldTest[i]," ","_")
00614                 testOutfiles.append(testExecfiles[i]+ "_" + rootFileTest[i] + "_" + meshName + "_" + fieldName + ".out")
00615     testErrfiles.append(testExecfiles[i] + ".err")
00616 
00617 for i in range(nbOfTests):
00618     aCommand = testExecfiles[i] + " " + argListTest[i] + " > " + testOutfiles[i] + " 2> " + testErrfiles[i]
00619     status = os.system(aCommand)
00620     if (status != 0):
00621         print "problem with the command ", aCommand
00622 
00623 print "END of the Pyhton script ..... Ctrl D to exit"