unittests from makefile is done

This commit is contained in:
regis37
2025-12-02 02:12:30 +01:00
parent ba032b7ef3
commit 601b011152
7 changed files with 17 additions and 2 deletions
+14 -2
View File
@@ -35,8 +35,20 @@ $(program_obj_filesobj_files): %.o: %.c
# --------------------------
# Unit Tests
# --------------------------
unitTests:
echo "needs to be implemented"
unitTests: test_numbers test_stack
test_numbers: test_numbers.o stack.o bintree.o numbers.o
$(CC) $(FLAGS) $^ -o test_numbers
test_numbers.o: test_numbers.c
$(CC) -c $(FLAGS) $< -o $@
test_stack: test_stack.o stack.o
$(CC) $(FLAGS) $^ -o test_stack
test_stack.o: test_stack.c
$(CC) -c $(FLAGS) $< -o $@
# --------------------------
# Clean