newtestsimultanious

This commit is contained in:
djonker 2023-03-06 09:18:56 +01:00
parent 37986fa2f4
commit bc20abea29
2 changed files with 14 additions and 5 deletions

View File

@ -1,5 +1,3 @@
##Tester
add ./client [PID] [Message] | ./client [PID] [Message]
catch fsanitize signals
create line that replaces -Wextra with "-g -fsanitize=address"
# Tester
add valgrind to tester
check for -Wall -Werror -Wextra

13
test.sh Normal file → Executable file
View File

@ -6,7 +6,7 @@
# By: houtworm <codam@houtworm.net> // \ \ __| | | \ \/ / #
# (| | )|_| |_| |> < #
# Created: 2023/02/20 12:46:46 by houtworm /'\_ _/`\__|\__,_/_/\_\ #
# Updated: 2023/03/01 17:08:17 by houtworm \___)=(___/ #
# Updated: 2023/03/06 09:18:15 by houtworm \___)=(___/ #
# #
# **************************************************************************** #
@ -300,6 +300,17 @@ else
fi
sleep $SLEEP
printf "\e[1;36mRunning client 20 times simultaniously\e[0;00m\n"
./client $SERVER "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" | ./client $SERVER "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" | ./client $SERVER "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" | ./client $SERVER "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" | ./client $SERVER "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" | ./client $SERVER "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" | ./client $SERVER "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" | ./client $SERVER "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" | ./client $SERVER "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" | ./client $SERVER "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" | ./client $SERVER "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" | ./client $SERVER "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" | ./client $SERVER "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" | ./client $SERVER "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" | ./client $SERVER "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" | ./client $SERVER "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" | ./client $SERVER "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" | ./client $SERVER "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" | ./client $SERVER "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" | ./client $SERVER "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"
if [ $? -eq 0 ]
then
printf "\e[1;32mSimiltanious test OK\e[0;00m\n"
else
printf "\e[1;31mwrong return value with similtanious test\e[0;00m\n"
FAULTS=$(($FAULTS+1))
fi
sleep $SLEEP
# Congratulations
if [ $FAULTS -eq 0 ]