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
|
||||
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
|
||||
clean:
|
||||
|
||||
2
dependencies/bin/shunit.sh
vendored
2
dependencies/bin/shunit.sh
vendored
@@ -54,3 +54,5 @@ do
|
||||
done
|
||||
|
||||
${FORMATTER}_footer
|
||||
|
||||
exit $(expr ${SHUNIT_FAILURES} + ${SHUNIT_ERRORS})
|
||||
|
||||
Reference in New Issue
Block a user