Download my tests/ Folder and place it into your root
.
|- Makefile
|- srcs/ft_functions.c
|- includes/libft.h
|- tests/.... <- (My Folder)
git clone https://github.com/pulgamecanica/42Course.git
mv 42Course/42Core/Libft/tests .
rm -rf C_Libft
TESTS = tests/test1.c
TNAME = test
TOBJS = ${TESTS:.c=.o}
test: re ${TOBJS}
${CC} -g ${CFLAGS} ${TOBJS} -L. -lft -o ${TNAME}
I have 4 tests. The 3th one does NOT work, it is NOT a test of mine but I might make it work some day...
TEST | Subject | Works? | rule |
---|---|---|---|
test1 | Mandatory functions | YES | make test |
test2 | Bonus | YES | make bonus test |
test3 | Mandatory functions + Bonus | NOPE | make bonus test |
test4 | Bonus | YES | make bonus test |
For example to run the second test you must change on the Makefile:
- TESTS = tests/test2.c
Example: ./test "Hello World"