Skip to content
Extraits de code Groupes Projets
Valider 85449c82 rédigé par Samuel de Meester de Ravestein's avatar Samuel de Meester de Ravestein
Parcourir les fichiers

added comment for the script run_sender_receiver.sh

parent 3ab6ae6b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -4,6 +4,26 @@ GREEN='\033[0;32m'
RED='\033[0;31m'
NC='\033[0m'
##################################################
# General script (function) for running any test #
##################################################
# - Arguments:
# $1: Sender executable file (relative path from the directory where the Makefile is located)
# $2: Receiver executable file (relative path from the directory where the Makefile is located)
# $3: file used for the test (relative path from the directory where the Makefile is located) + needs "/" at the end
# $4: subdirectory in the 'tests_logs/' where the log files are stored
# $5: must either be 'with_FEC' or 'without_FEC'
#
# All of the following arguments are optionals (of they are not present, it run without the link simulator)
# $6: ERROR_RATE
# $7: CUT_RATE
# $8: DELAY
# $9: JITTER
# $10: LOSS_RATE
#
# $11: (optional) a subsubdirectory of 'test_logs/' where the log files are stored
sender=$1
sender_name="${sender##*/}"
receiver=$2
......@@ -47,7 +67,8 @@ if [ -d "${DIR}" ]; then
fi
mkdir "${DIR}" 2>/dev/null
echo -e "\nSimulation ${mode}"
echo -e "\n[INFO] The resulting files are located in \"${DIR}\""
echo -e "[MODE] ${mode}"
# Checking if we're using the linksimulator or not
if [ "$#" -gt 6 ]; then
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter