Thomas Guyot-Sionnest
301871bd6f
Make /lib before /lib/tests to satisfy dependencies (building tests fails on IRIX)
2009-01-13 04:31:30 -05:00
Thomas Guyot-Sionnest
f8c6d8b52e
Fix test from last commit
2009-01-09 08:16:52 -05:00
Thomas Guyot-Sionnest
4d5eb82a47
basename check in test_utils.c was accidentaly added again.
...
In 538b97c I reverted a serie of libtap patch by Ton Voon; it included
the removal of the useless basename check.
Relevant portion of the changelog from which it was removed (f31cd40 ):
Removed basename test as we should use base_name from GNUlib which is
tested separately
2009-01-09 02:44:36 -05:00
Thomas Guyot-Sionnest
7449b16b17
Revert "Cleanup; fix the way libraries are linked; Make-It-Simple(tm)"
...
Trying to see if this has any relation to the tinderbox failure. I doubt it
and will revert back as soon as it's tested.
This reverts commit a97e5fbda2 .
2009-01-09 02:27:02 -05:00
Thomas Guyot-Sionnest
254baca111
Try to make IRIX happy (this fixes a similar warning in Solaris)
2009-01-08 08:14:19 -05:00
Thomas Guyot-Sionnest
a97e5fbda2
Cleanup; fix the way libraries are linked; Make-It-Simple(tm)
...
lib/Makefile.am | 2 +-
lib/tests/Makefile.am | 37 ++++---------------------------------
2 files changed, 5 insertions(+), 34 deletions(-)
2009-01-07 04:41:54 -05:00
Thomas Guyot-Sionnest
2bbf2e6967
Add Libtap as a bundled library (does not change any behaviour without --enable-libtap)
...
Detects system library as pre-1.4.13 and does not install the built-in library anymore
Tested on:
- Linux x86_64, with and without local libtap (System libtap installed)
- Linux x86, with and without local libtap (System libtap NOT installed)
- Solaris SPARC, with and without local libtap, with and without system libtap installed
2008-11-29 04:38:54 -05:00
Thomas Guyot-Sionnest
538b97cea6
Revert inclusion of libtap into nagiosplugins
...
(except for the NEWS file)
This reverts the following commits (latest first): f3e0909 , 9f16b54 , be8df51 , f31cd40 , 5270c7d , a25083f , f1bfe40 , c503d85 and 6c476db
2008-11-28 03:22:39 -05:00
Thomas Guyot-Sionnest
6fbd14fea5
Removing CVS/SVN tags and replacing with git-based versioning
...
For contrib/, full tags have been imported from subversion
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2091 f882894a-f735-0410-b71e-b25c423dba1c
2008-11-23 05:38:47 +00:00
Thomas Guyot-Sionnest
caa8bd6423
Bulk EOL cleanup
...
$ git diff --ignore-space-change|diffstat
0 files changed
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2087 f882894a-f735-0410-b71e-b25c423dba1c
2008-11-19 06:45:18 +00:00
Thomas Guyot-Sionnest
5305852212
check_disk: rerpopulate the mount list after doing a stat() on paths specified with -p for better automount support.
...
NB: There's a memory leak here - properly freeing the mount list would invlove
much more work - there's many other places where leaks can happen so it
should be a project on its own.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2085 f882894a-f735-0410-b71e-b25c423dba1c
2008-11-19 05:59:22 +00:00
Ton Voon
a688e9338a
Need to add in the libgnu.la for Solaris and other platforms
...
where missing functions have been replaced by GNUlib
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2071 f882894a-f735-0410-b71e-b25c423dba1c
2008-11-05 17:07:40 +00:00
Thomas Guyot-Sionnest
3011838fe9
Fix calculation of extra-opts parameters.
...
By reading the current list instead of the additional one when counting parameters, extra-opts calculation was allocating insuficient space for the final array if later sections contained more arguments than the sum of all previously parsed sections.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2069 f882894a-f735-0410-b71e-b25c423dba1c
2008-11-05 16:15:59 +00:00
Thomas Guyot-Sionnest
cca36dc245
Fixed the test (not the bug yet) and added similar one to test_ini (that one works)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2066 f882894a-f735-0410-b71e-b25c423dba1c
2008-11-04 21:52:45 +00:00
Thomas Guyot-Sionnest
83ec9f2694
Corrected test_opts plan
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2065 f882894a-f735-0410-b71e-b25c423dba1c
2008-11-04 21:31:10 +00:00
Thomas Guyot-Sionnest
5847c4eb83
Adding extra-opts check that crash on my prod servers (*** glibc detected *** malloc(): memory corruption: 0x0804e248 ***)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2064 f882894a-f735-0410-b71e-b25c423dba1c
2008-11-04 21:29:36 +00:00
Thomas Guyot-Sionnest
51ec51a8dc
Make extra-opts (C plugins) behave more like N::P:
...
N::P allows both '#' and ';' for comments. Extra-opts used to allow only '#', it now allows both (';' is the standard for ini files)
Extra-opts does not allow trailing comments anymore (like N::P)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2063 f882894a-f735-0410-b71e-b25c423dba1c
2008-11-04 17:41:53 +00:00
Ton Voon
f31cd40f7a
Correctly link to included libtap. Simplify invoking test scripts.
...
Removed basename test as we should use base_name from GNUlib which is
tested separately
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2042 f882894a-f735-0410-b71e-b25c423dba1c
2008-08-21 15:18:58 +00:00
Thomas Guyot-Sionnest
77362a18ba
Typos in comments
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2035 f882894a-f735-0410-b71e-b25c423dba1c
2008-08-21 04:17:25 +00:00
Ton Voon
b93562e6e2
check_procs captures stderr and adds to plugin output. This is
...
from a merge of branch nagiosplug/branches/new_threshold_syntax 1979:1982
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2019 f882894a-f735-0410-b71e-b25c423dba1c
2008-07-08 09:31:04 +00:00
Ton Voon
f1bfe40afb
Use tap.h from the libtap directory
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2017 f882894a-f735-0410-b71e-b25c423dba1c
2008-07-02 20:07:00 +00:00
Ton Voon
6c476db6dc
Adding libtap into distribution to help run C based tests
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2013 f882894a-f735-0410-b71e-b25c423dba1c
2008-06-26 22:00:08 +00:00
Thomas Guyot-Sionnest
2a4640f671
make parse_ini die like in N::P if section isn't found
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1976 f882894a-f735-0410-b71e-b25c423dba1c
2008-04-04 10:11:22 +00:00
Thomas Guyot-Sionnest
815fbd802f
Delete obsolete files
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1974 f882894a-f735-0410-b71e-b25c423dba1c
2008-04-02 09:19:26 +00:00
Thomas Guyot-Sionnest
0d13deb0e4
- Add --enable-extra-opts configure option for compiling extra-opts support
...
- Auto-update po/pot files
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1973 f882894a-f735-0410-b71e-b25c423dba1c
2008-04-02 09:11:44 +00:00
Thomas Guyot-Sionnest
63897a4179
fix the obvious...
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1972 f882894a-f735-0410-b71e-b25c423dba1c
2008-04-01 09:38:37 +00:00
Thomas Guyot-Sionnest
d001e08133
np_extra_opts now retain pointers from argv so that plugins can still overwrite sensitive options
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1971 f882894a-f735-0410-b71e-b25c423dba1c
2008-04-01 09:31:27 +00:00
Thomas Guyot-Sionnest
d043862c15
Fix bug with --extra-opts as last argument with no value
...
Fix problem with duplicate function name (function should eventually move to /lib)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1969 f882894a-f735-0410-b71e-b25c423dba1c
2008-03-31 07:04:07 +00:00
Thomas Guyot-Sionnest
20a8bf1a3f
Fix for last commit - I accidentaly broke my local Makefile and tests weren't being re-compiled.
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1968 f882894a-f735-0410-b71e-b25c423dba1c
2008-03-31 05:31:14 +00:00
Thomas Guyot-Sionnest
8aa5ec317a
- Remove the last argument of np_extra_opts
...
- Code cleanups and comments
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1967 f882894a-f735-0410-b71e-b25c423dba1c
2008-03-30 14:02:13 +00:00
Thomas Guyot-Sionnest
af71e9fc0e
write ini-file lookup function + tests
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1962 f882894a-f735-0410-b71e-b25c423dba1c
2008-03-26 09:46:27 +00:00
Thomas Guyot-Sionnest
a34cf37404
Add extra-opts argument parsing with tests
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1961 f882894a-f735-0410-b71e-b25c423dba1c
2008-03-24 07:02:28 +00:00
Thomas Guyot-Sionnest
dce143e354
Replace broken usage of NAGIOS_CONFIG_PATH with a stub function (that will try to find a config file in the future...)
...
Allow NULL locator (default file/section)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1960 f882894a-f735-0410-b71e-b25c423dba1c
2008-03-24 06:28:46 +00:00
Thomas Guyot-Sionnest
4a7ff5e952
Add tests:
...
- DOS-newline ini file
- section defined twice
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1951 f882894a-f735-0410-b71e-b25c423dba1c
2008-03-16 18:10:47 +00:00
Thomas Guyot-Sionnest
92b969e239
parse_ini now reads the default section if the request one can't be found.
...
All tests should return ok now.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1950 f882894a-f735-0410-b71e-b25c423dba1c
2008-03-15 22:42:01 +00:00
Thomas Guyot-Sionnest
252d9a78cc
Oops - this line shouldn't have been here (doesn't even work anyways) ;)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1949 f882894a-f735-0410-b71e-b25c423dba1c
2008-03-15 21:51:43 +00:00
Thomas Guyot-Sionnest
1a0ed0d6bb
- Make equal-less parameters illegal
...
- parameters without argument after '=' are now assumed to be argument-less
- Add a testcase for space in stanza and various argument-less parameters
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1948 f882894a-f735-0410-b71e-b25c423dba1c
2008-03-15 20:47:43 +00:00
Thomas Guyot-Sionnest
40c123148a
Fix handling of leading and trailing spaces in stanza
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1947 f882894a-f735-0410-b71e-b25c423dba1c
2008-03-15 20:34:15 +00:00
Thomas Guyot-Sionnest
ffab7ee68b
Fix segfault in test_ini.c and uncomment the affected tests
...
Fix bug in stanza parsing where full section could be skipped
Fix single-argument options
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1946 f882894a-f735-0410-b71e-b25c423dba1c
2008-03-15 16:17:49 +00:00
Thomas Guyot-Sionnest
6004d95868
This commit consist of two changes:
...
1. Make np_get_defaults return a linked list instead of a string. It will then be easy to convert the linked list back to an argument array.
2. Fix tests 3-4 of test_ini.c.
A test_ini.t was added too. parse_ini and test_ini aren't included yet in the build makefiles.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1945 f882894a-f735-0410-b71e-b25c423dba1c
2008-03-15 04:51:45 +00:00
Ton Voon
dc2ec71d22
Fixed link -m64 problems on pst3 for solaris. Fixed _FILE_OFFSET_BITS
...
redefinition warnings. Fixed helper ar error in ./configure
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1938 f882894a-f735-0410-b71e-b25c423dba1c
2008-03-11 00:10:23 +00:00
Thomas Guyot-Sionnest
fe2e5f4aec
set_thresholds now let the user free the thresolds. (P.S.: When you set twice the thresholds for a path in check disk (like using -C followed by -p ) it overrides them. All new elements are created with np_add_parameter which initialises the thresholds to NULL.)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1930 f882894a-f735-0410-b71e-b25c423dba1c
2008-02-13 11:05:44 +00:00
Thomas Guyot-Sionnest
ec0ebf1108
Reverting patch to test 8-bit data: Still broken on Solaris (7-bit works as before)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1927 f882894a-f735-0410-b71e-b25c423dba1c
2008-02-13 04:07:39 +00:00
Thomas Guyot-Sionnest
abbad00edd
Import Gnulib floorf and base64 and removed our old base64 library.
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1926 f882894a-f735-0410-b71e-b25c423dba1c
2008-02-12 12:03:58 +00:00
Thomas Guyot-Sionnest
39c3f58cdc
details...
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1915 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-30 09:46:21 +00:00
Thomas Guyot-Sionnest
a153e0b8f6
Bump lib/tests to GPLv3
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1914 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-30 09:38:37 +00:00
Thomas Guyot-Sionnest
fafb8ead9d
Bump /lib to GPLv3
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1913 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-30 09:33:43 +00:00
Thomas Guyot-Sionnest
60b672d496
new standardized GPLv3 header (will be applied to all C files)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1912 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-30 09:03:29 +00:00
Thomas Guyot-Sionnest
c51b6eea0e
Add a return-code check (also test cmd_run without out/err buffers)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1905 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-10 07:49:56 +00:00
Thomas Guyot-Sionnest
78def17d7c
Fix base64 test (known string wasn't null-terminated)
...
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1890 f882894a-f735-0410-b71e-b25c423dba1c
2008-01-06 15:44:57 +00:00