Commit Graph

114 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
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
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
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
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
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
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
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
Luca Boccassi
cde07844e6 d/t/control: install squashfs-tools for upstream test
Required by TEST-50-DISSECT since upstream PR:
https://github.com/systemd/systemd/pull/16046
2020-11-12 21:22:59 +01:00
Dan Streetman
e530c346bd Add libzstd-dev and zstd as build and test deps
For upstream PR:
https://github.com/systemd/systemd/pull/15422
2020-07-23 11:54:27 +00:00
Dan Streetman
c9865ca6b5 d/t/control: install seabios for upstream test
Some archs (at least arm64) qemu implementation require the vga bios.
2019-08-30 23:18:55 +00:00
Dan Streetman
de9338cf56 d/t/control: upstream test requires qemu-system-ppc on ppc64el 2019-08-30 23:18:55 +00:00
Dan Streetman
7e35c1e64c d/t/control: upstream test requires dmeventd
Specifically, test/TEST-02-CRYPTSETUP/test.sh calls install_dmevent
which requires dmeventd to be installed.
2019-07-17 20:46:10 -04:00
Dan Streetman
012e932cca d/t/control: mark udev test skippable
The udev test will return 77 (from udev-test.pl) if it can't
setup the test environment; mark it skipped in that case.
2019-07-17 20:46:10 -04:00
Dan Streetman
116ae74377 d/t/control: root-unittests can break networking, add breaks-testbed 2019-07-17 20:46:10 -04:00
Martin Pitt
fbdd60c51a Enable boot-and-service autopkgtest in containers
- Skip tests which can't work in containers.
- Add missing rsyslog test dependency.
- e2scrub_reap.service fails in containers, ignore (filed as #926138)
- Relax pgrep pattern for gdm, as there's no wayland session in
  containers.
2019-03-31 22:56:33 +02:00
Martin Pitt
c923cd4a7e Enable udev autopkgtest in containers
This test doesn't actually need udev.service (which is disabled in
containers) and works fine in LXC.
2019-03-31 21:48:42 +02:00
Dimitri John Ledkov
7dff5196e2
debian/tests/control: add socat to upstream tests for pull #11591 2019-02-09 14:09:43 +00:00
Michael Biebl
b5c1aba27e autopktest: Add e2fsprogs dependency to upstream test
Some of the upstream tests require mkfs.ext4.

Closes: #887250
2018-11-17 23:02:36 +01:00
Martin Pitt
fef30053a9 autopkgtest: Avoid test bed reset for boot-smoke
Make "boot-smoke"'s dependencies a strict superset of "upstream"'s, so
that autopkgtest doesn't have to provide a new testbed.
2018-10-31 23:31:06 +01:00
Martin Pitt
7c79f66f8f Enable QEMU on more architectures in "upstream" autopkgtest
Taken from the Ubuntu package, so apparently QEMU works well enough on
these architectures now.
2018-10-31 23:29:59 +01:00
Martin Pitt
1044f758b6 debian/tests/boot-and-services: Use gdm instead of lightdm
This seems to work more reliably, on Ubuntu CI's i386 instances lightdm
fails.

Backported from Ubuntu package, thanks Dimitri John Ledkov!

https://github.com/systemd/systemd/issues/10497
2018-10-25 20:56:37 +02:00
Martin Pitt
22ac85b278 Revert "test: Add accountsservice dependency to boot-and-services test"
This did not help.

This reverts commit 42a377a7f5.

Gbp-Dch: Ignore
2018-10-25 08:24:32 +02:00
Martin Pitt
42a377a7f5 test: Add accountsservice dependency to boot-and-services test
It appears lightdm fails to start up without it, even though it's just a
Recommends:, and it does seem to work without it on amd64. But it does
not hurt much, so let's see if it helps.

https://github.com/systemd/systemd/issues/10497

Gbp-Dch: Short
2018-10-24 16:53:12 +02:00
Michael Biebl
b3d45c99f6 autopkgtest: Remove needs-recommends runtime restriction
This restriction has been deprecated and there are plans to remove it
altogether. The tests pass withouth needs-recommends, so it seems safe
to remove.

See 9fade8dcb5
2018-09-11 03:03:12 +02:00
Michael Biebl
1a9426c134 autopkgtest: Add dbus-user-session and libpam-systemd dependency to root-unittests
Without a working D-Bus user session, a lot of the test-bus-* tests are
skipped.
2018-07-20 23:54:49 +02:00
Michael Biebl
1d838336a0 autopkgtest: Add iputils-ping dependency to root-unittests
The ping binary is required by test-bpf.
2018-07-20 23:51:07 +02:00
Michael Biebl
98996e8a65 autopkgtest: Add various dependencies to make upstream test pass on Debian
- netcat-openbsd: Required by TEST-12-ISSUE-3171.
- busybox-static: Required by TEST-13-NSPAWN-SMOKE.
- plymouth: Required by TEST-15-DROPIN and TEST-22-TMPFILES.
2018-07-19 00:37:38 +02:00