X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ff6cb26262ba25fefdf1265628265a75d790ebd6..200986a368bbbbb5df459d43cbc7f5ef3d7678db:/contrib/psg/test.sh diff --git a/contrib/psg/test.sh b/contrib/psg/test.sh new file mode 100755 index 0000000000..f5b7f09dad --- /dev/null +++ b/contrib/psg/test.sh @@ -0,0 +1,45 @@ +#!/bin/bash + +if [ $(uname -m) = "i686" ]; then + eval ulimit -s 64 +else + eval ulimit -s 128 +fi + +echo -e "\n"; +echo '------------- Execute the edaggregation example under PSG -------------'; +echo -e "\n"; +java -Xmx1024m -cp lib.jar:classes peersim.Simulator configs/edaggregationPSG.txt +echo -e "\n"; +echo '------------- Execute the edaggregation example under PS -------------'; +echo -e "\n"; +java -Xmx1024m -cp lib.jar:classes peersim.Simulator configs/edaggregation.txt +echo -e "\n"; +echo '------------- Execute the chord example under PSG -------------'; +echo -e "\n"; +java -Xmx1024m -cp lib.jar:classes peersim.Simulator configs/chordPSG.txt +echo -e "\n"; +echo '------------- Execute the chord example under PS -------------'; +echo -e "\n"; +java -Xmx1024m -cp lib.jar:classes peersim.Simulator configs/chord.txt +echo -e "\n"; +echo '------------- Compare the 2 results PS and PSG -------------'; +echo -e "\n"; + +cd outputs + +ListeRep="$(find * -type d -prune)" # liste des repertoires +for Rep in ${ListeRep}; do + cd $Rep + VAR=$(diff ps.txt psg.txt) + if [ "${VAR}"1 = 1 ] + then + echo The results of diff "for" the $Rep example is '.............:)'; + else + echo The results of diff "for" the $Rep example is '.............:('; + fi + cd .. +done +echo -e "\n"; +exit 0 +