mirror of
https://github.com/uutils/coreutils
synced 2024-10-02 22:13:37 +00:00
Add a new makefile rule to check for test errors.
This rule will test each program, ignore all output, and return pass or fail depending on whether the test has errors. This is the equivalent of "make build-check", but for tests.
This commit is contained in:
parent
22093d1e5a
commit
0736855c3d
11
Makefile
11
Makefile
|
@ -386,4 +386,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
|
||||
|
|
Loading…
Reference in a new issue