diff options
| author | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2009-01-20 23:55:34 -0500 |
|---|---|---|
| committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2009-01-20 23:58:02 -0500 |
| commit | 3b69f134671e60eb5de0ca895177064294b6eb78 (patch) | |
| tree | e4a006bf794efb29f539b3002f979f179a655b5e /lib/tests/test_opts2.t | |
| parent | 26bf63a5bba0fae77033693030c75eace202f988 (diff) | |
| download | monitoring-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-x | lib/tests/test_opts2.t | 7 |
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 | ||
| 2 | use Test::More; | ||
| 3 | if (! -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"} = "."; | ||
| 7 | exec "./test_opts2"; | ||
