blenderbim make test - run all tests but return error code at the end

This commit is contained in:
Andrej730
2024-08-02 18:11:19 +05:00
parent 2c949bb39a
commit 3576362fd8
+9 -3
View File
@@ -351,9 +351,15 @@ endif
.PHONY: test
test:
-make test-core
-make test-tool
-make test-bim
@echo "Running all tests..."
@ERROR=0; \
make test-core || ERROR=1; \
make test-tool || ERROR=1; \
make test-bim || ERROR=1; \
if [ $$ERROR -ne 0 ]; then \
echo "One or more tests failed"; \
exit 1; \
fi
.PHONY: test-core
test-core: