diff --git a/Readme.md b/Readme.md index ba020bf..b9e0bc9 100644 --- a/Readme.md +++ b/Readme.md @@ -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 diff --git a/test.sh b/test.sh old mode 100644 new mode 100755 index 1c3809b..01acd55 --- a/test.sh +++ b/test.sh @@ -6,7 +6,7 @@ # By: houtworm // \ \ __| | | \ \/ / # # (| | )|_| |_| |> < # # 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 ]