mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-15 22:00:06 -04:00
plugins-scripts/Makefile.am: Testing shell scripts with 'sh -n'
This commit is contained in:
parent
2369338191
commit
dbd38bf7ec
1 changed files with 1 additions and 0 deletions
|
|
@ -37,6 +37,7 @@ test:
|
|||
perl -I $(top_builddir) -I $(top_srcdir) ../test.pl
|
||||
perl -I $(top_builddir) -I $(top_srcdir) ../test.pl t/utils.t # utils.t is excluded from above, so manually ask to test
|
||||
for SCRIPT in *.pl; do perl -wc $$SCRIPT || exit 1; done
|
||||
set -e; for SCRIPT in *.sh; do sh -n $$SCRIPT || exit 1; done
|
||||
|
||||
test-debug:
|
||||
NPTEST_DEBUG=1 HARNESS_VERBOSE=1 perl -I $(top_builddir) -I $(top_srcdir) ../test.pl
|
||||
|
|
|
|||
Loading…
Reference in a new issue