Code

Some platform are missing setenv
[nagiosplug.git] / lib / tests / test_opts2.t
diff --git a/lib/tests/test_opts2.t b/lib/tests/test_opts2.t
new file mode 100755 (executable)
index 0000000..f7444f6
--- /dev/null
@@ -0,0 +1,7 @@
+#!/usr/bin/perl
+use Test::More;
+if (! -e "./test_opts2") {
+       plan skip_all => "./test_opts2 not compiled - please install tap library and/or enable parse-ini to test";
+}
+$ENV{"NAGIOS_CONFIG_PATH"} = ".";
+exec "./test_opts2";