bug fixes and test2
This commit is contained in:
14
Makefile
14
Makefile
@ -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
|
||||
|
||||
Reference in New Issue
Block a user