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