test1
This commit is contained in:
15
Makefile
15
Makefile
@ -85,11 +85,20 @@ $(BUILD_DIR)/client: $(OBJ_CLIENT)
|
|||||||
|
|
||||||
|
|
||||||
# -PHONY------------------------------------------------------------------------
|
# -PHONY------------------------------------------------------------------------
|
||||||
clean :
|
clean:
|
||||||
@rm -rf $(BUILD_DIR)/* logs/*.log
|
@rm -rf $(BUILD_DIR)/* logs/*.log
|
||||||
|
|
||||||
cleanall : clean
|
cleanall: clean
|
||||||
@rm -rf $(OBJ_DIR)/*
|
@rm -rf $(OBJ_DIR)/*
|
||||||
@rm -f $(SOCKET)
|
@rm -f $(SOCKET)
|
||||||
|
|
||||||
print-% : ; @echo $* = $($*)
|
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
|
||||||
|
valgrind --leak-check=full ./server &
|
||||||
|
./scripts/test1.sh
|
||||||
|
pkill -1 memcheck-amd64
|
||||||
|
|||||||
@ -88,8 +88,6 @@ int storeFilesInDirectory(const char *dirname, int n, recivedFile_t *rf);
|
|||||||
void freeResponse(response_t *res);
|
void freeResponse(response_t *res);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
int openConnection(const char* sockname, int msec, const struct timespec abstime) {
|
int openConnection(const char* sockname, int msec, const struct timespec abstime) {
|
||||||
if(!sockname){
|
if(!sockname){
|
||||||
|
|||||||
0
scripts/.gitkeep
Normal file
0
scripts/.gitkeep
Normal file
Reference in New Issue
Block a user