From: rl1987 Date: Sat, 15 Dec 2018 08:47:30 +0000 (+0200) Subject: Run shellcheck for stuff in scripts/ as part of 'make check' X-Git-Tag: tor-0.4.0.1-alpha~17^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=136e6e7cebbba00e7bd33cb1bc1e660e01e966fd;p=thirdparty%2Ftor.git Run shellcheck for stuff in scripts/ as part of 'make check' --- diff --git a/Makefile.am b/Makefile.am index a945130213..272724340b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -215,7 +215,16 @@ doxygen: test: all $(top_builddir)/src/test/test -check-local: check-spaces check-changes check-includes +shellcheck: + # Only use shellcheck if it is present + if command -v shellcheck; then \ + find $(top_srcdir)/scripts/ -name "*.sh" -exec shellcheck {} +; \ + if [ -d "$(top_srcdir)/scripts/test" ]; then \ + shellcheck $(top_srcdir)/scripts/test/cov-diff $(top_builddir)/scripts/test/coverage; \ + fi; \ + fi + +check-local: check-spaces check-changes check-includes shellcheck need-chutney-path: @if test ! -d "$$CHUTNEY_PATH"; then \