Back to index

salome-med  6.5.0
testMEDMEM.py
Go to the documentation of this file.
00001 #  -*- coding: iso-8859-1 -*-
00002 # Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00003 #
00004 # This library is free software; you can redistribute it and/or
00005 # modify it under the terms of the GNU Lesser General Public
00006 # License as published by the Free Software Foundation; either
00007 # version 2.1 of the License.
00008 #
00009 # This library is distributed in the hope that it will be useful,
00010 # but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012 # Lesser General Public License for more details.
00013 #
00014 # You should have received a copy of the GNU Lesser General Public
00015 # License along with this library; if not, write to the Free Software
00016 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00017 #
00018 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00019 #
00020 
00021 import sys, os,signal,string,commands
00022 ###import runSalome
00023 ###import orbmodule
00024 ###import TestKiller
00025 
00026 # get SALOME environment :
00027 
00028 ###args, modules_list, modules_root_dir = runSalome.get_config()
00029 ###runSalome.set_env(args, modules_list, modules_root_dir)
00030 
00031 # launch CORBA naming server
00032 
00033 ###clt=orbmodule.client()
00034 
00035 # launch CORBA logger server
00036 
00037 ###myServer=runSalome.LoggerServer(args)
00038 ###myServer.run()
00039 ###clt.waitLogger("Logger")
00040 
00041 # execute Unit Test
00042 
00043 command = ['TestMEDMEM']
00044 ret = os.spawnvp(os.P_WAIT, command[0], command)
00045 
00046 print "MEDMEM General testing done."
00047 print "Run cases, which leads to Segmentation Fault ..."
00048 
00049 command = ['MEDMEMTest_Array_fault']
00050 ret = os.spawnvp(os.P_WAIT, command[0], command)
00051 
00052 command = ['MEDMEMTest_Connectivity_fault']
00053 ret = os.spawnvp(os.P_WAIT, command[0], command)
00054 
00055 command = ['MEDMEMTest_Coordinate_fault']
00056 ret = os.spawnvp(os.P_WAIT, command[0], command)
00057 
00058 command = ['MEDMEMTest_Family_fault']
00059 ret = os.spawnvp(os.P_WAIT, command[0], command)
00060 
00061 command = ['MEDMEMTest_Field_fault']
00062 ret = os.spawnvp(os.P_WAIT, command[0], command)
00063 
00064 command = ['MEDMEMTest_Grid_fault']
00065 ret = os.spawnvp(os.P_WAIT, command[0], command)
00066 
00067 command = ['MEDMEMTest_MeshAndMeshing_fault']
00068 ret = os.spawnvp(os.P_WAIT, command[0], command)
00069 
00070 command = ['MEDMEMTest_Support_fault']
00071 ret = os.spawnvp(os.P_WAIT, command[0], command)
00072 
00073 command = ['MEDMEMTest_VtkFieldDriver_fault']
00074 ret = os.spawnvp(os.P_WAIT, command[0], command)
00075 
00076 command = ['MEDMEMTest_VtkMeshDriver_fault']
00077 ret = os.spawnvp(os.P_WAIT, command[0], command)
00078 
00079 # kill Test process
00080 
00081 ###TestKiller.killProcess(runSalome.process_id)