Open bgeels opened 3 years ago
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!
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
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:notifications@github.com] Gesendet: Dienstag, 9. März 2021 21:01 An: lausser/GLPlugin GLPlugin@noreply.github.com Cc: Subscribed subscribed@noreply.github.com 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 https://github.com/lausser/GLPlugin/issues/27#issuecomment-794381095 , 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:notifications@github.com] Gesendet: Dienstag, 9. März 2021 21:01 An: lausser/GLPlugin GLPlugin@noreply.github.com Cc: Subscribed subscribed@noreply.github.com 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 https://github.com/lausser/GLPlugin/issues/27#issuecomment-794381095 , 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