1 |
francois |
472 |
#!/bin/bash |
2 |
|
|
|
3 |
|
|
function executer |
4 |
|
|
{ |
5 |
|
|
$* |
6 |
|
|
VAR=$? |
7 |
|
|
if (( $VAR )) ; then |
8 |
|
|
STATUSTXT="ERREUR dans les tests"; |
9 |
|
|
STAT=$VAR; |
10 |
|
|
fi |
11 |
|
|
} |
12 |
|
|
CHEMINCOMPILE=../../exe/app |
13 |
|
|
STATUSTXT="Test sans ERREUR" |
14 |
|
|
echo "*********************************" |
15 |
|
|
echo "Exemple de comparaison" |
16 |
|
|
echo "*********************************" |
17 |
|
|
STAT=$? |
18 |
|
|
executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -stepocc -in ejectorA.step -importtriangulation |
19 |
|
|
executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -stepocc -in ejectorB.step -importtriangulation |
20 |
|
|
executer $CHEMINCOMPILE/compare/compare.exe -inA ejectorA.magic -inB ejectorB.magic -out ejector.cmp |
21 |
|
|
echo "**********************" |
22 |
|
|
echo $STATUSTXT |
23 |
|
|
echo "**********************" |
24 |
|
|
exit $STAT |
25 |
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
|
|
|