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