You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

31 lines
777 B

SRCS_DIRECTORY := srcs/
LOGS_DIRECTORY := logs/
TESTS_FOLDERS := map set vector stack
all :
@-for word in ${TESTS_FOLDERS}; do \
${MAKE} -C ${SRCS_DIRECTORY}$$word ; \
done
test:
@${MAKE} all
@mkdir -p ${LOGS_DIRECTORY}
@-for word in ${TESTS_FOLDERS}; do \
./${SRCS_DIRECTORY}$$word/ft_$$word --full-log > ${LOGS_DIRECTORY}my_$$word; \
./${SRCS_DIRECTORY}$$word/std_$$word --full-log > ${LOGS_DIRECTORY}std_$$word; \
diff ${LOGS_DIRECTORY}my_$$word ${LOGS_DIRECTORY}std_$$word || \
echo "Error while testing $$word" ; \
done
clean:
@rm -rf ${LOGS_DIRECTORY}
@-for word in ${TESTS_FOLDERS}; do \
${MAKE} -C ${SRCS_DIRECTORY}$$word clean ; \
done
fclean: clean
re:
@-for word in ${TESTS_FOLDERS}; do \
${MAKE} -C ${SRCS_DIRECTORY}$$word re ; \
done