Commit Graph

101 Commits

Author SHA1 Message Date
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
Martin Pitt
a57fbd1450 autopkgtest: Add missing python3 test dependency for udev test 2018-07-08 20:41:30 +02:00
Martin Pitt
568bb9f047 autopkgtest: Install libnss-systemd
Make sure that dynamic users can be resolved. This e. g. prevents a
startup failure for systemd-resolved.
2018-07-08 12:58:12 +02:00
Martin Pitt
e91f20d9eb Merge logind-kill-off autopkgtest into logind test
This was horribly inefficient as a separate test (from commit
6bd0dab41e), as that cost two VM resets plus accompanying boots; and
this does not change any state thus does not require this kind of
isolation.
2017-09-14 23:03:27 +02:00
Dimitri John Ledkov
6bd0dab41e
Disable KillUserProcesses, yet again, with meson this time. 2017-08-18 13:35:17 +01:00
Felipe Sateler
f891976454 Add fdisk to the dependencies of the upstream autopkgtest
The upstream autopkgtest uses sfdisk, which is now in the non-essential fdisk package.

Closes: #872119
2017-08-15 17:00:25 -03:00
Martin Pitt
de13027ff7 debian/tests/upstream: Add systemd-coredump and quota test dependencies
Without these, dracut complains about the missing libdw.so, and test
setup about missing "quotaon".  These errors become fatal with
<https://github.com/systemd/systemd/pull/6475>.
2017-07-30 10:06:59 +02:00
Michael Biebl
db8bd967bf Split upstream tests into systemd-tests binary package
Closes: #859152
2017-04-08 11:40:37 +02:00
Martin Pitt
95391f1ae4 logind autopkgtest: Adjust to work in containers
Skip the suspend and ACL test when running in containers, and relax the
isolation restriction.
2017-02-21 21:47:38 +01:00
Martin Pitt
9604489bfe boot-smoke autopkgtest: Run in containers, too
There is no particular reason why this wouldn't work in containers, and
it works fine in LXC.
2017-02-21 21:40:08 +01:00
Martin Pitt
3afc624373 autopkgtest: Run all upstream unit tests as root
Ship all upstream unit tests in libsystemd-dev, and run them all as root
in autopkgtest.

Closes: #854392
2017-02-09 19:29:25 +01:00
Martin Pitt
ac866cbd38 Add autopkgtest for test-seccomp
Ship test-seccomp in libsystemd-dev and run it as autopkgtest, so that
it's easier to spot regressions like issue #5215.

Gbp-Dch: Short
2017-02-03 10:07:45 +01:00
Martin Pitt
3316971a85 Add policykit-1 test dependency for networkd-test.py
See https://github.com/systemd/systemd/pull/4701
2016-11-20 13:47:47 +01:00
Martin Pitt
50e0787a4d debian/tests/unit-config: Query pkg-config for system unit dir
This fixes confusion on merged-/usr systems where both /usr/lib/systemd and
/lib/systemd exist. It's actually useful to verify that systemd.pc says the
truth.
2016-11-09 11:46:12 +01:00