Luca Boccassi
4dc1be99d6
Merge pull request #32673 from DaanDeMeyer/mkosi
...
Various mkosi fixes
2024-05-07 09:25:59 +02:00
Takashi Sakamoto
9223a4993a
hwdb: ieee1394-unit-function: add Tascam IF-FW/DM mkII
...
Jörg M. Sigle contriutes configuration ROM image for Tascam IF-FW/DM mkII,
which includes a quirk that the values of model fields in both root and
unit directory entries are different. In device attributes, it appears
that the value of model attribute in unit device is different from the one
in node device.
This commit adds hwdb entry for the model.
2024-05-07 14:13:03 +09:00
Luca Boccassi
72558b03d4
doc: mention that units can be masked via credentials
2024-05-07 08:17:25 +08:00
Daan De Meyer
7681a8ee58
ci: Disable RuntimeBuildSources=
...
We build with debuginfo, so there's no point to starting virtiofsd
to mount the sources and build directory into the VM, so let's
disable that.
2024-05-06 22:23:37 +02:00
Daan De Meyer
8f59b036de
mkosi: Install dhcp-server on OpenSUSE
...
Required for systemd-networkd-tests.py.
2024-05-06 20:21:32 +02:00
Daan De Meyer
f3548f28b3
meson: Fix formatting
2024-05-06 18:16:24 +02:00
Daan De Meyer
2c5dc1df1d
mkosi: Install python3-psutil
...
Required to run systemd-networkd-tests.py. Already a dependency of
systemd-tests on Fedora so we don't add it there as it'll be pulled
in via the prepare script.
2024-05-06 18:15:54 +02:00
Daan De Meyer
15526060cc
mkosi: Install radvd
...
Required for networkd integration tests.
2024-05-06 18:15:54 +02:00
Daan De Meyer
3d320785c4
Merge pull request #32664 from DaanDeMeyer/no-build
...
mkosi: Skip build if NO_BUILD is set
2024-05-06 16:01:24 +02:00
Daan De Meyer
fdf3820e54
mkosi: Configure coredump to store coredumps in the journal.
...
Makes it easier to debug coredumps that happen in CI as we can retrieve
them via the journal.
2024-05-06 14:44:43 +02:00
Daan De Meyer
71b7156bd3
mkosi: Add missing SPDX line
2024-05-06 14:44:27 +02:00
Daan De Meyer
21e9282bc2
mkosi: Only look for services in /usr and /etc
2024-05-06 14:40:29 +02:00
Daan De Meyer
bda54ae03f
mkosi: Skip build if NO_BUILD is set
...
This allows running the integration tests against the distro's packaged
version of systemd.
2024-05-06 14:40:26 +02:00
Daan De Meyer
453ce77c07
Merge pull request #32606 from DaanDeMeyer/mkosi
...
mkosi: Enable more integration tests
2024-05-06 13:11:43 +02:00
Nicolas Bouchinet
a23a59b324
systemd-boot: Allow key enroll in AuditMode
...
Since AuditMode automatically switches SetupMode on, it should be
authorized to enroll SecureBoot keys.
Signed-off-by: Nicolas Bouchinet <nicolas.bouchinet@ssi.gouv.fr >
2024-05-06 13:09:03 +02:00
Daan De Meyer
77962e1242
mkosi: Enable more integration tests
2024-05-06 11:57:09 +02:00
Daan De Meyer
eabf46ef89
ci: Reduce the number of integration tests we run concurrently
...
Since there's a bunch of CPU hungry systemd-journal-remote processes
running on the host to received the forwarded logs, by running as many
test as the VM has cores we overload the available resources. Let's leave
use the number of cores - 1 to reduce resource contention.
2024-05-06 11:57:09 +02:00
Daan De Meyer
1f2c9bda49
test: Default to linux qemu firmware
...
Direct kernel boot results in much faster boot times so let's use
it by default.
We disable it for tests that need to reboot because +-50% of the
time, doing a reboot when using direct kernel boot causes qemu to
hang on reboot. Until we figure that out, let's use UEFI for the
tests that need to reboot.
2024-05-06 11:57:09 +02:00
Daan De Meyer
a90bba42f4
TEST-46-HOMED: Skip barely fits test on ext4
...
For some reason this fails on ext4 with "No space left on device".
Until we figure out why, let's skip the test on ext4 (which is reported
as ext2/ext3 by stat).
2024-05-06 11:57:09 +02:00
Daan De Meyer
7a273d6570
TEST-46-HOMED: Only run resize tests on btrfs
...
Other filesystems do not support online shrinking.
2024-05-06 11:57:09 +02:00
Daan De Meyer
6ff6b2e29b
TEST-53-ISSUE-16347: Add rtc configuration for qemu
2024-05-06 11:57:09 +02:00
Daan De Meyer
9e71acab00
TEST-55-OOMD: Configure init.scope credential in mkosi image
2024-05-06 11:57:09 +02:00
Daan De Meyer
8f5095ff74
TEST-55-OOMD: Skip on opensuse
...
opensuse does not have the stress tool packaged.
2024-05-06 11:57:09 +02:00
Richard Maw
9be49de41f
TEST-55-OOMD: swapoff before adding new swapfile
...
When running test images built with read-only /usr
a swap partition is likely so needs to be turned off first.
2024-05-06 11:57:09 +02:00
Daan De Meyer
f1d3962e61
TEST-04-JOURNAL: Skip bsod test if systemd-bsod is not installed
...
systemd is built without qrencode support on CentOS which means
systemd-bsod will not be installed. Let's skip the test if that's
the case.
2024-05-06 11:57:09 +02:00
Daan De Meyer
f74fb048f9
TEST-04-JOURNAL: Run with persistent journal
...
This test depends on having the journal in /var/log/journal.
2024-05-06 11:57:09 +02:00
Daan De Meyer
0214a8fd75
TEST-04-JOURNAL: Make more robust
...
Avoid hitting https://github.com/systemd/systemd/issues/2913 by adding
some more sleeps. This is required to make the test pass when executed
with mkosi on my machine.
2024-05-06 11:57:09 +02:00
Daan De Meyer
e86afb0314
TEST-07-PID1: Schedule exit on successful execution
...
The test unit has RemainAfterExit=yes so let's schedule our own
shutdown from the test itself once we finish running.
2024-05-06 11:57:09 +02:00
Richard Maw
c5073aa204
TEST-07-PID1: Test access to allocated loop instead of loop0
...
loop0 and 1 can be used by systemd-repart and vanish
but we can guarantee that $LODEV was allocated and is available.
2024-05-06 11:57:09 +02:00
Daan De Meyer
733d0594f0
TEST-07-PID1: Lower TriggerLimitIntervalSec= unconditionally
...
It shouldn't hurt to do this when KVM is enabled or we're not collecting
coverage so let's just always lower the trigger limit interval.
2024-05-06 11:57:09 +02:00
Richard Maw
7590e1d037
TEST-07-PID1: Move mount units to test dir
...
To load the units it is sufficient to add them to the units directory
and it's a step towards not needing any customisations for this test.
2024-05-06 11:57:09 +02:00
Daan De Meyer
b95bb3b3bb
TEST-70-TPM2: Call udevadm wait after attaching disk image
...
Otherwise /dev/loop0p1 might not exist when calling
systemd-cryptsetup attach.
2024-05-06 11:57:09 +02:00
Daan De Meyer
6b146cef3f
TEST-70-TPM2: Add dependency on tpm2.target
...
Let's make sure the TPM is available before running the test as the
test makes use of it.
2024-05-06 11:57:09 +02:00
Daan De Meyer
e631cc91e0
TEST-74-AUX-UTILS: Use persistent journal
...
This test depends on having the journal in /var/log/journal.
2024-05-06 11:57:09 +02:00
Daan De Meyer
3d5c6ece1c
TEST-74-AUX-UTILS: Drop usage of loop module
...
This module is builtin on ubuntu causing the test to fail. Let's
use just dummy instead. I tried replacing it with scsi_debug but
that caused issues with modprobe complaining it could not remove
scsi_debug because it was in use.
2024-05-06 11:57:09 +02:00
Daan De Meyer
da87c35f35
TEST-74-AUX-UTILS: Skip run0 test if pam snippet is not installed
2024-05-06 11:57:09 +02:00
Daan De Meyer
a2190c22b8
TEST-74-AUX-UTILS: Make sure at least two locales exist
2024-05-06 11:57:09 +02:00
Richard Maw
8c9d241c55
TEST-74-AUX-UTILS: Support running on UEFI systems
2024-05-06 11:57:00 +02:00
dependabot[bot]
e4cea965d3
build(deps): bump pkg/debian from f550017 to 50b20e2
...
Bumps pkg/debian from `f550017` to `50b20e2`.
---
updated-dependencies:
- dependency-name: pkg/debian
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-06 11:54:34 +02:00
Richard Maw
fe8d7d25d5
TEST-74-AUX-UTILS: Support systems with pre-existing modules config
2024-05-06 10:58:47 +02:00
Richard Maw
b7b6bdc9e0
TEST-74-AUX-UTILS: Support credential-provided root SSH public key
...
When root authorized keys are provided by mkosi they are not
newline-terminated so appending a public key to the file results
in a corrupt key, so just to be safe we add an empty line.
2024-05-06 10:58:24 +02:00
Daan De Meyer
904fc035cb
TEST-75-RESOLVED: Ignore resource record ifindex field
...
Depending on host configuration this may or may not be included (e.g.
on mkosi we get a result without an ifindex field). Let's strip it from
the resolved reply to avoid failing the test.
2024-05-06 10:56:55 +02:00
Daan De Meyer
9cd3e292c6
TEST-75-RESOLVED: Add missing sleep after knotc reload
...
We already have this workaround for knotc reload a little further
in the test, let's apply it to our first invocation of knotc reload
as well.
2024-05-06 10:56:55 +02:00
Daan De Meyer
a37e58a156
TEST-75-RESOLVED: Restart systemd-networkd
...
systemd-networkd might already be running, let's make sure we restart
it if it is already running.
2024-05-06 10:56:55 +02:00
Daan De Meyer
9a4f925b57
TEST-75-RESOLVED: Move knot configuration to /usr/lib/systemd/tests/testdata
...
This allows the logic to install the configuration to be done inside
the test itself which allows it to be shared with mkosi.
2024-05-06 10:56:55 +02:00
Daan De Meyer
ae25df53bf
TEST-21-DFUZZER: Give higher priority
...
This test takes a long time to run. Let's make sure it is started
first to avoid it being the only test running for a long time at the
end.
2024-05-06 10:56:55 +02:00
Daan De Meyer
ca72b8f6f8
TEST-21-DFUZZER: Bump timeout to 1h
2024-05-06 10:56:55 +02:00
Richard Maw
7afb533711
TEST-21-DFUZZER: Skip test if dfuzzer is not installed
2024-05-06 10:56:55 +02:00
Daan De Meyer
e3ab65cff3
test: Fix udev storage test name
2024-05-06 10:56:55 +02:00
Daan De Meyer
15faee5309
test: Add missing TEST-69-SHUTDOWN to list
2024-05-06 10:56:54 +02:00