mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
test: Move external packages section down and reword a little
This is advanced level stuff that regular contributors don't care about in the slightest, so move it further down. Also reword the section a little while we're at it. (cherry picked from commit f017a5521305987fdeadf85b975b8ed44a9950b6)
This commit is contained in:
parent
c5524d9406
commit
f9da7a51e4
@ -66,22 +66,6 @@ mkosi in the systemd reposistory, so any local modifications to the mkosi
|
||||
configuration (e.g. in `mkosi.local.conf`) are automatically picked up and used
|
||||
by the integration tests as well.
|
||||
|
||||
## Running the integration tests without building systemd from source
|
||||
|
||||
To make sure `mkosi` doesn't try to build systemd from source during the image build
|
||||
process, you can add the following to `mkosi.local.conf`:
|
||||
|
||||
```
|
||||
[Build]
|
||||
Environment=NO_BUILD=1
|
||||
```
|
||||
|
||||
You might also want to use the `PackageDirectories=` or `Repositories=` option to provide
|
||||
mkosi with a directory or repository containing the systemd packages that should be installed
|
||||
instead. If the repository containing the systemd packages is not a builtin repository known
|
||||
by mkosi, you can use the `SandboxTrees=` option to write an extra repository definition
|
||||
to /etc which is used when building the image instead.
|
||||
|
||||
## Iterating on an integration test
|
||||
|
||||
To iterate on an integration test, let's first get a shell in the integration test environment by running
|
||||
@ -151,6 +135,22 @@ that make use of `run_testcases`.
|
||||
progress and only move the journal to its final location in the build directory
|
||||
(`$BUILD_DIR/test/journal`) when the test is finished.
|
||||
|
||||
## Running the integration tests without building systemd from source
|
||||
|
||||
If you want to run the integration tests against prebuilt systemd packages,
|
||||
first add the following to `mkosi.local.conf` to stop mkosi from building
|
||||
systemd packages from source:
|
||||
|
||||
```conf
|
||||
[Build]
|
||||
Environment=NO_BUILD=1
|
||||
```
|
||||
|
||||
You'll then probably want to use the `PackageDirectories=` or `SandboxTrees=`
|
||||
options to provide mkosi with a directory containing the systemd packages or a
|
||||
repository file that points to a repository with the systemd packages that
|
||||
should be installed.
|
||||
|
||||
### SELinux AVCs
|
||||
|
||||
To have `TEST-06-SELINUX` check for SELinux denials, write the following to
|
||||
|
Loading…
x
Reference in New Issue
Block a user