Commit graph

30 commits

Author SHA1 Message Date
Sven Nierlein
93901d5ff1 tests: fping checks require being root or setuid root
on the fping binary. Check this before running the test.

Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
2014-06-13 15:23:18 +02:00
Sven Nierlein
c5a6c5136a tests: testCmd has own timeout which overwrites local one
so add configurable/optional timeout to testCmd.

Signed-off-by: Sven Nierlein <Sven.Nierlein@consol.de>
2014-06-12 13:56:48 +02:00
Thomas Guyot-Sionnest
1dd0e4c963 Enable tests in tests/ subdirs 2014-01-31 08:54:44 -05:00
Thomas Guyot-Sionnest
754cd092ae Fix tests with an empty NPTest.cache file
The NPTest.cache cannot be loaded when empty, and this prevents
getting the data and populating the file. This patch skips the file when
empty as if it didn't exist.
2014-01-26 04:49:32 -05:00
Thomas Guyot-Sionnest
ce3eaa25e1 Fix NPTest.pm not asking for unconfigured variables
It appeats STDERR isn't a tty anymore during tests, but since we type
from tty to STDIN it should be bound to our tty (and works for me).
2014-01-20 10:56:28 -05:00
Monitoring Plugins Development Team
63734f52ab Project rename initial commit.
This is an initial take at renaming the project to Monitoring Plugins.
It's not expected to be fully complete, and it is expected to break
things (The perl module for instance). More testing will be required
before this goes mainline.
2014-01-19 14:18:47 -05:00
Sven Nierlein
843bbfb75a tests: only write cache file if it changed
Tests sometimes fila when running multiple parallel tests using the
same cache file because it is written everytime a test parameter
is read. Since there is no locking, this might fail from time to time.
2013-09-18 11:03:00 +02:00
Sven Nierlein
0b656ecd2f tests: don't skip utils test 2013-09-16 08:59:37 +02:00
Sven Nierlein
7b122f13db tests: move ipv6 detection into NPTest module 2013-09-14 19:36:20 +02:00
Sven Nierlein
8f5e92e1ed NPTest: ensure all systems use same amount of whitespace 2013-09-13 13:37:41 +02:00
Sven Nierlein
38ef9b60a0 tests: sort cached settings before save 2013-09-12 23:39:31 +02:00
Sven Nierlein
07f9a0f627 tests: make sure tests don't hang 2013-09-12 23:39:31 +02:00
Matthias Eble
013f0a187f Switch back to "use Test" and plain prints instead of diag() 2009-06-16 23:51:19 +02:00
Matthias Eble
3ea954933c Tinderbox output testing commit 2009-06-16 19:31:25 +02:00
Matthias Eble
2e7c3ac75a Make output of "make test" more verbose
This is intended to make error fixing based on tinderbox output
easier.
2009-06-15 21:45:12 +02: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
e3e581e9a1 - Fixing small error (wrong file name) in NPTest.pm documentation.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1556 f882894a-f735-0410-b71e-b25c423dba1c
2006-12-21 05:25:28 +00:00
Ton Voon
299c6bab02 New test variables default to "none", so no changes required to tinderbox satelites
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1530 f882894a-f735-0410-b71e-b25c423dba1c
2006-10-26 21:32:08 +00:00
Ton Voon
bd9a612f6c Fixed output from -e in check_disk (Andreas Behal)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1490 f882894a-f735-0410-b71e-b25c423dba1c
2006-10-12 13:58:43 +00:00
Ton Voon
a0f3874676 Will die if signal received from a testCmd
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1364 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-29 15:30:34 +00:00
Ton Voon
ada5f2fe02 check_disk now errors if a specified directory does not exist (cf df /foo)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1351 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-23 17:16:38 +00:00
Ton Voon
61cd9f525a Incorrect output when checking non-existent disk (John Rouillard - 1326050)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1349 f882894a-f735-0410-b71e-b25c423dba1c
2006-03-23 12:01:21 +00:00
Ton Voon
27e4010f74 Sort ordering of tests
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1310 f882894a-f735-0410-b71e-b25c423dba1c
2006-01-31 15:40:20 +00:00
Ton Voon
9c89de133b Break out of testing if a new parameter is required
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1301 f882894a-f735-0410-b71e-b25c423dba1c
2005-12-19 09:25:19 +00:00
Ton Voon
71ce143ab1 Display errors with slave queries correctly. Added extra tests for slaves
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1299 f882894a-f735-0410-b71e-b25c423dba1c
2005-12-15 17:06:55 +00:00
Ton Voon
e03d87d8ae New 3 parameter version of getTestParameters. Updated check_disk.t to reflect.
Added notes re: testing in developer guidelines.


git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1298 f882894a-f735-0410-b71e-b25c423dba1c
2005-12-15 15:19:55 +00:00
Ton Voon
6224ec3158 Added new NPTest->testCmd which returns objects back for testing
at the test script level. Updated check_swap and check_imap to this
new format


git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1279 f882894a-f735-0410-b71e-b25c423dba1c
2005-11-09 16:40:12 +00:00
Ton Voon
f278c817e5 Fixing some test failures
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1270 f882894a-f735-0410-b71e-b25c423dba1c
2005-11-03 15:04:16 +00:00
Peter Bray
004ce6f5e2 Change the environment variable NPTESTCACHE to NPTEST_CACHE for consistancy
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1208 f882894a-f735-0410-b71e-b25c423dba1c
2005-07-25 14:17:48 +00:00
Peter Bray
cdc06cc3e2 [1185704] New Testing Infrastructure.
Complete rewrite of the original testing infrastructure and
all test cases (to use the new infrastructure)
See NPTest.pm and issue 1185704 for more details.


git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1207 f882894a-f735-0410-b71e-b25c423dba1c
2005-07-25 01:47:15 +00:00