Commit Graph

259 Commits

Author SHA1 Message Date
Martin Pitt
8d72f4f1c3 Revert "debian/tests/unit-config: Tolerate path variations"
The double slashes got fixed properly upstream again:
https://github.com/systemd/systemd/commit/23bdba61b

This reverts commit 3da52a0fab.
2019-03-14 13:29:49 +01:00
Martin Pitt
57465d928d debian/tests/timedated: Fix race condition
If timesyncd is running in the testbed, set-ntp does not synchronously
disable it, so wait until it goes down.

Gbp-Dch: Ignore
2019-03-11 08:09:33 +01:00
Martin Pitt
0cd41d3692 debian/tests/timedated: Check enabling/disabling NTP
Assert that `timedatectl set-ntp` correctly controls the service, sets
the `org.freedesktop.timedate1 NTP` property, and sends the right
`PropertiesChanged` signal.

This reproduces <https://github.com/systemd/systemd/issues/11944> and
also the earlier <https://github.com/systemd/systemd/issues/9672>.
2019-03-10 20:52:27 +01:00
Martin Pitt
e54dc6dd77 debian/tests/boot-smoke: Only check current boot for connection timeouts
Otherwise we'll catch some

    Failed to resolve group 'render': Connection timed out

messages that happen in earlier boots during VM setup, before the
"render" group is created.

Fixes https://github.com/systemd/systemd/issues/11875
2019-03-03 21:21:50 +01:00
Martin Pitt
d48f273d6a debian/tests/boot-smoke: Save complete journal artifact on failure
Gbp-Dch: Ignore
2019-03-03 12:12:40 +01:00
Martin Pitt
ca4674f900 autopkgtests: Replace obsolete $ADT_* variables
Use their $AUTOPKGTEST_* equivalents.

These were introduced in autopkgtest 4.0 (June 2016), and all our CI
systems use a much newer version.

Gbp-Dch: Short
2019-03-01 09:17:36 +01:00
Martin Pitt
6a9a7ec2bf debian/tests/boot-smoke: Create journal and udevdb artifacts on all failures 2019-03-01 09:13:15 +01:00
Martin Pitt
3da52a0fab debian/tests/unit-config: Tolerate path variations
Since https://github.com/systemd/systemd/commit/1c2c7c6cb it can happen
that pkg-config paths start with '//'. These are not really meaningful,
so normalize the path before comparison.
2019-02-27 22:38:47 +01:00
Martin Pitt
2ab793c735 debian/tests/boot-smoke: Create "render" system group
When running tests for upstream PRs, this test often fails with

    checking for connection timeouts
    systemd-udevd[1228]: Failed to resolve group 'render': Connection timed out

Which is not the kind of timeout the test is looking for. Create the
group in the test to avoid this.

We explicitly don't create the group in systemd.postinst as we revert
the patch that introduces the group into the udev rules.
2019-02-26 23:36:46 +01:00
Dimitri John Ledkov
5594ebf325
debian/tests/storage: fix for LUKS2 and avoid interactive password prompts. 2019-02-14 14:48:02 +00:00
Dimitri John Ledkov
f93b9e46b5
Blacklist TEST-10-ISSUE-2467 #11706 2019-02-13 00:38:21 +00:00
Dimitri John Ledkov
7dff5196e2
debian/tests/control: add socat to upstream tests for pull #11591 2019-02-09 14:09:43 +00:00
Dimitri John Ledkov
a106d9c60b
debian/tests/upstream: Mark TEST-13-NSPAWN-SMOKE as flakey. 2019-01-28 13:49:08 +00:00
Dimitri John Ledkov
bfafb0924a
debian/tests/storage: improve cleanups.
On fast ppc64el machines, cryptsetup start job may not complete by the time
tearDown is executed. In that case stop, causes to simply cancel the start job
without actually cleaning up the dmsetup node. This leads to failing subsequent
test as it no longer starts with a clean device. Thus ensure the
systemd-cryptsetup unit is started, before stopping it.

Also rmmod scsi_debug module at the end, to allow re-running the test in a
loop.
2019-01-28 13:04:21 +00:00
Martin Pitt
1eb1439867 tests: Disable flaky TEST-17-UDEV-WANTS upstream test
See https://github.com/systemd/systemd/issues/11195
2018-12-21 12:10:44 +01:00
Martin Pitt
2c194b155b tests: Disable some flaky upstream tests
See https://github.com/systemd/systemd/issues/11195
2018-12-19 08:30:18 +01:00
Michael Biebl
259bb89643 autopkgtest: Drop test_custom_cgroup_cleanup from boot-and-services
So far, we tried to avoid cleaning up manually created cgroups via a
Debian specific patch. This patch was dropped though and that particular
use case was never really supported upstream.
As this would trigger an autopkgtest failure now, let's remove this test.

Follow-up for commit 9738816398.

Gbp-Dch: Short
2018-11-21 21:47:22 +01: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
Michael Biebl
ede53b8844 autopkgtest: Use shutil.which() which is provided by Python 3
Suggested in https://salsa.debian.org/systemd-team/systemd/merge_requests/11

Gbp-Dch: Short
2018-11-16 23:34:23 +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
05550734a4 debian/tests/boot-and-services: Accept gdm with Wayland session
Remove the Xorg check and use pgrep to accept any gdm session type.

Gbp-Dch: Ignore
2018-10-27 09:08:05 +02: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
675c1ed011 debian/tests/upstream: Clean up after each test run
Otherwise the loopback images used by qemu are not properly released and
we might run out of disk space.
2018-10-18 02:52:59 +02:00
Michael Biebl
242c96addb test: Use installed catalogs when test-catalog is not located at build dir
This makes it possible to run test-catalog as installed test, so we no
longer need to mark it as EXFAIL in our root-unittests autopkgtest.
2018-09-12 19:07:08 +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
Michael Biebl
fb125cc30e debian/tests/localed-x11-keymap: Deal with absence of /etc/default/keyboard more gracefully 2018-07-17 12:04:00 +02:00
Michael Biebl
dbb29f1369 autopkgtest: Drop no-longer needed workaround from upstream test 2018-07-16 11:17:41 +02:00
Michael Biebl
4ae56d17be autopkgtest: Make AppArmor violator test work with merged-usr 2018-07-09 04:19:11 +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
Dimitri John Ledkov
cb3c4f8f91 Run all upstream tests, and then report all that failed. 2018-06-12 20:44:12 +00:00
Martin Pitt
50e860fd3e debian/tests/boot-and-services: Ignore cpi.service failure
This is apparently a regression in Ubuntu 18.04, not in systemd, so
ignore it.
2018-05-14 11:45:02 +02:00
Evgeny Vereshchagin
368160993f upstream autopkgtest: Copy journal subdirectories
Otherwise logs are missing on failures:

   cp: -r not specified; omitting directory '/var/tmp/systemd-test.Nq2jqR/journal/59852163a37d458f9d238b65f279b6fa'
2018-04-10 21:45:49 +02:00
Martin Pitt
b833092230 debian/tests/boot-smoke: More robust journal checking
Also fail the test if calling journalctl fails, and avoid calling it
twice. See https://github.com/systemd/systemd/pull/8032
2018-02-10 12:55:43 +01:00
Martin Pitt
4f8eb632e6 debian/tests/upstream: Only show ≥ warning in journal dumps
Showing the entire debug log is too hard to scan visually, and most of
the time the warnings and errors are sufficient to explain a failure.
Put the journal files into the artifacts though, in case the debug
information is necessary.
2017-11-24 17:17:02 +01: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
Evgeny Vereshchagin
22a7c0558f debian/tests/upstream: Disable check for ninja executable
_ninja_bin was added in https://github.com/systemd/systemd/pull/6544 in
order to make the tests work on CentOS. As we don't actually do a "ninja
install" and ninja is not available, replace the check with a dummy
value.
2017-08-07 08:37:09 +02: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
Martin Pitt
602ca961b4 debian/tests/upstream: Fix Makefile.guess failure
Makefile.guess tries to find the build directory if $BUILD_DIR is not
set. This doesn't always exist for an autopkgtest, thus fix it to ".";
it is not actually being used anyway. Adjust the sed for using the
system-installed nspawn binary accordingly.
2017-07-30 09:51:43 +02:00
Martin Pitt
43566b4f93 debian/tests/upstream: Fix for ninja migration
Generalize the sed match to not only catch "make install" but also
"ninja install", by just matching onlines which specify "DESTDIR" and
"install". This fixes the "upstream" test after
https://github.com/systemd/systemd/commit/209f4b9e33

See https://github.com/systemd/systemd/issues/6474

Gbp-Dch: Short
2017-07-28 12:21:50 +02:00
Michael Biebl
1866313760 udev autopkgtest: no longer install test-udev binary manually
This is now done by the upstream build system.

See https://github.com/systemd/systemd/pull/6178
2017-07-12 22:28:57 +02:00
Michael Biebl
db8bd967bf Split upstream tests into systemd-tests binary package
Closes: #859152
2017-04-08 11:40:37 +02:00