build-sys: add check for --help width
This commit is contained in:
parent
b57b06258e
commit
78eb158a20
10
Makefile.am
10
Makefile.am
|
@ -6556,7 +6556,7 @@ endif
|
||||||
#
|
#
|
||||||
# Require python when making dist
|
# Require python when making dist
|
||||||
#
|
#
|
||||||
.PHONY: dist-check-python
|
.PHONY: dist-check-python dist-check-compat-libs dist-check-help
|
||||||
dist-check-python:
|
dist-check-python:
|
||||||
if !HAVE_PYTHON
|
if !HAVE_PYTHON
|
||||||
@echo "*** python and python-lxml module must be installed and enabled in order to make dist"
|
@echo "*** python and python-lxml module must be installed and enabled in order to make dist"
|
||||||
|
@ -6569,6 +6569,14 @@ if !ENABLE_COMPAT_LIBS
|
||||||
@false
|
@false
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
dist-check-help: $(rootbin_PROGRAMS) $(bin_PROGRAMS)
|
||||||
|
for i in $(abspath $^); do \
|
||||||
|
if $$i --help | grep -v 'default:' | grep -E -q '.{80}.' ; then \
|
||||||
|
echo "$(basename $$i) --help output is too wide:"; \
|
||||||
|
$$i --help | awk 'length > 80' | grep -E --color=yes '.{80}'; \
|
||||||
|
exit 1; \
|
||||||
|
fi; done
|
||||||
|
|
||||||
dist: dist-check-python dist-check-compat-libs
|
dist: dist-check-python dist-check-compat-libs
|
||||||
|
|
||||||
# check "broken" platforms limited toolchains for link breakage before we release
|
# check "broken" platforms limited toolchains for link breakage before we release
|
||||||
|
|
4
TODO
4
TODO
|
@ -31,10 +31,6 @@ External:
|
||||||
|
|
||||||
Features:
|
Features:
|
||||||
|
|
||||||
* add test targets to Makefile that runs all our tools with "--help"
|
|
||||||
and checks if the output is identical to the output when passed
|
|
||||||
through "fold -w 79".
|
|
||||||
|
|
||||||
* nspawn: emulate /dev/kmsg using CUSE and turn off the syslog syscall
|
* nspawn: emulate /dev/kmsg using CUSE and turn off the syslog syscall
|
||||||
with seccomp. That should provide us with a useful log buffer that
|
with seccomp. That should provide us with a useful log buffer that
|
||||||
systemd can log to during early boot, and disconnect container logs
|
systemd can log to during early boot, and disconnect container logs
|
||||||
|
|
Loading…
Reference in New Issue