Skip to content

Commit

Permalink
Makefile: Error out on test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
LekKit committed Aug 30, 2024
1 parent 55e0f9d commit fea354c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@ test: $(BINARY)
echo "$(WHITE)[$(GREEN)PASS$(WHITE)] $$file$(RESET)"; \
else \
echo "$(WHITE)[$(RED)FAIL: $$result$(WHITE)] $$file$(RESET)"; \
exit -1; \
fi; \
done
ifeq ($(USE_RV64),1)
Expand All @@ -594,6 +595,7 @@ ifeq ($(USE_RV64),1)
echo "$(WHITE)[$(GREEN)PASS$(WHITE)] $$file$(RESET)"; \
else \
echo "$(WHITE)[$(RED)FAIL: $$result$(WHITE)] $$file$(RESET)"; \
exit -1; \
fi; \
done
endif
Expand Down

0 comments on commit fea354c

Please sign in to comment.