[monitoring-plugins] plugins-scripts/Makefile.am: Testing shell ...
Jan Wagner
git at monitoring-plugins.org
Mon Oct 5 11:20:11 CEST 2015
Module: monitoring-plugins
Branch: master
Commit: dbd38bf7ec95c886b252d5ee0a66735f2f4a47c5
Author: Jan Wagner <waja at cyconet.org>
Date: Mon Oct 5 11:07:19 2015 +0200
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=dbd38bf
plugins-scripts/Makefile.am: Testing shell scripts with 'sh -n'
---
plugins-scripts/Makefile.am | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugins-scripts/Makefile.am b/plugins-scripts/Makefile.am
index c829c10..ea65aed 100644
--- a/plugins-scripts/Makefile.am
+++ b/plugins-scripts/Makefile.am
@@ -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
More information about the Commits
mailing list