summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Wagner <waja@cyconet.org>2015-10-05 09:07:19 (GMT)
committerJan Wagner <waja@cyconet.org>2015-10-05 09:07:19 (GMT)
commitdbd38bf7ec95c886b252d5ee0a66735f2f4a47c5 (patch)
tree15dc755ceb2fa54eb9e34fd01f7fdbfb293bfb40
parent2369338191cbf1772d868617aec89893f9e9538d (diff)
downloadmonitoring-plugins-dbd38bf7ec95c886b252d5ee0a66735f2f4a47c5.tar.gz
plugins-scripts/Makefile.am: Testing shell scripts with 'sh -n'
-rw-r--r--plugins-scripts/Makefile.am1
1 files changed, 1 insertions, 0 deletions
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:
37 perl -I $(top_builddir) -I $(top_srcdir) ../test.pl 37 perl -I $(top_builddir) -I $(top_srcdir) ../test.pl
38 perl -I $(top_builddir) -I $(top_srcdir) ../test.pl t/utils.t # utils.t is excluded from above, so manually ask to test 38 perl -I $(top_builddir) -I $(top_srcdir) ../test.pl t/utils.t # utils.t is excluded from above, so manually ask to test
39 for SCRIPT in *.pl; do perl -wc $$SCRIPT || exit 1; done 39 for SCRIPT in *.pl; do perl -wc $$SCRIPT || exit 1; done
40 set -e; for SCRIPT in *.sh; do sh -n $$SCRIPT || exit 1; done
40 41
41test-debug: 42test-debug:
42 NPTEST_DEBUG=1 HARNESS_VERBOSE=1 perl -I $(top_builddir) -I $(top_srcdir) ../test.pl 43 NPTEST_DEBUG=1 HARNESS_VERBOSE=1 perl -I $(top_builddir) -I $(top_srcdir) ../test.pl