Daan De Meyer
c84b7a5743
Merge pull request #32875 from yuwata/network-route-wireguard
...
network/route: fix unexpected removal of routes for wireguard
2024-05-17 09:10:33 +02:00
Yu Watanabe
0664c1cf1d
test: wait for partition device being processed by udevd
...
Fixes #32697 .
2024-05-17 09:05:49 +02:00
Yu Watanabe
272aae38f8
test: wait for slice unit being (de)activated
...
Fixes #32731 .
2024-05-17 09:02:23 +02:00
Daan De Meyer
d42b71213a
Merge pull request #32885 from yuwata/test-do-not-fill-journal
...
test: do not fill journal with garbage
2024-05-17 08:54:24 +02:00
Yu Watanabe
c22a112883
test: sync journal before reading journal
...
Otherwise, expected lines may not be processed or not sync()ed to disk.
Fixes #32712 .
2024-05-17 07:46:02 +02:00
Yu Watanabe
71f0487173
test: wait for partition processed by udevd
...
Fixes #32695 .
2024-05-17 07:43:29 +02:00
Yu Watanabe
55732636ed
test: do not fill journal with diff
2024-05-17 14:17:11 +09:00
Yu Watanabe
cad510b08c
test: do not fill journal with "wait"
2024-05-17 14:17:11 +09:00
Yu Watanabe
cd6507538a
test-network: use different destination from gateway
...
Previously, one of the test route has the same address in destination
and gateway. Even it is a test case, that's super spurious. Let's use a
different address.
2024-05-17 09:28:49 +09:00
Daan De Meyer
e182c7b4db
test: Enable TEST-69-SHUTDOWN for mkosi
...
In mkosi, we run the test inside the VM instead of outside. To simplify
the implementation we drop the reboot part and only verify that we can
schedule and cancel shutdowns and that the wall messages are sent as
expected.
2024-05-16 18:21:32 +02:00
Daan De Meyer
11b706178c
Merge pull request #32842 from DaanDeMeyer/cryptsetup
...
test: Enable TEST-24-CRYPTSETUP for mkosi
2024-05-16 15:50:55 +02:00
Daan De Meyer
4ac46561e9
test: Enable TEST-24-CRYPTSETUP for mkosi
...
Encrypted /var is skipped because meson's limitations make per test
images not really feasible and we can't encrypt /var by default because
it slows down the image build too much.
Co-authored-by: Richard Maw <richard.maw@codethink.co.uk>
2024-05-16 14:46:37 +02:00
Luca Boccassi
88e791171a
test: add coverate for Compress=yes config option
...
Avoid regressions like https://github.com/systemd/systemd/issues/32856
Follow-up for 2ef7cdc425
2024-05-16 14:07:46 +02:00
Zbigniew Jędrzejewski-Szmek
b3aa88a475
Merge pull request #32800 from YHNdnzj/preserve-cred-mounts
...
switch-root: preserve the whole cred mount tree (/run/credentials/)
2024-05-16 12:45:40 +02:00
Daan De Meyer
c7d16bc81b
TEST-24-CRYPTSETUP: Store tokens in /usr
...
We want to be able to boot with empty /var.
2024-05-16 12:34:28 +02:00
Daan De Meyer
452f91d846
core: Skip private /tmp for generators in manager test runs
...
For manager test runs, the generator output paths are located in
/tmp, which means that if we mount a private /tmp for generators,
we lose all the generated units (actually the generators will just
fail because the directories don't exist, but if they did exist,
we'd still lose all the units).
Let's avoid the problem by skipping the private /tmp for manager
test runs. This also avoids any possible privilege issues with
mounting a private /tmp that might happen in this scenario.
2024-05-16 10:17:00 +02:00
Mike Yuan
85826351fb
TEST-82-SOFTREBOOT: test that creds for surviving units are carried over
2024-05-16 00:48:17 +08:00
Radoslav Kolev
2aee829fc8
test/test-rpm-macros.sh: add build directory to pkg-config search path
...
If tests are run during build time, without an already installed
systemd they fail to resolve the sysusersdir and tpmfilesdir pkg-config variables.
2024-05-15 18:25:27 +02:00
Daan De Meyer
c2172400d7
TEST-08-INITRD: Fix result check
2024-05-15 13:30:10 +02:00
Daan De Meyer
b13b7978e7
test: Enable TEST-08-INITRD on mkosi
2024-05-15 10:09:53 +02:00
Daan De Meyer
deaa4fb41b
test: Rename "shutdown initrd" to "exitrd"
2024-05-15 10:09:11 +02:00
Daan De Meyer
7379849ce0
TEST-64-UDEV-STORAGE: Give higher priority
...
Some of the udev storage tests can take quite a while, so let's make
sure they start early enough.
2024-05-15 08:27:26 +02:00
Daan De Meyer
4197900135
TEST-85-NETWORK: Give higher priority
...
Some of the networkd tests can take quite a while, so let's make sure
they start early enough.
2024-05-15 08:27:20 +02:00
Daan De Meyer
be60f55c21
TEST-21-DFUZZER: Fix priority
...
Tests with higher priority, not lower priority are started first.
2024-05-15 08:26:34 +02:00
Daan De Meyer
985ea31173
Merge pull request #32666 from DaanDeMeyer/mkosi-network
...
test: Add TEST-85-NETWORK to run systemd-networkd-tests.py
2024-05-15 07:30:04 +02:00
Luca Boccassi
e0d13e719e
Merge pull request #32830 from yuwata/home-skel
...
home: fix ownership of files copied from skelton directory
2024-05-15 01:26:15 +02:00
Yu Watanabe
82260fc426
test: add tests for "homectl --skel"
2024-05-15 06:39:05 +09:00
Daan De Meyer
f0888bb297
TEST-21-DFUZZER: Fix script name
2024-05-14 23:38:45 +02:00
Daan De Meyer
9e262ef92e
test: Enable TEST-54-CREDS on mkosi
2024-05-14 23:19:28 +02:00
Daan De Meyer
aa09f3078f
test: Add TEST-85-NETWORK to run systemd-networkd-tests.py
...
This adds a testsuite unit to run systemd-networkd-tests.py. This is
mkosi only for now as python is not available in the images set up
by the bash framework. We give the test a lower priority as it takes
a while to run so we want to start it as soon as possible.
2024-05-14 22:58:50 +02:00
Daan De Meyer
15c1a7855c
test: Allow using TEST_MATCH_TESTCASE with systemd-networkd-tests.py
2024-05-14 22:58:28 +02:00
Daan De Meyer
4222f81597
test: Enable TEST-82-SOFTREBOOT on mkosi
2024-05-14 21:41:59 +02:00
Daan De Meyer
aaebebb7bd
TEST-64-UDEV-STORAGE: Fix drive ID
2024-05-14 18:23:59 +02:00
Daan De Meyer
1d9b8f3476
test: Only add tpm2.target dependency to TEST-70-TPM2.service
...
Let's not add the dependency unless required.
2024-05-14 15:36:49 +02:00
Daan De Meyer
5692f87160
test: Run TEST-64-UDEV-STORAGE with mkosi
...
We add a configure script for each subtest to add the required
qemu arguments.
Co-authored-by: Richard Maw <richard.maw@codethink.co.uk>
2024-05-14 12:43:28 +02:00
Daan De Meyer
f2c6afa6c0
TEST-64-UDEV-STORAGE: Skip LVM subtests on Ubuntu
...
These fail for unknown reasons on Ubuntu. Until someone from Ubuntu
who cares can figure out why, let's skip these tests on Ubuntu.
2024-05-14 12:43:28 +02:00
Daan De Meyer
2cf6f55b72
TEST-64-UDEV-STORAGE: Bump timeout for testcase_simultaneous_events_1
...
The timeout is reliably hit when running tests in mkosi.
2024-05-14 12:43:28 +02:00
Daan De Meyer
6c2d47d6d3
TEST-64-UDEV-STORAGE: Skip btrfs_basic if btrfs module is not available
2024-05-14 12:43:28 +02:00
Daan De Meyer
d760e2a8c3
TEST-64-UDEV-STORAGE: Check for tgt and tgtd services
...
On Debian/Ubuntu, the unit is named tgt.service instead of tgtd.service,
so let's make sure we take that into account.
On CentOS, tgtd.service is not available, so let's skip the test if we
can't find the service.
2024-05-14 12:43:28 +02:00
Daan De Meyer
3e550801e7
TEST-64-UDEV-STORAGE: Add missing udevadm settle
...
Otherwise we try to do the check before the udev queue is empty which
will make it fail.
2024-05-14 12:43:28 +02:00
Daan De Meyer
b37ed039f0
TEST-64-UDEV-STORAGE: Use virtio-scsi-pci instead of ahci
...
The debian cloud kernel does not support ahci, so let's use
virtio-scsi-pci everywhere instead.
2024-05-14 12:43:28 +02:00
Daan De Meyer
f41b6394d5
TEST-64-UDEV-STORAGE: Use ID based paths
2024-05-14 12:43:28 +02:00
Daan De Meyer
eb4c962aa4
test: Ignore configure scripts in minimal images
...
These are always aimed at the system image so ignore any specified
configure scripts in the minimal images.
2024-05-14 12:43:28 +02:00
Daan De Meyer
31c797e03d
test: Add cmdline field to configure extra kernel command line args
...
Configuring extra cmdline arguments as a list is much nicer than
having to pass the --kernel-command-line-extra argument manually.
2024-05-14 12:43:28 +02:00
Daan De Meyer
348f5017a4
test: Generate basic testsuite services with meson
...
Most of these are identical, let's just generate from a meson
template.
2024-05-14 12:43:28 +02:00
Daan De Meyer
20e94309a7
TEST-46-HOMED: Simplify service unit
...
Let's remove the unneeded NotifyAccess=all and start the socket
and service in the test itself instead of via the service unit. This
makes the test unit identical to the other test units which will allow
us to autogenerate it in a later commit.
2024-05-14 12:43:28 +02:00
Daan De Meyer
f6af2976aa
TEST-06-SELINUX: Simplify auto-relabeling
...
Let's ship a .autorelabel file so we can get rid of
firstboot-autorelabel.service.
2024-05-14 12:43:28 +02:00
Daan De Meyer
c87e243fef
test: Rename mkosi_args to mkosi-args
2024-05-14 12:43:28 +02:00
Daan De Meyer
4ce12c3933
test: Disable tests via 'enabled' field
...
This allows doing other stuff with the test without actually defining
the test, such as generating a service unit automatically.
2024-05-14 12:43:28 +02:00
Daan De Meyer
f483e08313
test: Simplify argument/variable names
2024-05-14 12:43:28 +02:00