erste tests stack.c

This commit is contained in:
Max-R
2025-12-05 10:41:30 +01:00
parent e7423f0a20
commit ddd4132e1f
3 changed files with 67 additions and 1 deletions
+7 -1
View File
@@ -36,7 +36,13 @@ $(program_obj_filesobj_files): %.o: %.c
# Unit Tests
# --------------------------
unitTests:
echo "needs to be implemented"
TEST_BIN = runTests
unitTests: stack.o test_stack.o
$(CC) $(FLAGS) -I$(unityfolder) -o $(TEST_BIN) stack.o test_stack.o $(unityfolder)/unity.c
test_stack.o: test_stack.c
$(CC) $(FLAGS) -I$(unityfolder) -c test_stack.c -o test_stack.o
# --------------------------
# Clean