1 |
#!/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 script MAGiC" |
16 |
echo "*****************************************************" |
17 |
executer $CHEMINCOMPILE/script/mgscript.exe script.smg |
18 |
executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -in test.magic -out test2.magic -copie |
19 |
executer $CHEMINCOMPILE/script/mgscript.exe script_ass.smg |
20 |
executer $CHEMINCOMPILE/mgoperation/mgoperation.exe -in test_ass.magic -out test_ass2.magic -copie |
21 |
echo "**********************" |
22 |
echo $STATUSTXT |
23 |
echo "**********************" |
24 |
exit $STAT |
25 |
|
26 |
|
27 |
|
28 |
|