feat/stdout (#3)

* feat: disable standard output for tests

* fuck les fds

* patch some complation issues

* style: norm

* feat: timeout

* fix: patc more stuff

* fix: patch merge

* feat: more tests
This commit is contained in:
Erwann Lagouche
2026-01-25 16:43:39 +01:00
committed by GitHub
parent 442619f4cb
commit cf491b279d
30 changed files with 332 additions and 132 deletions

View File

@@ -1,13 +1,13 @@
NAME = libunit.a
AR = ar rcs
CC = cc
CCFLAGS = -Wall -Wextra -Werror -MMD -MP
CCFLAGS = -Wall -Wextra -Werror -MMD -MP -g3
CCFLAGS += -I$(LIBFT_DIR) -I. -Iframework
LDFLAGS = -Llibft -lunit -lft -L.
LIBFT_DIR = libft
LIBFT_A = $(LIBFT_DIR)/libft.a
SRC = framework/libunit_util.c framework/libunit_util2.c framework/libunit.c
SRC = framework/libunit_util.c framework/libunit_util2.c framework/libunit.c framework/libunit_logger.c
OBJ = $(SRC:.c=.o)
TESTD = tests
@@ -38,8 +38,8 @@ fclean: clean
@$(MAKE) -C $(TESTD) fclean
@$(MAKE) -C $(RTESTD) fclean
re: fclean
@$(MAKE) all
re: fclean all
@$(MAKE)
$(TESTB): FORCE
@$(MAKE) -C $(TESTD)