1 # -*- coding: iso-8859-1 -*-
2 # Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
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.
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.
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
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 import sys, os,signal,string,commands
26 # get SALOME environment :
28 ###args, modules_list, modules_root_dir = runSalome.get_config()
29 ###runSalome.set_env(args, modules_list, modules_root_dir)
31 # launch CORBA naming server
33 ###clt=orbmodule.client()
35 # launch CORBA logger server
37 ###myServer=runSalome.LoggerServer(args)
39 ###clt.waitLogger("Logger")
43 command = ['TestMEDMEM']
44 ret = os.spawnvp(os.P_WAIT, command[0], command)
46 print "MEDMEM General testing done."
47 print "Run cases, which leads to Segmentation Fault ..."
49 command = ['MEDMEMTest_Array_fault']
50 ret = os.spawnvp(os.P_WAIT, command[0], command)
52 command = ['MEDMEMTest_Connectivity_fault']
53 ret = os.spawnvp(os.P_WAIT, command[0], command)
55 command = ['MEDMEMTest_Coordinate_fault']
56 ret = os.spawnvp(os.P_WAIT, command[0], command)
58 command = ['MEDMEMTest_Family_fault']
59 ret = os.spawnvp(os.P_WAIT, command[0], command)
61 command = ['MEDMEMTest_Field_fault']
62 ret = os.spawnvp(os.P_WAIT, command[0], command)
64 command = ['MEDMEMTest_Grid_fault']
65 ret = os.spawnvp(os.P_WAIT, command[0], command)
67 command = ['MEDMEMTest_MeshAndMeshing_fault']
68 ret = os.spawnvp(os.P_WAIT, command[0], command)
70 command = ['MEDMEMTest_Support_fault']
71 ret = os.spawnvp(os.P_WAIT, command[0], command)
73 command = ['MEDMEMTest_VtkFieldDriver_fault']
74 ret = os.spawnvp(os.P_WAIT, command[0], command)
76 command = ['MEDMEMTest_VtkMeshDriver_fault']
77 ret = os.spawnvp(os.P_WAIT, command[0], command)
81 ###TestKiller.killProcess(runSalome.process_id)