Bug 963319
Summary: | RFE: Test daemons and test cases | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jóhann B. Guðmundsson <johannbg> |
Component: | systemd | Assignee: | Jóhann B. Guðmundsson <johannbg> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | johannbg, lnykryn, mschmidt, msekleta, notting, plautrba, systemd-maint, vpavlin, zbyszek |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-07-26 01:37:02 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 784611 |
Description
Jóhann B. Guðmundsson
2013-05-15 16:01:44 UTC
(In reply to comment #0) > We really ought to be able to mapped out valid unit configurations and > create test units with every valid configuration combo and test every inch > out of systemd so we can rule out anything breaking between releases/changes Every inch ain't gonna be easy, but we certainly could do more than we do now. > So basically if someone can write the test daemon/socket for the types I can > write the test cases and the test unit and try to find a platform for us to > use or come up with a simple web app that would fetch the logs from the > journal and display a nice OK/Failed for those test cases Since we can have socket-activated python (sd_listen_fds & friends are nicely wrapped), we should be able to cover all possible combinations with just a few lines of code. If you specify a list of "types", I can generate them. Having tests for everything would be great of course. We have two test suites in systemd. One contains unit tests, the other runs various system tests under qemu and/or nspawn. The latter is capable of running the kind of tests you describe. I am sure Lennart runs the testsuites at least before making a new release. I agree with adding a ****load of tests. We just need people to implement them. As always, developer time is a scarce resource. Help is welcome. However, I am not sure what the criteria of resolving this BZ are. I.e. when can we say "OK, this is now resolved, let's close this!"? It seems this BZ could be perpetual. It's hard to test "everything". As I said I can cover the test case writing (document/units ) and Zbigniew seemed to be willing to take care of the rest so assigning to me Very well! You'll find the so-called "extended" testsuite in systemd.git in the test/ directory. There is README.testsuite file there explaining the basics. Note that there is currently some ugly code duplication between the TEST-* directories. This should ideally be refactored before adding more of them. I don't think we need to track this in BZ. We are adding tests frequently,and we will continue to do this. But we could never close this bug, and we won't forget about adding tests anyway, hence let's not have it around here. |