1 |
francois |
485 |
#!/bin/bash |
2 |
|
|
|
3 |
|
|
|
4 |
|
|
function executer |
5 |
|
|
{ |
6 |
|
|
$* |
7 |
|
|
VAR=$? |
8 |
|
|
if (( $VAR )) ; then |
9 |
|
|
STATUSTXT="ERREUR dans les tests"; |
10 |
|
|
STAT=$VAR; |
11 |
|
|
fi |
12 |
|
|
} |
13 |
|
|
|
14 |
francois |
261 |
CHEMINCOMPILE=../../exe/app |
15 |
francois |
485 |
STATUSTXT="Test sans ERREUR" |
16 |
|
|
echo "**********************" |
17 |
|
|
echo " CAS 1" |
18 |
|
|
echo "**********************" |
19 |
|
|
STAT=$? |
20 |
francois |
110 |
|
21 |
|
|
|
22 |
francois |
485 |
CHEMINCOMPILE=../../exe/app |
23 |
|
|
executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -in pltr.step -step |
24 |
|
|
executer $CHEMINCOMPILE/carte/carte.exe -constante -in pltr.magic -out pltr.ctt -dg 0.01 -fechantillonnage 1 -festimation 1 |
25 |
|
|
#executer $CHEMINCOMPILE/mailleur/mailleur_boite.exe -octal -out pltr.magic -carte pltr.ctt -fem |
26 |
|
|
executer $CHEMINCOMPILE/toIbrep/toIbrep.exe -in pltr.magic -carte pltr.ctt |
27 |
|
|
echo "**********************" |
28 |
|
|
echo " CAS 2" |
29 |
|
|
echo "**********************" |
30 |
|
|
executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -in fourchette.step -stepocc |
31 |
|
|
executer $CHEMINCOMPILE/carte/carte.exe -constante -in fourchette.magic -out fourchette.ctt -dg 4 -fechantillonnage 1 -festimation 1 |
32 |
|
|
executer $CHEMINCOMPILE/toIbrep/toIbrep.exe -in fourchette.magic -carte fourchette.ctt |
33 |
|
|
echo "**********************" |
34 |
|
|
echo $STATUSTXT |
35 |
|
|
echo "**********************" |
36 |
|
|
exit $STAT |