Daan De Meyer
79f44fb8a1
test: Make sure SYSTEMD_HWDB_UPDATE_BYPASS is disabled in the hwdb test
...
Let's make this test independent on what's in the environment.
2023-12-19 16:01:54 +01:00
Frantisek Sumsal
32c376a46c
test: add missing operators
...
Without them only the last expression's return value is honored, causing
unexpected CI fails:
[ 26.006721] testsuite-04.sh[1191]: + for _ in {0..9}
[ 26.007672] testsuite-04.sh[1191]: + setterm --term linux --dump --file /tmp/console.dump
[ 26.008871] testsuite-04.sh[1233]: + SYSTEMD_COLORS=256
[ 26.009606] testsuite-04.sh[1233]: + /usr/lib/systemd/systemd-bsod
[ 26.063296] systemd[1]: session-1.scope: Deactivated successfully.
[ 26.124789] testsuite-04.sh[1191]: + grep -aq 'Press any key to exit' /tmp/console.dump
[ 26.131509] testsuite-04.sh[1191]: + grep -aq 'Root emergency message' /tmp/console.dump
[ 26.137882] testsuite-04.sh[1191]: + grep -aq 'The current boot has failed' /tmp/console.dump
[ 26.141650] testsuite-04.sh[1191]: + return 0
[ 26.144816] testsuite-04.sh[1191]: + grep -aq 'Scan the QR code' /tmp/console.dump
[ 26.153591] testsuite-04.sh[1191]: + at_exit
[ 26.154744] testsuite-04.sh[1191]: + local EC=1
[ 26.155697] testsuite-04.sh[1191]: + [[ 1 -ne 0 ]]
[ 26.156787] testsuite-04.sh[1191]: + [[ -e /tmp/console.dump ]]
[ 26.157799] testsuite-04.sh[1191]: + cat /tmp/console.dump
[ 26.158858] testsuite-04.sh[1244]: The current boot has failed!
[ 26.159858] testsuite-04.sh[1244]: Root emergency message
I'm genuinely impressed that this worked at all.
2023-12-19 11:47:17 +09:00
Luca Boccassi
c2d5d8c401
Merge pull request #30464 from CodethinkLabs/misc-integration-test-fixes
...
Misc integration test fixes
2023-12-18 16:11:16 +01:00
Luca Boccassi
e7bfce0d0a
Merge pull request #30492 from mrc0mmand/skip-TEST-08-without-systemd-in-initrd
...
test: skip TEST-08-INITRD if systemd didn't run in the initrd
2023-12-18 16:10:33 +01:00
Frantisek Sumsal
6277e47127
Merge pull request #30508 from topimiettinen/fix-flaky-test-address-static
...
test-network: fix racy test for address_static
2023-12-18 14:43:26 +00:00
Topi Miettinen
0e808f622b
test-network: accept kernel versions like 1.2.3+ (self-built)
2023-12-18 14:40:21 +00:00
networkException
4e0db87e4c
core: allow interface altnames in RestrictNetworkInterfaces=
...
This patch enables IFNAME_VALID_ALTERNATIVE for checks guarding the
parsing of RestrictNetworkInterfaces=.
The underlying implementation for this option already supports
altnames.
2023-12-18 15:12:10 +01:00
Lennart Poettering
a19e7f3101
Merge pull request #30321 from yuwata/find-esp
...
find-esp: gracefully handle btrfs RAID
2023-12-18 15:11:54 +01:00
Topi Miettinen
f432aa9083
Revert "test: temporarily skip checking NFT sets in test_address_static"
...
This reverts commit e4a80de119 .
2023-12-17 18:01:42 +02:00
Topi Miettinen
1ce2ffac6c
test-network: fix racy test for address_static
...
NFT sets must be installed before starting networkd, otherwise some sets may be
installed too late.
Closes #30427
2023-12-17 17:59:53 +02:00
Frantisek Sumsal
23eca16aad
Revert "test: disable TEST-08-INITRD on ubuntu CI"
...
No longer necessary, as the test checks if systemd ran in the initrd.
This reverts commit 0d290cbcd6 .
2023-12-15 16:51:25 +01:00
Frantisek Sumsal
57d61ff319
test: skip TEST-08-INITRD if systemd didn't run in the initrd
...
This test requires systemd in the initrd, which is not the case in
mkinitrd-based initrds (Ubuntu/Debian).
Resolves : #30481
2023-12-15 16:51:25 +01:00
Zbigniew Jędrzejewski-Szmek
88cc9cc7bc
test-systemctl-enable: fix typo
...
Follow-up for fe6e0cfa19 .
2023-12-15 16:22:24 +01:00
Frantisek Sumsal
438c7cb20e
test: tell delv to load anchors from /etc/bind.keys explicitly
...
Since [0] delv no longer does that automagically, so we have to that
explicitly with each delv invocation.
Resolves : #30477
[0] c144fd2871
2023-12-14 23:11:12 +01:00
Frantisek Sumsal
58bcbad86c
test: don't check for -Dinstall-tests=true with NO_BUILD=1
2023-12-14 23:11:12 +01:00
Frantisek Sumsal
fdd380dde2
test: install empty directories with NO_BUILD=1
...
Resolves : #30478
2023-12-14 23:11:12 +01:00
Frantisek Sumsal
8f7c876bdc
test: forward journal messages to console during sd-bsod tests
...
Since we nuke the journal multiple times during that, which makes
potential fails undebugable.
2023-12-14 23:08:44 +01:00
Richard Maw
8799346862
test: mount overlayfs over /usr in some tests
...
Most of the integration tests have been made to not write to /usr
but some genuinely need to do so.
Because mkosi creates images with a read-only /usr
it is not normally writeable.
By mounting an overlayfs with /usr as the lower dir
and upper and working dirs in /var tests may write to /usr.
2023-12-13 17:55:45 +00:00
Frantisek Sumsal
f9ba9d3eb7
test: install all necessary units & generators for LVM on Debian
...
And derivates.
Replaces: #30458
2023-12-13 23:56:14 +09:00
Richard Maw
0129395173
test: slacken plugged -> dead test
...
This test is for if devices transition from plugged -> dead -> plugged
on boot, but it is normal to see loop devices transition plugged -> dead
on first boot when systemd-repart adds the root partition.
2023-12-13 13:35:04 +00:00
Richard Maw
8f764b32ea
test: Create analyze chroot with --rbind
...
The systemd-analyze integration test also tests chroots.
It builds its chroot by bind-mounting /,
but since /usr might be a separate mountpoint
it should create the chroot with --rbind.
2023-12-13 13:35:04 +00:00
Lennart Poettering
113defc76b
test: test that delegation of some newer attrs that shall be delegated work
2023-12-13 10:10:56 +01:00
Yu Watanabe
ee07fff03b
test: add basic coverity tests for bootctl
2023-12-13 14:29:09 +09:00
Yu Watanabe
97bbb9cfbd
test: create ESP and xbootldr partitions
2023-12-13 14:28:30 +09:00
Yu Watanabe
0f236e8cd6
test: mask mdmonitor when building image
...
Follow-up for 22e31655f3 .
2023-12-13 14:28:03 +09:00