mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
mkosi: Do not run unit tests during build by default (#36450)
This commit is contained in:
1
.github/workflows/mkosi.yml
vendored
1
.github/workflows/mkosi.yml
vendored
@@ -161,6 +161,7 @@ jobs:
|
||||
UseSubvolumes=yes
|
||||
ToolsTreeDistribution=${{ matrix.distro }}
|
||||
ToolsTreeRelease=${{ matrix.release }}
|
||||
WithTests=yes
|
||||
|
||||
WorkspaceDirectory=$TMPDIR
|
||||
PackageCacheDirectory=$TMPDIR/cache
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -34,6 +34,7 @@ ToolsTree=default
|
||||
BuildDirectory=build/mkosi.builddir
|
||||
CacheDirectory=build/mkosi.cache
|
||||
Incremental=yes
|
||||
WithTests=no
|
||||
|
||||
[Validation]
|
||||
SignExpectedPcr=yes
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user