Open hpreusse opened 2 years ago
A few tests specific to Windows are executed on Linux and fail there, due to missing perl modules. Please exclude them, when running on Linux.
Can't locate Win32/EventLog.pm in @INC (you may need to install the Win32::EventLog module) (@INC contains: ../plugins-scripts /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/x86_64-linux-gnu/perl5/5.36 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site_perl .) at ../plugins-scripts/Nagios/CheckLogfiles/Search/Eventlog.pm line 222.
BEGIN failed--compilation aborted at ../plugins-scripts/Nagios/CheckLogfiles/Search/Eventlog.pm line 222.
Compilation failed in require at 040wevtutilfilt.t line 13.
BEGIN failed--compilation aborted at 040wevtutilfilt.t line 13.
040wevtutilfilt.t ......
Can't locate Win32/EventLog.pm in @INC (you may need to install the Win32::EventLog module) (@INC contains: ../plugins-scripts /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/x86_64-linux-gnu/perl5/5.36 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site_perl .) at ../plugins-scripts/Nagios/CheckLogfiles/Search/Eventlog.pm line 222.
BEGIN failed--compilation aborted at ../plugins-scripts/Nagios/CheckLogfiles/Search/Eventlog.pm line 222.
Compilation failed in require at 041wevtutil.t line 13.
BEGIN failed--compilation aborted at 041wevtutil.t line 13.
041wevtutil.t ..........
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
Can't locate Win32/EventLog.pm in @INC (you may need to install the Win32::EventLog module) (@INC contains: ../plugins-scripts /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/x86_64-linux-gnu/perl5/5.36 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site_perl .) at ../plugins-scripts/Nagios/CheckLogfiles/Search/Eventlog.pm line 222.
BEGIN failed--compilation aborted at ../plugins-scripts/Nagios/CheckLogfiles/Search/Eventlog.pm line 222.
Compilation failed in require at 041wevtutilps.t line 13.
BEGIN failed--compilation aborted at 041wevtutilps.t line 13.
041wevtutilps.t ........
Patch for this is straightforward: delay loading of Windows specific Perl Modules: patch.txt
@hpreusse you may want to submit this as a PR. I confirm your patch works for me too, thanks.
I do also see some failing tests:
I downloaded version 4.1.1 and run the test suite. Most of the tests run OK, but some fail. Here is the test summary, full log is attached.
Test Summary Report
test_suite.zip