[pkg-nagios-changes] [Git][nagios-team/check-logfiles][enable_test_suite] 2 commits: Enable test suite.

Hilmar Preuße (@hilmar-guest) gitlab at salsa.debian.org
Thu Jan 19 09:39:22 GMT 2023



Hilmar Preuße pushed to branch enable_test_suite at Debian Nagios Maintainer Group / check-logfiles


Commits:
c23e1251 by Hilmar Preusse at 2023-01-19T10:38:04+01:00
Enable test suite.

- - - - -
6f5c6f2f by Hilmar Preusse at 2023-01-19T10:39:04+01:00
Don't try to load Windows perl modules, if we don't run on Windows.

- - - - -


4 changed files:

- + debian/patches/dont_load_windows_modules
- + debian/patches/series
- + debian/tests/control
- + debian/tests/test-suite


Changes:

=====================================
debian/patches/dont_load_windows_modules
=====================================
@@ -0,0 +1,57 @@
+--- check_logfiles.orig/t/040wevtutilfilt.t
++++ check_logfiles/t/040wevtutilfilt.t
+@@ -10,7 +10,6 @@
+ use Cwd;
+ use lib "../plugins-scripts";
+ use Nagios::CheckLogfiles::Test;
+-use Nagios::CheckLogfiles::Search::Eventlog;
+ use constant TESTDIR => ".";
+ use Data::Dumper;
+ 
+@@ -31,6 +30,8 @@
+   plan tests => 4;
+ }
+ 
++use Nagios::CheckLogfiles::Search::Eventlog;
++
+ my $cl = Nagios::CheckLogfiles::Test->new({
+ 	protocolsdir => TESTDIR."/var/tmp",
+ 	seekfilesdir => TESTDIR."/var/tmp",
+--- check_logfiles.orig/t/041wevtutil.t
++++ check_logfiles/t/041wevtutil.t
+@@ -10,7 +10,6 @@
+ use Cwd;
+ use lib "../plugins-scripts";
+ use Nagios::CheckLogfiles::Test;
+-use Nagios::CheckLogfiles::Search::Eventlog;
+ use constant TESTDIR => ".";
+ 
+ if (($^O ne "cygwin") and ($^O !~ /MSWin/)) {
+@@ -20,6 +19,8 @@
+   plan tests => 12;
+ }
+ 
++use Nagios::CheckLogfiles::Search::Eventlog;
++
+ my $cl = Nagios::CheckLogfiles::Test->new({
+ 	protocolsdir => TESTDIR."/var/tmp",
+ 	seekfilesdir => TESTDIR."/var/tmp",
+--- check_logfiles.orig/t/041wevtutilps.t
++++ check_logfiles/t/041wevtutilps.t
+@@ -10,7 +10,6 @@
+ use Cwd;
+ use lib "../plugins-scripts";
+ use Nagios::CheckLogfiles::Test;
+-use Nagios::CheckLogfiles::Search::Eventlog;
+ use constant TESTDIR => ".";
+ 
+ if (($^O ne "cygwin") and ($^O !~ /MSWin/)) {
+@@ -20,6 +19,8 @@
+   plan tests => 7;
+ }
+ 
++use Nagios::CheckLogfiles::Search::Eventlog;
++
+ ######################################################
+ # 
+ # powershell -Command "echo hihi"


=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+dont_load_windows_modules


=====================================
debian/tests/control
=====================================
@@ -0,0 +1,3 @@
+Tests: test-suite
+Depends: @builddeps@
+Restrictions: build-needed


=====================================
debian/tests/test-suite
=====================================
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+set -e
+
+cd t/
+make tests
\ No newline at end of file



View it on GitLab: https://salsa.debian.org/nagios-team/check-logfiles/-/compare/8c08c8efec481b9f1cdb9323dd93814488bb84b7...6f5c6f2f5ecb2d7d3914c0d24c637dfb51b94836

-- 
View it on GitLab: https://salsa.debian.org/nagios-team/check-logfiles/-/compare/8c08c8efec481b9f1cdb9323dd93814488bb84b7...6f5c6f2f5ecb2d7d3914c0d24c637dfb51b94836
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-nagios-changes/attachments/20230119/e6878c1d/attachment-0001.htm>


More information about the pkg-nagios-changes mailing list