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
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
Daan De Meyer
3beefac9eb
test: Remove flaky test comments
...
These two tests don't seem to fail in CI, so let's remove the comments
about flakyness.
2024-05-06 10:56:54 +02:00
Daan De Meyer
d91bb1cbf0
test: Always shutdown on test success in mkosi
...
When we want to get an interactive shell in a test that fails because
of a race condition, we might need to run the test a few times with
--repeat before it fails. However, currently, when -i is used, the VM
needs to be shut down manually each time before the next run can start.
Let's always shut down the VM if the test succeeds so that --repeat can
be used with -i to run the test until it fails and then get an interactive
shell in the VM.
2024-05-06 10:56:54 +02:00
Daan De Meyer
0596237e0e
test: Use MESON_TEST_ITERATION if available
...
This allows running the same test multiple times concurrently with
meson's --repeat option. Proposed upstream but not yet merged:
https://github.com/mesonbuild/meson/pull/13177 .
2024-05-06 10:56:54 +02:00
Daan De Meyer
3cb61e0d1c
test: Pass through test matching environment variables to the mkosi VM
2024-05-06 10:56:54 +02:00
Daan De Meyer
38db5eff34
test: Only set environment variable if integration tests are enabled.
...
If we set it to '0' if integration tests are not enabled then we can't
enable them from the command line since environment from meson takes
priority over environment variables from the command line.
We also rename the related variables to avoid conflicts with the
existing integration_tests variable.
2024-05-06 10:56:54 +02:00
Daan De Meyer
bdade5f597
test: Formatting fixes
2024-05-06 10:56:43 +02:00
Daan De Meyer
54d0507223
meson: Add missing spdx line
2024-05-05 14:49:21 +02:00
Daan De Meyer
ea07a6d45d
meson: Test installation fixes
...
Let's use the new follow_symlinks flag instead on newer meson to.
We also switch back to copying symlinks instead of following them
and add an exclude for 25-default.link which becomes dangling when
installed and recreate it manually instead.
2024-05-05 14:49:21 +02:00
Daan De Meyer
69e02d94f5
meson: Remove --debug from mkosi arguments
...
The exit status issue for which we introduced this was fixed so
let's remove --debug again to make the meson output less verbose.
2024-05-05 14:49:21 +02:00
Luca Boccassi
72007bbc9b
Merge pull request #32588 from CodethinkLabs/mkosi-selinux
...
Add TEST-06-SELINUX to mkosi integration tests
2024-05-04 20:48:55 +02:00
Frantisek Sumsal
568d97953b
test: replace Europe/Kiev with Europe/Kyiv
...
As the former is deprecated and might not be available (i.e. on Ubuntu
Noble it's only available after installing the tzdata-legacy package).
2024-05-04 12:52:49 +02:00
Richard Maw
ab9d60250e
test: Enable TEST-06-SELINUX testing with mkosi
2024-05-03 12:57:11 +01:00
Richard Maw
a2a734e737
test: Integrate custom selinux relabelling unit with firstboot
2024-05-03 12:57:11 +01:00
Richard Maw
049b456d9a
test: Skip TEST-06-SELINUX early if not on fedora/centos
...
Other distributions may be able to install selinux
but they are not expected to use it.
The distribution is tested rather than whether selinux is enabled
because it is expected to work on CentOS and Fedora
and we want it to fail noisily.
2024-05-03 12:57:11 +01:00
Luca Boccassi
0fee0c0780
test: drop --tpm2-public-key= from TEST-70
...
Fixes test failure
Follow-up for 03e3b2672b
2024-05-03 10:16:46 +02:00
Mike Yuan
49a4badb7d
Merge pull request #32595 from bluca/old_docs
...
Remove outdated documents
2024-05-02 03:45:00 +08:00
Yu Watanabe
8bf27cd010
Merge pull request #32611 from DaanDeMeyer/qdisc
...
network/tc: Avoid concurrent set modification in tclass_drop()/qdisc_drop()
2024-05-02 00:51:31 +09:00
Daan De Meyer
f2adc1de89
test-network: Make source directory optional
2024-05-01 16:15:20 +02:00
Daan De Meyer
e9b066ff92
test: Follow symlinks when copying with rsync
...
We have e.g. 25-default.link in test-network/ which becomes a broken
symlink when installed so let's not copy the symlinks but follow them
instead so they don't become broken.
2024-05-01 16:15:20 +02:00
Daan De Meyer
6be4dab095
systemctl: Implement --wait for kill command
...
TEST-26-SYSTEMCTL is racy as we call systemctl is-active immediately
after systemctl kill. Let's implement --wait for systemctl kill and
use it in TEST-26-SYSTEMCTL to avoid the race.
2024-05-01 09:40:32 +02:00
Luca Boccassi
c8de1a8c56
docs: move information from AUTOPKGTEST.md to test/README.testsuite and delete it
...
This is not information that needs to be published on systemd.io as it's
purely internal, so the README is enough
2024-05-01 01:30:12 +01:00
Daan De Meyer
4b1edf5cc6
test: Add disabled mkosi tests to meson.build
...
Makes it easier to track which ones still need to be fixed.
2024-04-30 22:10:05 +02:00
Richard Maw
f2018d060f
test: Enable more mkosi integration tests
2024-04-30 22:10:05 +02:00
Daan De Meyer
51273281cd
test: Bump mkosi integration test timeout to 1800 seconds
...
Same timeout as the bash framework.
2024-04-30 22:10:05 +02:00
Daan De Meyer
9a69900a4b
test: Make journal storage configurable per test and make persistent for TEST-09-JOURNAL
...
Also fix a bug in the logic since it's 'volatile' and not 'runtime'.
2024-04-30 22:10:05 +02:00
Daan De Meyer
b8afa59583
test: Drop /usr overlay workaround
...
/usr is not erofs anymore in the mkosi images so let's drop the
workaround where we mount a writable tmpfs on top of /usr.
2024-04-30 22:10:05 +02:00
Daan De Meyer
db07533f74
Revert "TEST-25-IMPORT: Skip if importctl not installed"
...
This reverts commit dcb17e3295
.
importctl is now correctly installed on opensuse, so no need for
this workaround anymore.
2024-04-30 22:10:05 +02:00