Bug 747871
Summary: | The test suite fails in several ways | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Community] Publican | Reporter: | Raphaël Hertzog <raphael> | ||||||||||
Component: | publican | Assignee: | Jeff Fearn 🐞 <jfearn> | ||||||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | tools-bugs <tools-bugs> | ||||||||||
Severity: | unspecified | Docs Contact: | |||||||||||
Priority: | unspecified | ||||||||||||
Version: | 2.8 | CC: | mhideo, rlandman+disabled, thildred | ||||||||||
Target Milestone: | 3.0 | ||||||||||||
Target Release: | --- | ||||||||||||
Hardware: | Unspecified | ||||||||||||
OS: | Unspecified | ||||||||||||
Whiteboard: | |||||||||||||
Fixed In Version: | 3.0.0 | Doc Type: | Bug Fix | ||||||||||
Doc Text: | Story Points: | --- | |||||||||||
Clone Of: | Environment: | ||||||||||||
Last Closed: | 2012-10-31 03:11:28 UTC | Type: | --- | ||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||
Documentation: | --- | CRM: | |||||||||||
Verified Versions: | Category: | --- | |||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||
Embargoed: | |||||||||||||
Attachments: |
|
Description
Raphaël Hertzog
2011-10-21 08:39:31 UTC
Created attachment 529465 [details]
Patch to fix the test suite
OK I have found the various problems. First of you need to use --quiet because it looks like publican is outputting stuff that is confusing the test system (it uses stdout to communicate test resultst). That's the reason why it doesn't see some of the test results.
Then you made a mistake assigning an array reference [] to an array @common_opts so instead of the expected result, the command line ends up embedding some random text representation of the pointer instead of the wanted options.
Attached is a patch.
Applied patches, fixed Config::Simple complaint about setting fields to undef (t/300 errors). Committed revision 1953. build publican 3 from source. look at compiler output. verify that there are no failed perl test on output. Created attachment 592271 [details]
compiler output for ./Build local
In this attachment, you can see that the test suite does not run by default.
Created attachment 592272 [details]
Compiler output for ./Build authortest
In this attachment, you can see that when the authortest is invoked manually, it fails.
Failing both because 1)according to the verification instructions the test suite should be run as part of the compilation and it isn't and 2)when the test suite is run manually it fails. Fixed authortest failing. Note that author tests are not for general testing and are specifically for non-functional tests and should not be run by default. The default tests are run using `./Build test`. Switched flag in spec file to run functional tests when building RPM. FYI for extra fun try running `./Build testcover` ... wait ... wait ... still waiting ... yeah it takes a while ... `firefox cover_db/coverage.html` and witness how many more tests really need to be written :( To ssh://git.fedorahosted.org/git/publican.git 8c64c85..d60b0f1 master -> master "All tests successful. Files=7, Tests=41, 122 wallclock secs ( 0.15 usr 0.04 sys + 102.62 cusr 3.82 csys = 106.63 CPU) Result: PASS" Created attachment 595876 [details]
Compiler output for ./Build local(mark 2)
Just in case someone wants to see exactly what I got.
|