3 # Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 # See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 # File : testreadCoordinate.sh
28 SALOME_LIB=${SALOME}/Build/lib
29 SALOME_PATH=${SALOME}/Build/MED/src/MEDMEM
30 LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${SALOME_LIB}
34 echo " - Comparaison des Coordonnees : " >> ${RESULT}
35 echo -e " -------------------------------\n">> ${RESULT}
41 ligne=`sed -n -e"$num,$num p" Maillages.txt`
47 if [ `echo $ligne | cut -c1 ` = "#" ]
52 fich=`echo $ligne | cut -f1 -d":"`
53 maill=`echo $ligne | cut -f2 -d":"`
54 nb=`echo $ligne | cut -f3 -d":"`
57 Result=Rmem/Rmem.${fich}.coor.dump
58 Compare=Ref/${fich}.coor.dump
60 Result=Rmem/Rmem.${fich}.${nb}.coor.dump
61 Compare=Ref/${fich}.${nb}.coor.dump
63 ${SALOME_PATH}/readCoordinate Data/${fich} "${maill}" > $Result
65 echo " Maillage " $maill "lu dans " $fich >> ${RESULT}
66 diff $Result $Compare >> /dev/null
70 nb=`diff $Result $Compare| grep -v "Type de repere des coordonnees" | wc -l`
74 echo " Difference entre les resultats des deux methodes de dumps : " >> ${RESULT}
75 echo " Fichiers compares : $Result et $Compare " >> ${RESULT}
76 diff $Result $Compare >> ${RESULT}
77 echo -e "\n">> ${RESULT}
80 echo " Pas de différence sur les coordonnees == test OK == " >> ${RESULT}
83 echo " Pas de différence sur les coordonnees == test OK == " >> ${RESULT}
85 echo -e "\n" >> ${RESULT}