bug fixes and test2

This commit is contained in:
elvis
2022-04-23 17:43:38 +02:00
parent 11a5dae9e9
commit 4fe23200bc
37 changed files with 66 additions and 11 deletions

View File

@ -29,7 +29,7 @@ VPATH := $(SRC_DIR) $(wildcard $(LIB_DIR)/*)
all: $(BUILD_DIR)/server $(BUILD_DIR)/client
@echo "done!"
@echo "Compiled!"
# -SERVER-RULES-----------------------------------------------------------------
@ -97,8 +97,14 @@ print-%: ; @echo $* = $($*)
# -TESTS------------------------------------------------------------------------
test1:
@echo "[threadpool]\n\nquantity = 10\npending = 20\n\n[files]\n\nMaxFiles = 20\n\nMaxSize = 10000000\n\n[log]\n\nlogFile = ./logs/l.log\n\n[socket]\n\nname = ./socket\nbacklog = 100\n" > build/confix.txt
test1: all
@echo "[threadpool]\n\nquantity = 1\npending = 10\n\n[files]\n\nMaxFiles = 10000\nMaxSize = 128000\n\n[log]\n\nlogFile = ./logs/l.log\n\n[socket]\n\nname = ./socket\nbacklog = 100\n" > build/confix.txt
valgrind --leak-check=full ./server &
./scripts/test1.sh
bash scripts/test1.sh
pkill -1 memcheck-amd64
test2: all
@echo "[threadpool]\n\nquantity = 4\npending = 100\n\n[files]\n\nMaxFiles = 10\nMaxSize = 1000\n\n[log]\n\nlogFile = ./logs/l.log\n\n[socket]\n\nname = ./socket\nbacklog = 100\n" > build/confix.txt
$(BUILD_DIR)/server &
bash scripts/test2.sh
pkill -1 server