Make builds fail when the tests fail
This commit is contained in:
2
Makefile
2
Makefile
@@ -32,7 +32,7 @@ run: boot.img
|
|||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test:
|
test:
|
||||||
cd tests && make clean && ../dependencies/bin/shunit.sh -f $(TEST_FORMAT) -t test.sh
|
cd tests && make clean && ../dependencies/bin/shunit.sh -f $(TEST_FORMAT) -t test.sh ; exit $$?
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
|
|||||||
2
dependencies/bin/shunit.sh
vendored
2
dependencies/bin/shunit.sh
vendored
@@ -54,3 +54,5 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
${FORMATTER}_footer
|
${FORMATTER}_footer
|
||||||
|
|
||||||
|
exit $(expr ${SHUNIT_FAILURES} + ${SHUNIT_ERRORS})
|
||||||
|
|||||||
Reference in New Issue
Block a user