]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: Move NO_BUILD instructions to a separate section
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 4 Feb 2025 19:24:17 +0000 (20:24 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 4 Feb 2025 19:24:17 +0000 (20:24 +0100)
This isn't relevant for regular development, so let's move it to a
separate section.

test/README.md

index 45cc8789241f8afcb354712849f4462a4e524b20..5a9d29e2fc6c0e0b35b91810f8bdef557f70466b 100644 (file)
@@ -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