summaryrefslogtreecommitdiffstats
path: root/lib/tests/test_opts2.t
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@aei.ca>2009-01-20 23:55:34 -0500
committerThomas Guyot-Sionnest <dermoth@aei.ca>2009-01-20 23:58:02 -0500
commit3b69f134671e60eb5de0ca895177064294b6eb78 (patch)
treee4a006bf794efb29f539b3002f979f179a655b5e /lib/tests/test_opts2.t
parent26bf63a5bba0fae77033693030c75eace202f988 (diff)
downloadmonitoring-plugins-3b69f134671e60eb5de0ca895177064294b6eb78.tar.gz
Some platform are missing setenv
Instead of adding the gnulib module for solving tests only I split the test in two, setting environment from Perl for the later.
Diffstat (limited to 'lib/tests/test_opts2.t')
-rwxr-xr-xlib/tests/test_opts2.t7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/tests/test_opts2.t b/lib/tests/test_opts2.t
new file mode 100755
index 00000000..f7444f6f
--- /dev/null
+++ b/lib/tests/test_opts2.t
@@ -0,0 +1,7 @@
1#!/usr/bin/perl
2use Test::More;
3if (! -e "./test_opts2") {
4 plan skip_all => "./test_opts2 not compiled - please install tap library and/or enable parse-ini to test";
5}
6$ENV{"NAGIOS_CONFIG_PATH"} = ".";
7exec "./test_opts2";