Commit Graph

177 Commits

Author SHA1 Message Date
Martin Pitt
a1bbdee842 debian/tests/smoke: Store udev db dump artifact on failure 2016-09-10 13:20:16 +02:00
Martin Pitt
2e9ebeb1f9 debian/tests/localed-x11-keymap: Check that localed works without /etc/default/keyboard
This reproduces #833849.
2016-08-14 09:24:29 +02:00
Martin Pitt
a4d7f8fb15 debian/tests/localed-x11-keymap: Robustify cleanup
Ensure that /etc/default/keyboard always gets restored even on a failure.

Gbp-Dch: Short
2016-08-14 09:23:36 +02:00
Michael Biebl
afcfe60a53 debian/tests/udev: Update test-udev location
The test-udev binary was moved to $libdir/udev, update the test
accordingly. Followup fix for 7f15fae093
2016-07-07 15:33:01 +02:00
Michael Prokop
3b32860391 debian/tests/logind: ensure correct version of logind is running
systemd-logind can't be restarted during upgrades, see git commit b8c239e12 and
https://github.com/systemd/systemd/issues/1163

But if we don't upgrade logind during our tests we might end up with calling
unsupported methods, e.g. failing as follows during an autopkgtest test run
within a jessie environment with the systemd backport:

| Error: org.freedesktop.DBus.Error.UnknownMethod
| Unknown method 'ScheduledShutdown' or interface 'org.freedesktop.login1.Manager'.
2016-07-07 12:24:29 +02:00
Martin Pitt
10b923ee62 debian/tests/boot-smoke: Stop running in containers again
Too unreliable on Ubuntu s390x right now.
2016-07-01 14:13:20 +02:00
Martin Pitt
44612a1416 Directly run test/networkd-test.py in autopkgtest
Sync test/networkd-test.py with current upstream master, and remove our debian/tests/networkd copy.
2016-06-30 16:06:50 +02:00
Martin Pitt
bb04342882 debian/tests/networkd: Sync with upstream PR#3628 2016-06-30 12:34:16 +02:00
Martin Pitt
43aff570eb debian/tests/networkd: Sync with upstream 2016-06-29 15:22:52 +02:00
Martin Pitt
40dfecc86b debian/tests/boot-smoke: Run in containers as well 2016-06-29 15:22:52 +02:00
Martin Pitt
5600722fc0 debian/tests/control: Update copied qemu-systemd-x86 test dependency 2016-06-29 15:22:52 +02:00
Martin Pitt
774f8b0483 debian/tests/networkd: Sync with upstream 2016-06-29 11:30:40 +02:00
Martin Pitt
5de873cdbd debian/tests/networkd: Stop skipping the two DHCP6 tests
This regression seems to have been fixed now.
2016-06-29 11:26:32 +02:00
Martin Pitt
46be001b74 debian/tests/storage: Sync and settle udev after luksFormat
This hopefully reduces the chance of seeing some half-written signatures.
2016-06-27 14:26:51 +02:00
Martin Pitt
038e56c26b debian/tests/upstream: Fix typo that causes some tests to not run with QEMU 2016-06-24 16:16:39 +02:00
Martin Pitt
3f51ce753e debian/tests/upstream: Do not run the QEMU tests on i386
Nested QEMU on i386 causes testbed hangs on Ubuntu's cloud infrastructure,
which is the only place where these actually run.
2016-06-23 10:43:21 +02:00
Martin Pitt
a6ee982a31 debian/tests/upstream: Blacklist tests failing without QEMU
Some tests fail on platforms without QEMU at the moment due to
https://github.com/systemd/systemd/pull/3587.
Blacklist these for now if QEMU is not available.
2016-06-23 10:36:19 +02:00
Martin Pitt
e2e18a10b7 debian/tests/upstream: Clean up old journals before running a test
This avoids printing a wrong one on failure.
2016-06-23 10:20:18 +02:00
Martin Pitt
7b4025fc05 Make debian/tests/upstream non-fatal on ppc64el
Some tests fail on ppc64el at the moment; only get their logs, don't fail the
entire autopkgtest there.
2016-06-22 23:17:42 +02:00
Martin Pitt
8d5de5725d upstream autopkgtest: Limit QEMU test dependencies to x86
The upstream tests currently only support i386 and amd64 in QEMU, and we do not
want to run for foreign architectures, so there is
no point installing qemu-system-x86 on non-x86.
2016-06-21 23:49:56 +02:00
Martin Pitt
28b7a0b5b8 debian/tests/systemd-fsckd: Adjust was_running() to also work for version 230
The start time apparently does not appear in the ExecStart= property any more.
Query ActiveEnterTimestampMonotonic instead, which is a more "official"
property.

Also change is_active_unit() to allow easier debugging.
2016-06-21 23:39:22 +02:00
Martin Pitt
063876a729 debian/tests/upstream: Show journals on failure
Also adjust the path to the SELinux pp binary in test/TEST-06-SELINUX/test.sh.
2016-06-21 14:56:56 +02:00
Martin Pitt
106f40ff93 Add "upstream" autopkgtest
This runs the test/TEST* upstream integration tests in QEMU and nspawn.

We need to modify test-functions a bit: We don't want to run this against a
built source tree (which we don't even have for a distro test run), but against
the installed packages.

Skip TEST-06-SELINUX for now as this does not work in Ubuntu (even after
install policycoreutils): The test expects a /usr/libexec/selinux/hll/pp file
which does not exist.
2016-06-21 13:06:21 +02:00
Martin Pitt
96713ccb3c Fix test_domain_specific_dns for many DNS servers
Fix test from commit f1c7ded77d: If we already have three nameservers in
resolv.conf, then we can't rely on our test one to be there. Adjust the test
case accordingly, similar to what do_test() does.
2016-06-07 10:46:20 +02:00
Martin Pitt
f1c7ded77d Fix networkd integration with resolvconf for domain-limited DNS servers
DNS servers which only apply to particular domains should/must not appear in
/etc/resolv.conf as globl name servers.

Thanks Andy Whitcroft for the initial fix!

Add corresponding test case to debian/tests/networkd.

LP: #1587762
2016-06-02 11:16:31 +02:00
Martin Pitt
ca2e6ef5a5 debian/tests/boot-and-services, test_no_failed(): Show journal of failed units 2016-06-01 22:44:15 +02:00
Martin Pitt
0cea7cc147 debian/tests/boot-and-services: Adjust test_tmp_mount() for fixed systemctl exit code for "unit not found"
The exit code got fixed in upstream commit ca473d57, for the upcoming systemd
231.
2016-05-31 13:22:02 +02:00
Martin Pitt
7c0561f033 boot-and-services autopkgtest: Add missing xserver-xorg and lightdm-greeter test dependencies
So that lightdm can start. (See LP #1581106)
2016-05-25 09:03:14 +02:00
Martin Pitt
75a9f425b7 Remove "bootchart" autopkgtest
This upstream version does not ship bootchart any more. It will be packaged separately.
2016-05-22 22:53:54 +02:00
Martin Pitt
6cb6c65f4f Drop cmdline-upstart-boot autopkgtest
It was still needed up to Ubuntu 16.04 LTS, but upstart-sysv is not supported
any more in Debian and Ubuntu now.

Also, should upstart-sysv ever come back, this test should be moved into the
upstart package.
2016-05-12 21:17:59 +02:00
Martin Pitt
4a5b0df050 debian/tests/boot-smoke: Configure dummy X.org driver
(like in the boot-and-services test). This should avoid lightdm randomly fail.

LP: #1571673
2016-04-20 09:00:34 +02:00
Martin Pitt
2c61cc9874 debian/tests/boot-smoke: Add some extra debugging if there are pending jobs after 10s
This should help to figure out why lightdm is sometimes "restarting". See
<https://launchpad.net/bugs/1571673>.
2016-04-18 17:31:18 +02:00
Martin Pitt
d3e7a70d51 debian/tests/cmdline-upstart-boot: In test_rsyslog(), check for messages from dbus instead of NetworkManager
NM 1.2 does not seem to log to syslog by default any more.
2016-04-12 10:08:56 +02:00
Martin Pitt
f2031001b0 debian/tests/unit-config: More checks for linked units
Check disabling of a "systemctl link"ed unit, and check "systemctl enable" on a
unit with full path which is not in the standard directories.
2016-04-11 20:56:32 +02:00
Martin Pitt
6ebdc0dcfa debian/tests/unit-config: Use systemd-sysv-install instead of update-rc.d directly
So that the test works under Fedora too.
2016-04-07 22:38:19 +02:00
Martin Pitt
4384ae3ea6 debian/tests/unit-config: Detect if system units are in /usr/
So that the test works on systems with merged /usr.
2016-04-07 22:32:38 +02:00
Martin Pitt
12085d6ac6 debian/tests/unit-config: Check that enable/disable commands are idempotent 2016-04-07 21:49:45 +02:00
Martin Pitt
400b6df031 debian/tests/unit-config: Call "daemon-reload" to clean up generated units in between tests 2016-04-07 21:40:28 +02:00
Martin Pitt
148044d692 Add "udev" autopkgtest for running the upstream test/udev-test.pl 2016-04-06 10:19:50 +02:00
Martin Pitt
47c119cd74 debian/tests/boot-and-services: Avoid race in NspawnTests.test_service()
Don't assert on "Stopped Container c1" message in NspawnTests.test_service(),
this is sometimes not present. Just check that the unit did not fail.
2016-03-09 18:06:42 +01:00
Martin Pitt
1b5b60375e debian/tests/networkd: Skip DHCPv6 tests for downstream packages too
This is an actual regression in networkd-229, to be investigated. But this
shouldn't hold up reverse dependencies.
2016-03-08 13:19:33 +01:00
Martin Pitt
5406a85f20 debian/tests/boot-and-services: Fix waiting for units
Wait for units to stop with a "systemctl is-active" loop instead of static
sleeps.
2016-03-07 11:09:25 +01:00
Evgeny Vereshchagin
d6a2d8c071 debian/tests/boot-and-services: search systemd-coredump's output by SYSLOG_IDENTIFIER
We lose _EXE sometimes: https://bugs.freedesktop.org/show_bug.cgi?id=50184
So, use SYSLOG_IDENTIFIER instead.

See also https://github.com/systemd/systemd/pull/2648#issuecomment-188936881
2016-03-03 15:56:42 +01:00
Martin Pitt
b2e4f1bbca debian/tests/networkd: Skip test_hogplug_dhcp_ip6 when running against upstream as well
This is a real bug, but should not block other upstream PRs.
2016-03-01 12:03:59 +01:00
Martin Pitt
45f38dcccc debian/tests/timedated: Add tests for "timedatectl set-local-rtc"
This requires the fix for https://github.com/systemd/systemd/issues/2638.
2016-02-29 07:35:44 +01:00
Martin Pitt
ea3fde415d debian/tests/control: Fix wrong empty line
Typo from commit 98771fa4dc.
2016-02-27 12:33:06 +01:00
Martin Pitt
98771fa4dc debian/tests/bootchart: Don't run for upstream tests
bootchart now got removed from master, so move its autopkgtest below the
"NOUPSTREAM" section in debian/tests/control to speed up upstream tests.

Also drop the $TEST_UPSTREAM check from the autopkgtest as that's redundant
now.
2016-02-25 17:57:38 +01:00
Martin Pitt
54e0510590 debian/tests/boot-and-services: Sync journal in nspawn test
Sync the journal before examining it.
2016-02-24 08:05:39 +01:00
Martin Pitt
f6b88f7e1b debian/tests/boot-and-services: Show verbose journal output on failure in nspawn test 2016-02-22 21:27:30 +01:00
Martin Pitt
3e405eab16 debian/tests/bootchart: Skip test if bootchart is not available
bootchart is in the process of moving to a separate repository.

Only do that when testing in upstream mode. For the distro we want to assert
that bootchart is available for the time being.
2016-02-19 18:03:29 +01:00