From e7d3ea36978ff10e24a71ef3b3344778ccb3590e Mon Sep 17 00:00:00 2001 From: Jacob Date: Sun, 12 Jan 2025 20:47:06 -0500 Subject: [PATCH] Fixed testing recipe. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b61b33f..76a186e 100644 --- a/Makefile +++ b/Makefile @@ -88,9 +88,9 @@ $(TEST_BUILD_DIR)/test_%.out: $(TEST_OBJ_DIR)/test_%.o $(OBJ_DIR)/%.o $(UNITY_OB $(LINK) -o $@ $? $(LDFLAGS) # Run the test files. -test: $(TEST_BIN_FILES) +test: $(TARGET) $(TEST_BIN_FILES) @ echo -e "$(WHITE_BOLD)Running unit tests...$(RESETCOLOR)" - for test in $<; do ./$${test}; done + for test in $(TEST_BIN_FILES); do ./$${test}; done @ echo -e "$(WHITE_BOLD)Running validation tests...$(RESETCOLOR)" $(BATS) $(TEST_VAL_DIR)