-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unit Test Failure in t/04-extra-opts.t #27
Comments
After digging a little bit more it looks like the intention of this test was to override some cli options by specifying an .ini file. Creating a file like what's shown below in addition to modifying the test plan of the test to be
I can add that if its omission was an oversight. Otherwise, if I'm overlooking a build step please let me know. Thanks! |
I just did the same and the test result is now ok
lausser@HULSE:~/git/GLPlugin$ PERL_DL_NONLAZY=1 "/usr/bin/perl"
"-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef
*Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')"
t/04-extra-opts.t
t/04-extra-opts.t .. 1/7 # /var/tmp/testtest
# /var/tmp/testtest/device::uptime
# module loaded
t/04-extra-opts.t .. ok
All tests successful.
Files=1, Tests=7, 0 wallclock secs ( 0.02 usr 0.05 sys + 0.07 cusr 0.14
csys = 0.28 CPU)
Result: PASS
lausser@HULSE:~/git/GLPlugin$
Von: Ben Geels [mailto:[email protected]]
Gesendet: Dienstag, 9. März 2021 21:01
An: lausser/GLPlugin <[email protected]>
Cc: Subscribed <[email protected]>
Betreff: Re: [lausser/GLPlugin] Unit Test Failure in t/04-extra-opts.t (#27)
After digging a little bit more it looks like the intention of this test was
to override some cli options by specifying an .ini file. Creating a file
like what's shown below in addition to modifying the test plan of the test
to be plan tests => 7; allows the test to pass.
$ cat t/etc/mysql-dbs.ini
method=mysql
hostname=wwwsrv8.naprax.de
password=pfu1de1fl
statefilesdir=/var/tmp/testtest
name=saxndi
I can add that if its omission was an oversight. Otherwise, if I'm
overlooking a build step please let me know.
Thanks!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#27 (comment)> , or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABQSOFY5NWSXG5DJRQI44LTCZV5PANCNFSM4Y4J6WYA>
.
|
I just pushed, should be fixed now. This test was “work in progress” for
several years I guess :)
Von: Ben Geels [mailto:[email protected]]
Gesendet: Dienstag, 9. März 2021 21:01
An: lausser/GLPlugin <[email protected]>
Cc: Subscribed <[email protected]>
Betreff: Re: [lausser/GLPlugin] Unit Test Failure in t/04-extra-opts.t (#27)
After digging a little bit more it looks like the intention of this test was
to override some cli options by specifying an .ini file. Creating a file
like what's shown below in addition to modifying the test plan of the test
to be plan tests => 7; allows the test to pass.
$ cat t/etc/mysql-dbs.ini
method=mysql
hostname=wwwsrv8.naprax.de
password=pfu1de1fl
statefilesdir=/var/tmp/testtest
name=saxndi
I can add that if its omission was an oversight. Otherwise, if I'm
overlooking a build step please let me know.
Thanks!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#27 (comment)> , or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABQSOFY5NWSXG5DJRQI44LTCZV5PANCNFSM4Y4J6WYA>
.
|
Ha gotcha, thanks for quick response! |
Hi,
I'm attempting to build this module and am hitting an error in the t/04-extra-opts.t test. As far as I can tell, it's failing because it can not open a file, t/etc/mysql-dbs.ini, due to this line:
https://github.com/lausser/GLPlugin/blob/master/t/04-extra-opts.t#L17
Any help you could provide resolving this issue would be appreciated, full output of
make test
included below.Operating System:
Perl Version:
Make Test Output
The text was updated successfully, but these errors were encountered: