Salome HOME
Merge from V6_main_20120808 08Aug12
[modules/med.git] / src / MEDMEMCppTest / testMEDMEM.py
1 #  -*- coding: iso-8859-1 -*-
2 # Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
3 #
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License.
8 #
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 # Lesser General Public License for more details.
13 #
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 #
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #
20
21 import sys, os,signal,string,commands
22 ###import runSalome
23 ###import orbmodule
24 ###import TestKiller
25
26 # get SALOME environment :
27
28 ###args, modules_list, modules_root_dir = runSalome.get_config()
29 ###runSalome.set_env(args, modules_list, modules_root_dir)
30
31 # launch CORBA naming server
32
33 ###clt=orbmodule.client()
34
35 # launch CORBA logger server
36
37 ###myServer=runSalome.LoggerServer(args)
38 ###myServer.run()
39 ###clt.waitLogger("Logger")
40
41 # execute Unit Test
42
43 command = ['TestMEDMEM']
44 ret = os.spawnvp(os.P_WAIT, command[0], command)
45
46 print "MEDMEM General testing done."
47 print "Run cases, which leads to Segmentation Fault ..."
48
49 command = ['MEDMEMTest_Array_fault']
50 ret = os.spawnvp(os.P_WAIT, command[0], command)
51
52 command = ['MEDMEMTest_Connectivity_fault']
53 ret = os.spawnvp(os.P_WAIT, command[0], command)
54
55 command = ['MEDMEMTest_Coordinate_fault']
56 ret = os.spawnvp(os.P_WAIT, command[0], command)
57
58 command = ['MEDMEMTest_Family_fault']
59 ret = os.spawnvp(os.P_WAIT, command[0], command)
60
61 command = ['MEDMEMTest_Field_fault']
62 ret = os.spawnvp(os.P_WAIT, command[0], command)
63
64 command = ['MEDMEMTest_Grid_fault']
65 ret = os.spawnvp(os.P_WAIT, command[0], command)
66
67 command = ['MEDMEMTest_MeshAndMeshing_fault']
68 ret = os.spawnvp(os.P_WAIT, command[0], command)
69
70 command = ['MEDMEMTest_Support_fault']
71 ret = os.spawnvp(os.P_WAIT, command[0], command)
72
73 command = ['MEDMEMTest_VtkFieldDriver_fault']
74 ret = os.spawnvp(os.P_WAIT, command[0], command)
75
76 command = ['MEDMEMTest_VtkMeshDriver_fault']
77 ret = os.spawnvp(os.P_WAIT, command[0], command)
78
79 # kill Test process
80
81 ###TestKiller.killProcess(runSalome.process_id)