newtestsimultanious
This commit is contained in:
parent
37986fa2f4
commit
bc20abea29
@ -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
13
test.sh
Normal file → Executable 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 ]
|
||||
|
Loading…
Reference in New Issue
Block a user