1 |
francois |
449 |
#!/bin/bash |
2 |
|
|
|
3 |
|
|
function executer |
4 |
|
|
{ |
5 |
|
|
$* |
6 |
|
|
if (( $? )) ; then |
7 |
|
|
STATUSTXT="ERREUR dans les tests"; |
8 |
|
|
STAT=$?; |
9 |
|
|
fi |
10 |
|
|
} |
11 |
francois |
269 |
CHEMINCOMPILE=../../exe/app |
12 |
francois |
449 |
STATUSTXT="Test sans ERREUR" |
13 |
francois |
269 |
echo "*****************************************" |
14 |
|
|
echo " OPTIMISATION DE TOPOLOGIE" |
15 |
|
|
echo "*****************************************" |
16 |
francois |
449 |
STAT=$? |
17 |
|
|
executer $CHEMINCOMPILE/topo_optis/topo_optis.exe -optimise -design bielle.magic -nondesign bielle_bloc.magic -out bielle_resu.magic -param params.txt |
18 |
|
|
echo "**********************" |
19 |
|
|
echo $STATUSTXT |
20 |
|
|
echo "**********************" |
21 |
|
|
exit $STAT |
22 |
francois |
269 |
|
23 |
|
|
|