From: Daan De Meyer Date: Tue, 4 Feb 2025 19:24:17 +0000 (+0100) Subject: test: Move NO_BUILD instructions to a separate section X-Git-Tag: v258-rc1~1425^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=728a88e54998d143287ffe89faaeb9512cdf24e1;p=thirdparty%2Fsystemd.git test: Move NO_BUILD instructions to a separate section This isn't relevant for regular development, so let's move it to a separate section. --- diff --git a/test/README.md b/test/README.md index 45cc8789241..5a9d29e2fc6 100644 --- a/test/README.md +++ b/test/README.md @@ -8,20 +8,6 @@ latest version of mkosi. See for more specific details. Make sure `mkosi` is available in `$PATH` when reconfiguring meson to make sure it is picked up properly. -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. - Next, we can build the integration test image with meson: ```shell @@ -80,6 +66,22 @@ 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