mirror of
https://github.com/systemd/systemd
synced 2024-09-06 08:46:19 +00:00
commit
7a5cb197d8
9
HACKING
9
HACKING
|
@ -11,6 +11,15 @@ CODING_STYLE for details. Also have a look at our Contribution Guidelines:
|
|||
|
||||
https://github.com/systemd/systemd/blob/master/.github/CONTRIBUTING.md
|
||||
|
||||
When adding new functionality, tests should be added. For shared functionality
|
||||
(in src/basic and src/shared) unit tests should be sufficient. The general
|
||||
policy is to keep tests in matching files underneath src/test,
|
||||
e.g. src/test/test-path-util.c contains tests for any functions in
|
||||
src/basic/path-util.c. If adding a new source file, consider adding a matching
|
||||
test executable. For features at a higher level, tests in src/test/ are very
|
||||
strongly recommended. If that is no possible, integration tests in test/ are
|
||||
encouraged.
|
||||
|
||||
Please always test your work before submitting a PR. For many of the components
|
||||
of systemd testing is straight-forward as you can simply compile systemd and
|
||||
run the relevant tool from the build directory.
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
<a href="https://in.waw.pl/systemd-github-state/systemd-systemd-issues.svg"><img align="right" src="https://in.waw.pl/systemd-github-state/systemd-systemd-issues-small.svg" alt="Count of open issues over time"></a>
|
||||
<a href="https://in.waw.pl/systemd-github-state/systemd-systemd-pull-requests.svg"><img align="right" src="https://in.waw.pl/systemd-github-state/systemd-systemd-pull-requests-small.svg" alt="Count of open pull requests over time"></a>
|
||||
[![Build Status](https://semaphoreci.com/api/v1/projects/28a5a3ca-3c56-4078-8b5e-7ed6ef912e14/443470/shields_badge.svg)](https://semaphoreci.com/systemd/systemd)<br/>
|
||||
[![Coverity Scan Status](https://scan.coverity.com/projects/350/badge.svg)](https://scan.coverity.com/projects/350)
|
||||
[![Coverity Scan Status](https://scan.coverity.com/projects/350/badge.svg)](https://scan.coverity.com/projects/350)<br/>
|
||||
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/1369/badge)](https://bestpractices.coreinfrastructure.org/projects/1369)
|
||||
|
||||
## Details
|
||||
|
||||
|
|
Loading…
Reference in a new issue