newtestsimultanious
This commit is contained in:
parent
37986fa2f4
commit
bc20abea29
@ -1,5 +1,3 @@
|
|||||||
##Tester
|
# Tester
|
||||||
add ./client [PID] [Message] | ./client [PID] [Message]
|
add valgrind to tester
|
||||||
catch fsanitize signals
|
|
||||||
create line that replaces -Wextra with "-g -fsanitize=address"
|
|
||||||
check for -Wall -Werror -Wextra
|
check for -Wall -Werror -Wextra
|
||||||
|
13
test.sh
Normal file → Executable file
13
test.sh
Normal file → Executable file
@ -6,7 +6,7 @@
|
|||||||
# By: houtworm <codam@houtworm.net> // \ \ __| | | \ \/ / #
|
# By: houtworm <codam@houtworm.net> // \ \ __| | | \ \/ / #
|
||||||
# (| | )|_| |_| |> < #
|
# (| | )|_| |_| |> < #
|
||||||
# Created: 2023/02/20 12:46:46 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
|
fi
|
||||||
sleep $SLEEP
|
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
|
# Congratulations
|
||||||
|
|
||||||
if [ $FAULTS -eq 0 ]
|
if [ $FAULTS -eq 0 ]
|
||||||
|
Loading…
Reference in New Issue
Block a user