summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2010-12-12 14:34:29 +0000
committerLudovic Pouzenc <ludovic@pouzenc.fr>2010-12-12 14:34:29 +0000
commit23214b53eb7e6b63ba1e6cb618ccdaf2536de84e (patch)
treeaa03d21c35d54f99e24e4020ef66061a52f8ea1d
parent8fc5ab731dbee174fa42b119d2dd63cdd6261b48 (diff)
download2010-netlemmings-23214b53eb7e6b63ba1e6cb618ccdaf2536de84e.tar.gz
2010-netlemmings-23214b53eb7e6b63ba1e6cb618ccdaf2536de84e.tar.bz2
2010-netlemmings-23214b53eb7e6b63ba1e6cb618ccdaf2536de84e.zip
Ajout du support valgrind dans le script compil.sh
git-svn-id: file:///var/svn/2010-netlemmings/trunk@203 077b3477-7977-48bd-8428-443f22f7bfda
-rwxr-xr-xscripts/compil.sh23
1 files changed, 20 insertions, 3 deletions
diff --git a/scripts/compil.sh b/scripts/compil.sh
index 1828044..865da98 100755
--- a/scripts/compil.sh
+++ b/scripts/compil.sh
@@ -8,22 +8,39 @@ echo -e "\tII. Cmake then make"
if [ $# -gt 0 ]
then case $1 in
- test) echo -e "\tIII. Test" ctest -V;;
+ test)
+ echo -e "\tIII. Test"
+ ( cd "$BASEPATH/bin" && ctest -V )
+ ;;
launch)
echo -e "\tIV. Serveur execution"
cd "$BASEPATH/bin"
#gnome-terminal -t SERVEUR -e "bash -c './server_on_piou.sh ; sleep 15'"&
gnome-terminal -t SERVEUR --hide-menubar --geometry 48x15+10+0 -e "bash -c 'src/netlem_ds ; echo \"WAITING 15s\" ; sleep 15'"&
echo "WAITING FEW SECONDS"
- sleep 5;
+ sleep 2;
echo -e "\tV. Client 1 execution"
gnome-terminal -t CLIENT1 --hide-menubar --geometry 48x15+10+310 -e "bash -c 'src/netlem localhost; echo \"WAITING 15s\" ; sleep 15'"&
sleep 1;
echo -e "\tVI. Client 2 execution"
gnome-terminal -t CLIENT2 --hide-menubar --geometry 48x15+10+600 -e "bash -c 'src/netlem localhost; echo \"WAITING 15s\" ; sleep 15'"&
;;
+ valgrind)
+ echo -e "\tIV. Serveur execution"
+ cd "$BASEPATH/bin"
+ #gnome-terminal -t SERVEUR -e "bash -c './server_on_piou.sh ; sleep 15'"&
+ gnome-terminal -t SERVEUR --hide-menubar --geometry 48x15+10+0 -e "bash -c 'src/netlem_ds ; echo \"WAITING 15s\" ; sleep 15'"&
+ echo "WAITING FEW SECONDS"
+ sleep 5;
+ echo -e "\tV. Client 1 execution"
+ gnome-terminal -t CLIENT1 --hide-menubar --geometry 48x15+10+310 -e "bash -c 'src/netlem localhost; echo \"WAITING 15s\" ; sleep 15'"&
+ sleep 1;
+ echo -e "\tVI. Client 2 execution (with valgrind)"
+ gnome-terminal -t CLIENT2 --hide-menubar --geometry 48x15+10+600 -e "bash -c 'valgrind src/netlem localhost; echo \"Press ENTER TO CLOSE\" ; read line'"&
+ ;;
esac
else
- echo "Compilation done, please enter an argument to -test- or -launch- the game"
+ echo "Compilation done"
+ echo "You can add one of the following arg : test, launch, valgrind"
fi