1 |
francois |
558 |
#!/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 "Test MAILLEUR3D" |
16 |
|
|
echo "***************" |
17 |
|
|
STAT=$? |
18 |
|
|
executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -stepocc -in suspension.step |
19 |
|
|
executer $CHEMINCOMPILE/carte/carte.exe -constante -in suspension.magic -out carte.ctt -dg 8 -fechantillonnage 20 -festimation 1 |
20 |
|
|
executer $CHEMINCOMPILE/mailleur/mailleur.exe -in suspension.magic -carte carte.ctt -out suspension_final.magic -niveau 3 |
21 |
|
|
echo "******************" |
22 |
|
|
echo "Test MAILLEUR PEAU" |
23 |
|
|
echo "******************" |
24 |
|
|
executer $CHEMINCOMPILE/mailleur/mailleur_peau.exe -in bielle_resu_peau.magic -out bielle_resu_peau_3d1.magic -carte bielle.ctt |
25 |
|
|
echo "*********************" |
26 |
|
|
echo "Test MAILLEUR PARTIEL" |
27 |
|
|
echo "*********************" |
28 |
|
|
executer $CHEMINCOMPILE/mailleur/mailleur.exe -refront -in bielle_resu_peau.magic -carte bielle.ctt -out bielle_resu_peau_3d2.magic |
29 |
|
|
echo "**********************" |
30 |
|
|
echo $STATUSTXT |
31 |
|
|
echo "**********************" |
32 |
|
|
exit $STAT |
33 |
|
|
|
34 |
|
|
|