Commit Graph

350 Commits

Author SHA1 Message Date
Michael Biebl
e5b55fea96 Update remaining policykit-1 (test) dependencies and prefer polkitd
Keep the policykit-1 dependency as alternative for easier backports.

Closes: #1025591
2022-12-06 20:30:03 +01:00
Luca Boccassi
ab855085a6 Enable support for libqrencode
dlopen() feature so no additional cost. Allows to print out recovery keys
in QR format.
2022-11-05 17:09:05 +00:00
Luca Boccassi
4c41de1f58 autopkgtest: update expected output of localectl 2022-10-24 19:03:26 +01:00
Luca Boccassi
c001228ca2 Split systemd-resolved into its own package which takes over /etc/resolv.conf
Closes: #939904
2022-08-04 16:14:05 +01:00
Michael Biebl
387047918d autopkgtest: install openssl for upstream test
Install openssl explicitly and do not rely on other packages, like
swtpm-libs, to pull this dependency for us.

Used by TEST-50-DISSECT, which otherwise just silently skips the test.
2022-07-04 15:16:29 +02:00
Luca Boccassi
6c8df64aa8 Add systemd-homed package
Closes: #976960
2022-06-04 00:18:41 +02:00
Luca Boccassi
c74b566bcd autopkgtest: add cryptsetup-initramfs for upstream suite
Needed for https://github.com/systemd/systemd/pull/23517
2022-06-03 19:36:29 +02:00
Luca Boccassi
75a50442af autopkgtest: ignore rng-tools-debian failure in boot-and-services
It seems sometimes it fails, which has happened on jammy-amd64:

https://bugs.debian.org/969568
2022-05-15 14:10:07 +01:00
Luca Boccassi
d40b4f831f autopkgtest: mark networkd-test.py as breaks-testbed
It will modify the network configuration, which will often make the
network stop working. Mark it as breaks-testbed so that a new
runner is started.

For an example see:

https://the-real-systemd.semaphoreci.com/workflows/d0fdfe68-4ee5-458b-9230-8689b1731b64?pipeline_id=02a47bad-aed7-409c-8e16-ded3400e4682
2022-05-15 14:10:07 +01:00
Luca Boccassi
b865dc9aae autopkgtest: disable networkd in rebooting tests
It seems that on Semaphore CI, running in Bullseye images, having
both Network-Manager and systemd-networkd enabled causes
'systemctl start network-online.target' to get stuck, and fail
the run. Disable networkd in those tests.

See: https://github.com/systemd/systemd/issues/22991
2022-05-15 14:10:07 +01:00
Luca Boccassi
3599d49afb autopkgtest: add allow-stderr to boot-and-services
Sometimes we see some ignored logs, don't fail the test run
if that happens
2022-05-15 14:10:07 +01:00
Luca Boccassi
8da23d25f6 autopkgtest: install swtpm and tpm2-tools for upstream suite
Required by:

https://github.com/systemd/systemd/pull/22563
2022-04-03 00:42:43 +02:00
Luca Boccassi
7e56c11863 autopkgtest: install python3-pexpect and screen for upstream suite
Required for new test:

https://github.com/systemd/systemd/pull/21838
2022-04-02 13:19:31 +02:00
Luca Boccassi
2709460b73 autopkgtest: install libnss packages for upstream suite
Required to enable nss tests:

https://github.com/systemd/systemd/issues/21975
2022-04-02 13:09:17 +02:00
Luca Boccassi
68b88af816 autopkgtest: install libnss packages for unit-tests suite
Required to enable nss tests:

https://github.com/systemd/systemd/issues/21975
2022-04-02 11:36:53 +02:00
Luca Boccassi
af85b660a4 autopkgtest: update unit-config test for new relative symlinking
Required by https://github.com/systemd/systemd/pull/22649
2022-04-02 11:36:26 +02:00
Luca Boccassi
05f8fdb342 autopkgtest: add libdw-dev to unit-tests job
Needed since:

ee48779e05

FAIL: test-dlopen-so18:58
libdw.so.1 is not installed: libdw.so.1: cannot open shared object file: No such file or directory18:58
Assertion 'dlopen_dw() >= 0' failed at src/test/test-dlopen-so.c:55, function run(). Aborting.
2022-03-14 15:26:22 +00:00
Yu Watanabe
64e315e3d7 upstream-ci: logind test: fix drop-in config
This fixes a bug introduced by a966e7e7e1.

Also drops the created drop-in config when the test finished.
2022-01-21 08:34:22 +09:00
Yu Watanabe
d56303fe6d upstream-ci: logind test: make sure the fake lid switch processed by udevd
Also, wait for other uevents, which possibly triggered by the lid switch,
being processed.
2022-01-20 19:29:37 +09:00
Yu Watanabe
7a8eebb62a upstream-ci: logind test: also show logs of systemd-suspend.service 2022-01-20 19:29:37 +09:00
Yu Watanabe
a966e7e7e1 upstream-ci: logind test: use drop-in config 2022-01-20 19:29:36 +09:00
Luca Boccassi
6b5e99f1d7 Build with and suggest fido2 and tpm libraries
These are used via dlopen only if available by some tools like
systemd-cryptsetup, systemd-cryptenroll and systemd-repart,
with graceful fallbacks if they are not found.
Build-depend on them so that the features get compiled in
(apart from stage1 builds), and add appropriate Suggests.

Closes: #991129 #1003383
2022-01-13 23:42:02 +00:00
Michael Biebl
18bde6d38f autopkgtest: add systemd-oomd dependency to upstream test
We want systemd-oomd to be tested via the upstream provided
TEST-55-OOMD.
2022-01-09 19:51:07 +01:00
Michael Biebl
e8fdd523f6 autopkgtest: install dbus-user-session for upstream test
Required by TEST-43-PRIVATEUSER-UNPRIV and TEST-20-MAINPIDGAMES.

See also https://github.com/systemd/systemd/issues/21720#issuecomment-992005494
2021-12-21 01:23:04 +01:00
Luca Boccassi
ec5cc0a2a0 autopkgtest: install libdw and libelf for upstream test
Pulled in via dlopen since https://github.com/systemd/systemd/pull/21454
2021-12-21 01:23:04 +01:00
Michael Biebl
cdf1c199fd Merge branch 'debian/master' into debian/experimental 2021-10-12 11:58:00 +02:00
Michael Biebl
ff6fd33762 autopkgtest: Merge configuration of logind test with timedated and related tests
They share the same restrictions and merging them avoids a bit of
duplication.
2021-10-01 10:12:05 +02:00
Michael Biebl
98e96f771a autopktest: Fix timedated test dependencies
Add an explicit systemd-timesyncd dependency as it is required by the
timedated test.
2021-10-01 10:11:52 +02:00
Michael Biebl
8af109415d Fix test dependencies of upstream test
After splitting out the standalone binaries for sysusers and tmpfiles
into separate packages (which conflict with the main systemd package),
we can no longer use the '@' notation in the upstream test.

This reverts commit 5eeeb1b562 and also
adds systemd-tests and systemd-timesyncd to the upstream test
dependencies.
2021-08-08 22:46:06 +02:00
Michael Biebl
265477ab8b autopkgtest: clean up dependencies of boot-smoke test
A lot of the dependencies are not needed but were originally added to
avoid a testbed reset and make it possible to reuse the testbed of the
upstream test. This turned out to be a maintenance problem and the
dependencies were not updated accordingly. Instead of trying to keep the
two tests in sync, trim down the boot-smoke dependencies to its bare
minimum.
2021-07-31 21:48:46 +02:00
Michael Biebl
5f089a58bf autopkgtest: add systemd-timesyncd dependency to timedated test
We need systemd-timesyncd in the timedated test, not just an arbitrary
provider of time-daemon.
2021-07-31 21:05:32 +02:00
Michael Biebl
5092b19836 autopkgtest: add udev dependency to unit-tests
Without a properly set up hwdb the test-sd-hwdb test is skipped.
2021-06-17 18:09:37 +02:00
Luca Boccassi
c649031591 autopkgtest: add dependency on dosfstools for upstream test
Needed to create EFI partition (vfat)
2021-06-17 18:09:25 +02:00
Dan Streetman
c7ecd05006 d/t: replace 'root-unittests' shell script with simple call to upstream script
The upstream test runner script is much better, as it only prints failing test
output, and gives a summary of the test results at the end.
2021-05-19 13:09:33 +02:00
Michael Biebl
c66fa7a777 d/t/control: drop obsolete alternative util-linux dependency
Gbp-Dch: Ignore
2021-05-07 14:06:09 +02:00
Frantisek Sumsal
53c68cdb95 upstream-ci: fix test_no_failed() check
Without `--plain` `systemctl` prints a circle (●) in the first column
for each failed service, which with the current code interferes with
attempted journal listing for each such service:

```
test_no_failed (__main__.ServicesTest)
No failed units ... -------- journal for failed service ● -----------
Invalid unit name "●" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?).
-- Journal begins at Sun 2021-04-25 03:05:23 UTC, ends at Sun 2021-04-25 09:00:32 UTC. --
-- No entries --
FAIL
```
2021-05-07 12:23:58 +02:00
Dan Streetman
e4c364bc4c d/t/boot-smoke: update test to avoid false negatives 2021-05-07 12:23:58 +02:00
Dan Streetman
5eeeb1b562 d/t/control: install all binary packages for upstream test
With the change to just call the upstream script to run the integration
tests, the packages to test need to be installed so the test-function
script can list out the files each package contains, and copy those files
into each nspawn and/or qemu testbed. Without all packages installed,
some tests fail; specifically TEST-30 currently requires systemd-timesyncd
which was not previously installed for the 'upstream' test suite.

This changes the control file to just install all binary packages, using
the '@' notation.
2021-05-07 12:23:58 +02:00
Dan Streetman
ae1129ecd0 d/t/upstream: use NO_BUILD=1
Also don't bother sed-modifying test-functions file, as the NO_BUILD
changes remove the need for that.
2021-05-07 12:23:58 +02:00
Dan Streetman
3d97be7786 Slight adjustments to previous patch for deny/black-list naming
Also add in two vars used by the integration runner script
2021-05-07 12:23:58 +02:00
Zbigniew Jędrzejewski-Szmek
de959cc3ea Let "upstream" test use upstream test runner 2021-05-07 12:23:58 +02:00
Luca Boccassi
e1af3aed57 upstream suite: add build-dep on vim-tiny
Required by some of the images in the upstream test suite
2021-05-07 12:23:58 +02:00
Balint Reczey
532abf5b61 debian/tests/control: Upstream test depends on attr 2021-05-06 23:00:03 +02:00
Matthias Klumpp
63f22a7a8d Configure localed to run locale-gen to generate missing locale
This applies an (upstreamed) patch to permit systemd-localed to run
locale-gen to generate missing locale when requested to switch the
system locale.
This makes localectl usable on Debian for changing locale without
breaking system localization or even prevent certain applications from
running at all after switching to a non-generated locale.
2021-01-18 03:05:05 +01:00
Michael Biebl
85438481ca d/t/timedated: Ignore return code of dbus-monitor in wait_mon()
We are not really interested in the return code and error messages from
dbus-monitor after killing it, so ignore them to avoid undesired
autopkgtest failures.

Follow-up for commit 3de342799c.
2020-12-03 23:52:50 +01:00
Balint Reczey
3de342799c debian/tests/timedated: Wait for the killed child only
There may be other children of the script due to autopkgtest machinery
and they exit after the script exited.

LP: #1904406
2020-12-02 23:24:06 +01:00
Michael Biebl
ed35a87e6f Merge branch 'debian/experimental' into debian/master 2020-12-02 23:18:37 +01:00
Michael Biebl
d21ae0f7c4 Revert "d/t/timedated: use /bin/bash to work around job handling issue in dash"
This reverts commit e437da1e4f.
2020-12-01 19:45:17 +01:00
Michael Biebl
e23f9a2fb3 systemd Debian release 246.6-5
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEECbOsLssWnJBDRcxUauHfDWCPItwFAl+9cvYACgkQauHfDWCP
 Itz03w/+K7laA+3yUOP0U4P7kfzm9lsCrdDdIK2XTlSTMq2Q605H7JomAmZWE4GH
 bET11ChHqpNpQDNrizu6UeJLBovTlfuxZYB0wvNseJxhojs3XFGLzW7sqdmHGDjB
 III0NaLd+3dr3PsygOtmtIexa6ybnvU4s7zy7sWFUp1ZBi89xl4LTjEybBraEc04
 WUeCVZtQ4rtWu1oSgdyXMnVhEjg95q400kfOSwNGsidyhV+QkXhnn6wJhPfJukgv
 529D6qVTfhozVypHmK4iG/1ZYJnXOydA35JShkp1b6pfigtKvlA+8m/8BWm4QAI4
 svLItgA+TbQoLs8wjAxcVIMUYYOgdYsIa3hIhjBM+yV0u5dGffgYy/BdIXPxOSou
 3V0dLpGsJJzJO804a2Y2hFRQa/aNMJ1wbUEdUlI3qFLReLeCvsMDQXO3TotAYWSY
 5LDlbPTQpppmlRyaVBek863+OL/1zwTKkwij+tnATcEmW+SIz3vMUEBMEDk/8KJI
 klqfk53KF+kYRMtkAcUjxmjOT7zvztBTJpSQGizJbfhAdtXnqBBR7tClX29ChzbT
 lamvVcrdHLhI2/FPSmyhL19syLx5nxMASf5psVJbQj8uX3iRLAivylTh6/Mx26Md
 67pXSZeDMFFlUFnUUnaL2pKpAILPmiUjnROL4VErdhYcykMTakw=
 =Q6O6
 -----END PGP SIGNATURE-----

Merge tag 'debian/246.6-5' into debian/experimental

systemd Debian release 246.6-5
2020-11-26 17:58:35 +01:00
Michael Biebl
e437da1e4f d/t/timedated: use /bin/bash to work around job handling issue in dash
See: #975010
2020-11-18 01:12:08 +01:00