mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 03:57:44 +00:00
Merge pull request #577 from jbcrail/add-test-check
Add a new makefile rule to check for test errors.
This commit is contained in:
commit
d290c9bdfd
2 changed files with 16 additions and 0 deletions
11
Makefile
11
Makefile
|
@ -387,4 +387,15 @@ build-check:
|
|||
fi; \
|
||||
done
|
||||
|
||||
# This rule will test each program, ignore all output, and return pass
|
||||
# or fail depending on whether the test has errors.
|
||||
test-check:
|
||||
@for prog in $(sort $(TEST_PROGS)); do \
|
||||
make TEST="$$prog" test >/dev/null 2>&1; status=$$?; \
|
||||
if [ $$status -eq 0 ]; \
|
||||
then printf "%-10s\t\033[1;32mpass\033[00;m\n" $$prog; \
|
||||
else printf "%-10s\t\033[1;31mfail\033[00;m\n" $$prog; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
.PHONY: $(TEMPDIR) all deps test distclean clean busytest install uninstall
|
||||
|
|
|
@ -46,6 +46,11 @@ To check all available utilities for build errors:
|
|||
make build-check
|
||||
```
|
||||
|
||||
To check all available tests for errors:
|
||||
```
|
||||
make test-check
|
||||
```
|
||||
|
||||
Installation Instructions
|
||||
-------------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue