mkosi: Do not run unit tests during build by default (#36450)

This commit is contained in:
Daan De Meyer
2025-02-20 13:25:03 +01:00
committed by GitHub
4 changed files with 5 additions and 1 deletions

View File

@@ -161,6 +161,7 @@ jobs:
UseSubvolumes=yes
ToolsTreeDistribution=${{ matrix.distro }}
ToolsTreeRelease=${{ matrix.release }}
WithTests=yes
WorkspaceDirectory=$TMPDIR
PackageCacheDirectory=$TMPDIR/cache

View File

@@ -36,12 +36,13 @@ or via your distribution's package manager. Note that systemd regularly adopts
newer mkosi features that are not in an official release yet so there's a good
chance that your distribution's packaged version of mkosi will be too old.
Then, you can build and run systemd executables as follows:
Then, you can build, run and test systemd executables as follows:
```sh
$ mkosi -f sandbox -- meson setup build
$ mkosi -f sandbox -- meson compile -C build
$ mkosi -f sandbox -- build/systemctl --version
$ mkosi -f sandbox -- meson test -C build # Run the unit tests
```
To build and boot an OS image with the latest systemd installed:

View File

@@ -34,6 +34,7 @@ ToolsTree=default
BuildDirectory=build/mkosi.builddir
CacheDirectory=build/mkosi.cache
Incremental=yes
WithTests=no
[Validation]
SignExpectedPcr=yes

View File

@@ -95,6 +95,7 @@ SandboxTrees=
/etc/yum.repos.d/:/etc/yum.repos.d/
/var/share/test-artifacts/:/var/share/test-artifacts/
Environment=NO_BUILD=1
WithTests=yes
EOF
cat /etc/dnf/dnf.conf