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

cleaner display of the tests

parent 5562a6dd
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -31,33 +31,35 @@ advanced_test_files=(
)
# echo -e "\nStarting simple tests ...\n"
# for FILENAME in "${simple_test_files[@]}"
# do
# FILESIZE=$(stat -c%s "$FILENAME")
# echo -e "${BROWN}Sending \"$FILENAME\" \t[$FILESIZE bytes] with Valgrind${NC}"
# ./tests/simple_test.sh $FILENAME
# i=1
# for FILENAME in "${simple_test_files[@]}"; do
# FILESIZE=$(stat -c%s "$FILENAME")
# echo -e "${BROWN}($i/${#simple_test_files[@]}) Sending \"$FILENAME\" \t[$FILESIZE bytes] with Valgrind${NC}"
# ./tests/simple_test.sh $FILENAME
# if [ $? -ne 0 ]; then
# echo "Tests terminated cause of a failed test"
# exit 0
# fi
# if [ $? -ne 0 ]; then
# echo "Tests terminated cause of a failed test"
# exit 0
# fi
# let i++
# done
# echo -e "Finished Simple tests."
echo -e "Finished Simple tests."
if [ -d linksimulator/ ]; then
echo -e "\nStarting advanced tests ...\n"
# Now we ran the advanced tests
for FILENAME in "${advanced_test_files[@]}"
do
i=1
for FILENAME in "${advanced_test_files[@]}"; do
FILESIZE=$(stat -c%s "$FILENAME")
echo -e "\n${BROWN}Sending the file \"$FILENAME\" \t[$FILESIZE bytes] with linksimulator and Valgrind${NC}"
echo -e "\n${BROWN}($i/${#advanced_test_files[@]}) Sending the file \"$FILENAME\" \t[$FILESIZE bytes] with linksimulator and Valgrind${NC}"
./tests/advanced_test.sh $FILENAME
if [ $? -ne 0 ]; then
echo "Tests terminated cause of a failed test"
exit 0
fi
fi
let i++
done
echo "Finished Advanced tests."
else
......
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