Salome HOME
988e80b6fd5b00416ec60e22ebf47f04d30de554
[modules/med.git] / src / MEDMEM_SWIG / testMedMemCxxTests.py
1 #  -*- coding: iso-8859-1 -*-
2 # Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
3 #
4 # Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
5 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 #
7 # This library is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU Lesser General Public
9 # License as published by the Free Software Foundation; either
10 # version 2.1 of the License.
11 #
12 # This library is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 # Lesser General Public License for more details.
16 #
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with this library; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
20 #
21 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 #
23
24 from libMEDMEM_Swig import *
25
26 import os,string
27
28 filesPath=os.environ["MED_ROOT_DIR"]
29 filesPath=os.path.join(filesPath, "share", "salome", "resources", "med")
30
31 testExecfiles = []
32 argListTest = []
33 rootFileTest = []
34 meshTest = []
35 fieldTest = []
36
37 # executables list to test functionalities
38
39 testExecfiles.append("testUArray")
40 argListTest.append("")
41 rootFileTest.append("")
42 meshTest.append("")
43 fieldTest.append("")
44
45 testExecfiles.append("testUCellModel")
46 argListTest.append("")
47 rootFileTest.append("")
48 meshTest.append("")
49 fieldTest.append("")
50
51 testExecfiles.append("testUCoordinate")
52 argListTest.append("")
53 rootFileTest.append("")
54 meshTest.append("")
55 fieldTest.append("")
56
57 testExecfiles.append("testUGeoNameMeshEntities")
58 argListTest.append("")
59 rootFileTest.append("")
60 meshTest.append("")
61 fieldTest.append("")
62
63 testExecfiles.append("testUMedException")
64 argListTest.append("")
65 rootFileTest.append("")
66 meshTest.append("")
67 fieldTest.append("")
68
69 testExecfiles.append("testUModulusArray")
70 argListTest.append("")
71 rootFileTest.append("")
72 meshTest.append("")
73 fieldTest.append("")
74
75 testExecfiles.append("testUPointerOf")
76 argListTest.append("")
77 rootFileTest.append("")
78 meshTest.append("")
79 fieldTest.append("")
80
81 testExecfiles.append("testUSkyLineArray")
82 argListTest.append("")
83 rootFileTest.append("")
84 meshTest.append("")
85 fieldTest.append("")
86
87 testExecfiles.append("testUUnit")
88 argListTest.append("")
89 rootFileTest.append("")
90 meshTest.append("")
91 fieldTest.append("")
92
93 testExecfiles.append("test_affect_medarray")
94 argListTest.append("")
95 rootFileTest.append("")
96 meshTest.append("")
97 fieldTest.append("")
98
99 testExecfiles.append("test_copie_coordinate")
100 argListTest.append("")
101 rootFileTest.append("")
102 meshTest.append("")
103 fieldTest.append("")
104
105 testExecfiles.append("test_copie_medarray")
106 argListTest.append("")
107 rootFileTest.append("")
108 meshTest.append("")
109 fieldTest.append("")
110
111 testExecfiles.append("test_MEDMEM_Array")
112 argListTest.append("")
113 rootFileTest.append("")
114 meshTest.append("")
115 fieldTest.append("")
116
117 testExecfiles.append("test_MEDMEM_CellModel")
118 argListTest.append("")
119 rootFileTest.append("")
120 meshTest.append("")
121 fieldTest.append("")
122
123 testExecfiles.append("test_MEDMEM_ModulusArray")
124 argListTest.append("")
125 rootFileTest.append("")
126 meshTest.append("")
127 fieldTest.append("")
128
129 testExecfiles.append("test_MEDMEM_SkyLineArray")
130 argListTest.append("")
131 rootFileTest.append("")
132 meshTest.append("")
133 fieldTest.append("")
134
135 testExecfiles.append("test_MEDMEM_Meshing")
136 argListTest.append("toto")
137 rootFileTest.append("")
138 meshTest.append("")
139 fieldTest.append("")
140
141 testExecfiles.append("test_gibi_driver")
142 rootFileTest.append("Darcy3_3D_H_10x10x10")
143 argListTest.append(os.path.join(filesPath,"Darcy3_3D_H_10x10x10.sauve"))
144 meshTest.append("")
145 fieldTest.append("")
146
147 testExecfiles.append("test_gibi_driver")
148 rootFileTest.append("dx200_dy1_avec_2couches")
149 argListTest.append(os.path.join(filesPath,"dx200_dy1_avec_2couches.sauve"))
150 meshTest.append("")
151 fieldTest.append("")
152
153 testExecfiles.append("test_gibi_driver")
154 rootFileTest.append("elle_2D_QT_10x10")
155 argListTest.append(os.path.join(filesPath,"elle_2D_QT_10x10.sauve"))
156 meshTest.append("")
157 fieldTest.append("")
158
159 testExecfiles.append("test_gibi_driver")
160 rootFileTest.append("elle_2D_QT_2x2")
161 argListTest.append(os.path.join(filesPath,"elle_2D_QT_2x2.sauve"))
162 meshTest.append("")
163 fieldTest.append("")
164
165 testExecfiles.append("test_gibi_driver")
166 rootFileTest.append("elle_2D_QT_40x40")
167 argListTest.append(os.path.join(filesPath,"elle_2D_QT_40x40.sauve"))
168 meshTest.append("")
169 fieldTest.append("")
170
171 testExecfiles.append("test_gibi_driver")
172 rootFileTest.append("elle_2D_QT_4x4")
173 argListTest.append(os.path.join(filesPath,"elle_2D_QT_4x4.sauve"))
174 meshTest.append("")
175 fieldTest.append("")
176
177 testExecfiles.append("test_gibi_driver")
178 rootFileTest.append("elle_3D_HPr_10x10x10")
179 argListTest.append(os.path.join(filesPath,"elle_3D_HPr_10x10x10.sauve"))
180 meshTest.append("")
181 fieldTest.append("")
182
183 testExecfiles.append("test_gibi_driver")
184 rootFileTest.append("elle_3D_HPr_2x2x2")
185 argListTest.append(os.path.join(filesPath,"elle_3D_HPr_2x2x2.sauve"))
186 meshTest.append("")
187 fieldTest.append("")
188
189 testExecfiles.append("test_gibi_driver")
190 rootFileTest.append("elle_3D_HPr_4x4x4")
191 argListTest.append(os.path.join(filesPath,"elle_3D_HPr_4x4x4.sauve"))
192 meshTest.append("")
193 fieldTest.append("")
194
195 testExecfiles.append("test_gibi_driver")
196 rootFileTest.append("inclusion_2d_raf")
197 argListTest.append(os.path.join(filesPath,"inclusion_2d_raf.sauve"))
198 meshTest.append("")
199 fieldTest.append("")
200
201 testExecfiles.append("test_gibi_driver")
202 rootFileTest.append("inclusion_2d")
203 argListTest.append(os.path.join(filesPath,"inclusion_2d.sauve"))
204 meshTest.append("")
205 fieldTest.append("")
206
207 testExecfiles.append("test_gibi_driver")
208 rootFileTest.append("mail_ktest1-3-hexa")
209 argListTest.append(os.path.join(filesPath,"mail_ktest1-3-hexa.sauve"))
210 meshTest.append("")
211 fieldTest.append("")
212
213 testExecfiles.append("test_gibi_driver")
214 rootFileTest.append("mail_ktest1-3-tetra")
215 argListTest.append(os.path.join(filesPath,"mail_ktest1-3-tetra.sauve"))
216 meshTest.append("")
217 fieldTest.append("")
218
219 testExecfiles.append("test_gibi_driver")
220 rootFileTest.append("mail_ktest3-1")
221 argListTest.append(os.path.join(filesPath,"mail_ktest3-1.sauve"))
222 meshTest.append("")
223 fieldTest.append("")
224
225 testExecfiles.append("test_gibi_driver")
226 rootFileTest.append("mail_ktest3-2")
227 argListTest.append(os.path.join(filesPath,"mail_ktest3-2.sauve"))
228 meshTest.append("")
229 fieldTest.append("")
230
231 testExecfiles.append("test_gibi_driver")
232 rootFileTest.append("maillage_andra2_100elts")
233 argListTest.append(os.path.join(filesPath,"maillage_andra2_100elts.sauve"))
234 meshTest.append("")
235 fieldTest.append("")
236
237 testExecfiles.append("test_gibi_driver")
238 rootFileTest.append("maillage_cas2_2d")
239 argListTest.append(os.path.join(filesPath,"maillage_cas2_2d.sauve"))
240 meshTest.append("")
241 fieldTest.append("")
242
243 testExecfiles.append("test_gibi_driver")
244 rootFileTest.append("maillage_cas4_234elts")
245 argListTest.append(os.path.join(filesPath,"maillage_cas4_234elts.sauve"))
246 meshTest.append("")
247 fieldTest.append("")
248
249 testExecfiles.append("test_gibi_driver")
250 rootFileTest.append("maillage_CHEMVAL_100elts")
251 argListTest.append(os.path.join(filesPath,"maillage_CHEMVAL_100elts.sauve"))
252 meshTest.append("")
253 fieldTest.append("")
254
255 testExecfiles.append("test_gibi_driver")
256 rootFileTest.append("maillage_CHEMVAL_40elts")
257 argListTest.append(os.path.join(filesPath,"maillage_CHEMVAL_40elts.sauve"))
258 meshTest.append("")
259 fieldTest.append("")
260
261 testExecfiles.append("test_gibi_driver")
262 rootFileTest.append("maillage_chemvalIV_cas1_100elts")
263 argListTest.append(os.path.join(filesPath,"maillage_chemvalIV_cas1_100elts.sauve"))
264 meshTest.append("")
265 fieldTest.append("")
266
267 testExecfiles.append("test_gibi_driver")
268 rootFileTest.append("maillage_chemvalIV_cas1_40elts")
269 argListTest.append(os.path.join(filesPath,"maillage_chemvalIV_cas1_40elts.sauve"))
270 meshTest.append("")
271 fieldTest.append("")
272
273 # no resource file named maill_mistra_elim.sauve
274 # testExecfiles.append("test_gibi_driver")
275 # rootFileTest.append("maill_mistra_elim")
276 # argListTest.append(os.path.join(filesPath,"maill_mistra_elim.sauve"))
277 # meshTest.append("")
278 # fieldTest.append("")
279
280 testExecfiles.append("test_gibi_driver")
281 rootFileTest.append("mail_test1-1-qua")
282 argListTest.append(os.path.join(filesPath,"mail_test1-1-qua.sauve"))
283 meshTest.append("")
284 fieldTest.append("")
285
286 testExecfiles.append("test_gibi_driver")
287 rootFileTest.append("mail_test1-1-tri")
288 argListTest.append(os.path.join(filesPath,"mail_test1-1-tri.sauve"))
289 meshTest.append("")
290 fieldTest.append("")
291
292 testExecfiles.append("test_gibi_driver")
293 rootFileTest.append("mail_test1-2-qua")
294 argListTest.append(os.path.join(filesPath,"mail_test1-2-qua.sauve"))
295 meshTest.append("")
296 fieldTest.append("")
297
298 testExecfiles.append("test_gibi_driver")
299 rootFileTest.append("mail_test1-2-tri")
300 argListTest.append(os.path.join(filesPath,"mail_test1-2-tri.sauve"))
301 meshTest.append("")
302 fieldTest.append("")
303
304 testExecfiles.append("test_gibi_driver")
305 rootFileTest.append("mail-test1-4-1")
306 argListTest.append(os.path.join(filesPath,"mail-test1-4-1.sauve"))
307 meshTest.append("")
308 fieldTest.append("")
309
310 testExecfiles.append("test_gibi_driver")
311 rootFileTest.append("mail-test1-4-2")
312 argListTest.append(os.path.join(filesPath,"mail-test1-4-2.sauve"))
313 meshTest.append("")
314 fieldTest.append("")
315
316 testExecfiles.append("test_porflow_driver")
317 rootFileTest.append("boitenew")
318 argListTest.append(os.path.join(filesPath,"boitenew.inp"))
319 meshTest.append("")
320 fieldTest.append("")
321
322 testExecfiles.append("test_porflow_driver")
323 rootFileTest.append("Case1")
324 argListTest.append(os.path.join(filesPath,"Case1.inp"))
325 meshTest.append("")
326 fieldTest.append("")
327
328 testExecfiles.append("test_porflow_driver")
329 rootFileTest.append("cube")
330 argListTest.append(os.path.join(filesPath,"cube.inp"))
331 meshTest.append("")
332 fieldTest.append("")
333
334 testExecfiles.append("test_porflow_driver")
335 rootFileTest.append("test3")
336 argListTest.append(os.path.join(filesPath,"test3.inp"))
337 meshTest.append("")
338 fieldTest.append("")
339
340 testExecfiles.append("test_porflow_driver")
341 rootFileTest.append("titi")
342 argListTest.append(os.path.join(filesPath,"titi.inp"))
343 meshTest.append("")
344 fieldTest.append("")
345
346 testExecfiles.append("test_copie_connectivity")
347 rootFileTest.append("mesh")
348 meshTest.append("Mesh 1")
349 fieldTest.append("")
350 argListTest.append(os.path.join(filesPath,"mesh.med") + " " + "'Mesh 1'")
351
352 testExecfiles.append("test_copie_connectivity")
353 rootFileTest.append("maillage_UniSegFam")
354 meshTest.append("maillage_CHEMVAL_100elts")
355 fieldTest.append("")
356 argListTest.append(os.path.join(filesPath,"maillage_UniSegFam.med") + " " + "maillage_CHEMVAL_100elts")
357                    
358 testExecfiles.append("test_copie_connectivity")
359 rootFileTest.append("carre_en_quad4")
360 meshTest.append("carre_en_quad4")
361 fieldTest.append("")
362 argListTest.append(os.path.join(filesPath,"carre_en_quad4.med") + " " + "carre_en_quad4")
363
364 testExecfiles.append("test_copie_connectivity")
365 rootFileTest.append("cube_hexa8")
366 meshTest.append("CUBE_EN_HEXA8")
367 fieldTest.append("")
368 argListTest.append(os.path.join(filesPath,"cube_hexa8.med") + " " + "CUBE_EN_HEXA8")
369
370 testExecfiles.append("test_copie_connectivity")
371 rootFileTest.append("test19")
372 meshTest.append("maa1")
373 fieldTest.append("")
374 argListTest.append(os.path.join(filesPath,"test19.med") + " " + "maa1")
375
376 testExecfiles.append("test_copie_connectivity")
377 rootFileTest.append("carre_en_quad4_seg2")
378 meshTest.append("carre_en_quad4_seg2")
379 fieldTest.append("")
380 argListTest.append(os.path.join(filesPath,"carre_en_quad4_seg2.med") + " " + "carre_en_quad4_seg2")
381
382 testExecfiles.append("test_copie_connectivity")
383 rootFileTest.append("cube_hexa8_quad4")
384 meshTest.append("CUBE_EN_HEXA8_QUAD4")
385 fieldTest.append("")
386 argListTest.append(os.path.join(filesPath,"cube_hexa8_quad4.med") + " " + "CUBE_EN_HEXA8_QUAD4")
387
388 testExecfiles.append("test_copie_connectivity")
389 rootFileTest.append("pointe")
390 meshTest.append("maa1")
391 fieldTest.append("")
392 argListTest.append(os.path.join(filesPath,"pointe.med") + " " + "maa1")
393
394 testExecfiles.append("test_copie_family")
395 rootFileTest.append("mesh")
396 meshTest.append("Mesh 1")
397 fieldTest.append("")
398 argListTest.append(os.path.join(filesPath,"mesh.med") + " " + "'Mesh 1'")
399
400 testExecfiles.append("test_copie_family")
401 rootFileTest.append("pointe")
402 meshTest.append("maa1")
403 fieldTest.append("")
404 argListTest.append(os.path.join(filesPath,"pointe.med") + " " + "maa1")
405
406 # no nodal families in carre_en_quad4.med
407 # testExecfiles.append("test_copie_family")
408 # rootFileTest.append("carre_en_quad4")
409 # meshTest.append("carre_en_quad4")
410 # fieldTest.append("")
411 # argListTest.append(os.path.join(filesPath,"carre_en_quad4.med") + " " + "carre_en_quad4")
412
413 testExecfiles.append("test_copie_family")
414 rootFileTest.append("cube_hexa8")
415 meshTest.append("CUBE_EN_HEXA8")
416 fieldTest.append("")
417 argListTest.append(os.path.join(filesPath,"cube_hexa8.med") + " " + "CUBE_EN_HEXA8")
418
419 testExecfiles.append("test_copie_family")
420 rootFileTest.append("test19")
421 meshTest.append("maa1")
422 fieldTest.append("")
423 argListTest.append(os.path.join(filesPath,"test19.med") + " " + "maa1")
424
425 # no nodal families in carre_en_quad4_seg2.med
426 # testExecfiles.append("test_copie_family")
427 # rootFileTest.append("carre_en_quad4_seg2")
428 # meshTest.append("carre_en_quad4_seg2")
429 # fieldTest.append("")
430 # argListTest.append(os.path.join(filesPath,"carre_en_quad4_seg2.med") + " " + "carre_en_quad4_seg2")
431
432 testExecfiles.append("test_copie_family")
433 rootFileTest.append("cube_hexa8_quad4")
434 meshTest.append("CUBE_EN_HEXA8_QUAD4")
435 fieldTest.append("")
436 argListTest.append(os.path.join(filesPath,"cube_hexa8_quad4.med") + " " + "CUBE_EN_HEXA8_QUAD4")
437
438 testExecfiles.append("test_copie_family")
439 rootFileTest.append("pointe")
440 meshTest.append("maa1")
441 fieldTest.append("")
442 argListTest.append(os.path.join(filesPath,"pointe.med") + " " + "maa1")
443
444 # no nodal grous in mesh.med
445 # testExecfiles.append("test_copie_group")
446 # rootFileTest.append("mesh")
447 # meshTest.append("Mesh 1")
448 # fieldTest.append("")
449 # argListTest.append(os.path.join(filesPath,"mesh.med") + " " + "'Mesh 1'")
450
451 # no nodal grous in maillage_UniSegFam.med
452 # testExecfiles.append("test_copie_group")
453 # rootFileTest.append("maillage_UniSegFam")
454 # meshTest.append("maillage_CHEMVAL_100elts")
455 # fieldTest.append("")
456 # argListTest.append(os.path.join(filesPath,"maillage_UniSegFam.med") + " " + "maillage_CHEMVAL_100elts")
457
458 # no nodal grous in maillage_UniSegFam.med
459 # testExecfiles.append("test_copie_group")
460 # rootFileTest.append("carre_en_quad4")
461 # meshTest.append("carre_en_quad4")
462 # fieldTest.append("")
463 # argListTest.append(os.path.join(filesPath,"carre_en_quad4.med") + " " + "carre_en_quad4")
464
465 testExecfiles.append("test_copie_group")
466 rootFileTest.append("cube_hexa8")
467 meshTest.append("CUBE_EN_HEXA8")
468 fieldTest.append("")
469 argListTest.append(os.path.join(filesPath,"cube_hexa8.med") + " " + "CUBE_EN_HEXA8")
470
471 testExecfiles.append("test_copie_group")
472 rootFileTest.append("test19")
473 meshTest.append("maa1")
474 fieldTest.append("")
475 argListTest.append(os.path.join(filesPath,"test19.med") + " " + "maa1")
476
477 # no nodal grous in carre_en_quad4_seg2.med
478 # testExecfiles.append("test_copie_group")
479 # rootFileTest.append("carre_en_quad4_seg2")
480 # meshTest.append("carre_en_quad4_seg2")
481 # fieldTest.append("")
482 # argListTest.append(os.path.join(filesPath,"carre_en_quad4_seg2.med") + " " + "carre_en_quad4_seg2")
483
484 testExecfiles.append("test_copie_group")
485 rootFileTest.append("cube_hexa8_quad4")
486 meshTest.append("CUBE_EN_HEXA8_QUAD4")
487 fieldTest.append("")
488 argListTest.append(os.path.join(filesPath,"cube_hexa8_quad4.med") + " " + "CUBE_EN_HEXA8_QUAD4")
489
490 testExecfiles.append("test_copie_group")
491 rootFileTest.append("pointe")
492 meshTest.append("maa1")
493 fieldTest.append("")
494 argListTest.append(os.path.join(filesPath,"pointe.med") + " " + "maa1")
495
496 testExecfiles.append("test_copie_mesh")
497 rootFileTest.append("mesh")
498 meshTest.append("Mesh 1")
499 fieldTest.append("")
500 argListTest.append(os.path.join(filesPath,"mesh.med") + " " + "'Mesh 1'")
501
502 testExecfiles.append("test_copie_mesh")
503 rootFileTest.append("maillage_UniSegFam")
504 meshTest.append("maillage_CHEMVAL_100elts")
505 fieldTest.append("")
506 argListTest.append(os.path.join(filesPath,"maillage_UniSegFam.med") + " " + "maillage_CHEMVAL_100elts")
507                    
508 testExecfiles.append("test_copie_mesh")
509 rootFileTest.append("carre_en_quad4")
510 meshTest.append("carre_en_quad4")
511 fieldTest.append("")
512 argListTest.append(os.path.join(filesPath,"carre_en_quad4.med") + " " + "carre_en_quad4")
513
514 testExecfiles.append("test_copie_mesh")
515 rootFileTest.append("cube_hexa8")
516 meshTest.append("CUBE_EN_HEXA8")
517 fieldTest.append("")
518 argListTest.append(os.path.join(filesPath,"cube_hexa8.med") + " " + "CUBE_EN_HEXA8")
519
520 testExecfiles.append("test_copie_mesh")
521 rootFileTest.append("test19")
522 meshTest.append("maa1")
523 fieldTest.append("")
524 argListTest.append(os.path.join(filesPath,"test19.med") + " " + "maa1")
525
526 testExecfiles.append("test_copie_mesh")
527 rootFileTest.append("carre_en_quad4_seg2")
528 meshTest.append("carre_en_quad4_seg2")
529 fieldTest.append("")
530 argListTest.append(os.path.join(filesPath,"carre_en_quad4_seg2.med") + " " + "carre_en_quad4_seg2")
531
532 testExecfiles.append("test_copie_mesh")
533 rootFileTest.append("cube_hexa8_quad4")
534 meshTest.append("CUBE_EN_HEXA8_QUAD4")
535 fieldTest.append("")
536 argListTest.append(os.path.join(filesPath,"cube_hexa8_quad4.med") + " " + "CUBE_EN_HEXA8_QUAD4")
537
538 testExecfiles.append("test_copie_mesh")
539 rootFileTest.append("pointe")
540 meshTest.append("maa1")
541 fieldTest.append("")
542 argListTest.append(os.path.join(filesPath,"pointe.med") + " " + "maa1")
543
544 testExecfiles.append("test_copie_support")
545 rootFileTest.append("mesh")
546 meshTest.append("Mesh 1")
547 fieldTest.append("")
548 argListTest.append(os.path.join(filesPath,"mesh.med") + " " + "'Mesh 1'")
549
550 testExecfiles.append("test_copie_support")
551 rootFileTest.append("maillage_UniSegFam")
552 meshTest.append("maillage_CHEMVAL_100elts")
553 fieldTest.append("")
554 argListTest.append(os.path.join(filesPath,"maillage_UniSegFam.med") + " " + "maillage_CHEMVAL_100elts")
555                    
556 testExecfiles.append("test_copie_support")
557 rootFileTest.append("carre_en_quad4")
558 meshTest.append("carre_en_quad4")
559 fieldTest.append("")
560 argListTest.append(os.path.join(filesPath,"carre_en_quad4.med") + " " + "carre_en_quad4")
561
562 testExecfiles.append("test_copie_support")
563 rootFileTest.append("cube_hexa8")
564 meshTest.append("CUBE_EN_HEXA8")
565 fieldTest.append("")
566 argListTest.append(os.path.join(filesPath,"cube_hexa8.med") + " " + "CUBE_EN_HEXA8")
567
568 testExecfiles.append("test_copie_support")
569 rootFileTest.append("test19")
570 meshTest.append("maa1")
571 fieldTest.append("")
572 argListTest.append(os.path.join(filesPath,"test19.med") + " " + "maa1")
573
574 testExecfiles.append("test_copie_support")
575 rootFileTest.append("carre_en_quad4_seg2")
576 meshTest.append("carre_en_quad4_seg2")
577 fieldTest.append("")
578 argListTest.append(os.path.join(filesPath,"carre_en_quad4_seg2.med") + " " + "carre_en_quad4_seg2")
579
580 testExecfiles.append("test_copie_support")
581 rootFileTest.append("cube_hexa8_quad4")
582 meshTest.append("CUBE_EN_HEXA8_QUAD4")
583 fieldTest.append("")
584 argListTest.append(os.path.join(filesPath,"cube_hexa8_quad4.med") + " " + "CUBE_EN_HEXA8_QUAD4")
585
586 testExecfiles.append("test_copie_support")
587 rootFileTest.append("pointe")
588 meshTest.append("maa1")
589 fieldTest.append("")
590 argListTest.append(os.path.join(filesPath,"pointe.med") + " " + "maa1")
591
592 ###############################################################################
593
594 nbOfTests = len(testExecfiles)
595
596 print "Running all test programs with several arguments ... total = ",nbOfTests
597
598 testOutfiles = []
599 testErrfiles = []
600
601 for i in range(nbOfTests):
602     if (rootFileTest[i] == ""):
603         testOutfiles.append(testExecfiles[i] + ".out")
604     else:
605         if (meshTest[i] == ""):
606             testOutfiles.append(testExecfiles[i]+ "_" + rootFileTest[i] + ".out")
607         else:
608             if (fieldTest[i] == ""):
609                 meshName = string.replace(meshTest[i]," ","_")
610                 testOutfiles.append(testExecfiles[i]+ "_" + rootFileTest[i] + "_" + meshName + ".out")
611             else:
612                 meshName = string.replace(meshTest[i]," ","_")
613                 fieldName = string.replace(fieldTest[i]," ","_")
614                 testOutfiles.append(testExecfiles[i]+ "_" + rootFileTest[i] + "_" + meshName + "_" + fieldName + ".out")
615     testErrfiles.append(testExecfiles[i] + ".err")
616
617 for i in range(nbOfTests):
618     aCommand = testExecfiles[i] + " " + argListTest[i] + " > " + testOutfiles[i] + " 2> " + testErrfiles[i]
619     status = os.system(aCommand)
620     if (status != 0):
621         print "problem with the command ", aCommand
622
623 print "END of the Pyhton script ..... Ctrl D to exit"