Commit Graph

70 Commits

Author SHA1 Message Date
Martin Pitt
73691eab7d Add debian/tests/unit-config: Test "systemctl link"
This reproduces https://launchpad.net/bugs/1480310
2015-08-12 15:05:40 +02:00
Martin Pitt
8d824b0945 Skip systemd-fsckd autopkgtest if /run/initramfs/fsck-root exists
I. e. the initramfs already ran fsck. Then systemd-fsck-root, fsckd etc. are
not supposed to run.

This is currently hidden by http://bugs.debian.org/783291, but once that gets
fixed this will cause the systemd-fsckd test to fail with current
initramfs-tools.
2015-08-04 15:24:23 +02:00
Martin Pitt
ffa1eebce2 boot-and-services autopkgtest: Ignore thermald
Since 1.4.3-2 it starts by default, but fails in most virtual envs.
2015-07-31 06:17:10 +02:00
Martin Pitt
ed80dff0bb networkd autopkgtest: More robust/forceful killing of dnsmasq 2015-07-26 14:57:38 +02:00
Martin Pitt
961dd059d2 Add "networkd" autopkgtest
This covers basic DHCP on IPv4 and IPv4+6 on a veth device for now.
2015-07-13 13:28:26 +02:00
Michael Biebl
3eabc6e726 Stop building the Python 3 bindings
They were split into a separate source package upstream and are now
built from src:python-systemd. See
http://lists.freedesktop.org/archives/systemd-devel/2015-July/033443.html

We keep a Build-Depends on python3 which is required to build the
documentation.
2015-07-08 17:21:51 +02:00
Martin Pitt
a0b8043597 systemd-fsckd autopkgtest: Stop using/asserting on lightdm
Just check that default.target is active. lightdm is prone to fail in test
environments, and fiddling with it in two other autopkgtests is sufficient.
2015-07-01 12:05:57 +02:00
Martin Pitt
aa27188d1f boot-and-services, display-managers autopkgtests: Install and configure dummy X.org driver
So that these work in headless machines/VMs.
2015-07-01 10:22:36 +02:00
Martin Pitt
9380efd9ee ifupdown-hotplug autopkgtest: Fix interfaces.d config file name
Different cloud/desktop environments have different ways of including
/etc/network/interfaces.d/, try to get along wit either and skip the test if
interfaces.d/ does not get included at all.
2015-06-19 06:05:28 +02:00
Michael Biebl
e05826cb0b Fix typo: persistant → persistent, thanks lintian 2015-06-18 15:36:21 +02:00
Martin Pitt
77fca23cb9 ifupdown-hotplug autopkgtest: Put back alternative *.cfg suffix
Older ifupdown versions apparently require a suffix, so provide a symlink for
it. Follow-up fix for 775ec4755.
2015-06-16 17:46:56 +02:00
Martin Pitt
616101286a ifupdown-hotplug: Fix cleanup
We can't have more than one trap in a shell script.
2015-06-16 12:41:02 +02:00
Martin Pitt
775ec4755b ifupdown-hotplug autopkgtest: Fix config name in interfaces.d/
It must not have a suffix in Debian. Also clean up the file after the test.
2015-06-16 12:35:34 +02:00
Martin Pitt
92bc4b1755 boot-and-services autopkgtest: Fix SeccompTest.test_failing
We need to reset scfail.service which we expect to fail. Otherwise
ServicesTest.test_no_failed fails on that when it runs later on.
2015-06-10 13:59:15 +02:00
Martin Pitt
cdea89592a debian/tests/boot-and-services: PEP-8 fixes 2015-06-10 12:59:35 +02:00
Martin Pitt
0ce4e05abc boot-and-services autopkgtest: Check that we don't get an unwanted tmp.mount
Unless /etc/fstab explicitly specifies it. This reproduces the regression of
220 to mount tmp.mount automatically.
2015-06-10 12:27:36 +02:00
Martin Pitt
cf875f3ec0 boot-and-services autopkgtest: Add SeccompTest
This verifies that SystemCallFilter works.
2015-06-10 08:21:33 +02:00
Martin Pitt
8c465164f3 ifupdown-hotplug autopkgtest: Fix systemctl status call
We expect ifup@.service on the v* side to not be running, as it's not
configured in ifupdown.
2015-06-01 12:57:21 +02:00
Martin Pitt
3df4853d9d Add ifupdown-hotplug autopkgtest
This reproduces #787263.
2015-06-01 07:54:50 +02:00
Martin Pitt
4709beb607 systemd-fsckd autopkgtest: Fix test_systemd_fsck_with_plymouth_failure
Fix plymouthd status check to work under both Debian and Ubuntu.
2015-05-28 12:23:33 +02:00
Martin Pitt
825615532d systemd-fsckd: On Debian plymouth-start stays running, adjust was_running() for that
Fixes a bunch of test failures on Debian.
2015-05-28 12:01:54 +02:00
Martin Pitt
10eaac4c3d bootchart autopkgtest: Skip test if /proc/schedstat does not exist
I. e. the kernel is missing CONFIG_SCHEDSTAT. Bootchart requires this.
2015-05-28 10:53:09 +02:00
Martin Pitt
1369a1ee42 autopkgtest: Ship/use mock fsck from debian/tests, as it's missing in the 220 tarball
Fixed upstream in commit db47294f41, this can be reverted with the next upstream
release.
2015-05-26 07:22:45 +02:00
Martin Pitt
67bfdf266f debian/tests/boot-smoke: Allow 10 seconds for systemd jobs to settle down 2015-05-19 12:27:43 +02:00
Martin Pitt
f8c4a52736 systemd-fsckd autopkgtest: Add missing plymouth test dependency 2015-05-12 10:04:57 +02:00
Martin Pitt
0931f09a80 systemd-fsckd autopkgtest: Stop assuming that /etc/default/grub.d/90-autopkgtest.cfg exists
This only exists in environments where autopkgtests' adt-setup-vm ran.
2015-05-12 09:48:46 +02:00
Martin Pitt
19135a9607 debian/tests/unit-config: Add tests for systemctl enable/disable on a SysV-only unit
Reproduces LP #1447807.
2015-05-05 20:45:36 +02:00
Martin Pitt
0d818a247b Reduce the initial suspend supression time from 3 minutes to 30 seconds
Also make the time configurable.
Patch cherry-picked from upstream git.

Adjust the previous test to wait for max. 31 seconds.

LP: #1444166
2015-04-18 16:59:07 +01:00
Martin Pitt
b2e4025da3 logind autopkgtest: Add test for suspending on lid switch close
This reproduces LP #1444166 (lid switch not working in the first few minutes
after boot).
2015-04-18 16:57:51 +01:00
Didier Roche
1a678b29e7 display-managers autopkgtest: Avoid lightdm failure
Use ExecStart=sleep instead of the actual lightdm binary, to avoid errors from
lightdm startup.

Drop the now unnecessary "needs-recommends" to speed up the test.
2015-04-10 11:07:23 +02:00
Martin Pitt
e7879089ef display-managers autopkgtest: Reset failed units between tests
This avoids running into restart limits and gives better test isolation.

Also put back the two second sleep, to give the DMs some time to settle down.
2015-04-08 10:50:50 +02:00
Martin Pitt
b60e2a20e7 display-managers autopkgtest: Properly wait until all jobs are finished
Instead of a static sleep, which was racy
2015-04-07 15:35:09 +02:00
Martin Pitt
5e2192a05a boot-and-services autopkgtest: Add missing python3 test dependency 2015-03-28 12:09:51 +01:00
Martin Pitt
80d0e9c53f cmdline-upstart-boot autopkgtest: Update to Ubuntu's upstart-sysv split
Test gets skipped on Debian while upstart-sysv does not yet exist there.
2015-03-26 08:34:32 +01:00
Martin Pitt
0849551008 debian/tests: Call /tmp/autopkgtest-reboot
To work with autopkgtest >= 3.11.1, which dropped the obsolete one in /sbin.
2015-03-04 22:44:36 +01:00
Didier Roche
23241ac43a Add autopkgtests for systemd-fsckd
They are mostly testing the robustness of the various daemons:
 - starting with or without plymouth
 - surviving kill of fsck, systemd-fsckd, systemd-fsck, plymouth

It will be possible to extend it later on with Control+C tests on plymouth
and eventually checking the protocol output.

LP: #1427312
2015-03-03 15:13:49 +01:00
Martin Pitt
f1674f2ef4 boot-and-services autopkgtest: Check cleanup of temporary files during boot
This also adds a test for /var/tmp/ cleanup. As
Bring-tmpfiles.d-tmp.conf-in-line-with-Debian-defaul.patch disables /var/tmp/
cleanup (see Debian #675422), comment out that check.

This reproduces #779169.
2015-02-25 09:49:01 +01:00
Martin Pitt
38a66b5f41 boot-and-services and display-manager autopkgtest: Add systemd-sysv as proper test dependency
This avoids having to explicitly apt-get installing it. This works now also
under Ubuntu 15.04.
2015-02-25 08:19:10 +01:00
Martin Pitt
a174d7a7f6 Downgrade requirement for some autopkgtests from machine to container isolation
timedated, hostnamed, localed-locale, and logind autopkgtests are still flaky
in a container, but that's at least partially to bugs in autopkgtest itself.
There is no reason why they should not work in a container.
2015-02-24 16:08:32 +01:00
Martin Pitt
bb8bab30b3 autopkgtests: Factorize out "assert.sh" utility functions
Use them in the tests for useful failure messages.
2015-02-24 16:00:22 +01:00
Martin Pitt
f65f513a40 Add "bootchart" autopkgtest
This spots regressions like in LP #1423867
2015-02-24 15:16:36 +01:00
Martin Pitt
ee41f0f3b5 Make debian/tests/boot-smoke executable 2015-02-24 07:23:56 +01:00
Martin Pitt
c2253eb13e debian/tests/boot-and-services: Reboot also if lightdm was just installed but isn't running yet 2015-02-23 09:15:13 +01:00
Martin Pitt
13f3b99eda debian/tests/boot-and-services: Skip AppArmor test if AppArmor is not enabled 2015-02-23 07:49:25 +01:00
Martin Pitt
b188f774d0 Add missing python3 test dependency to cmdline-upstart-boot and display-managers autopkgtests 2015-02-23 07:46:30 +01:00
Martin Pitt
60089bfd1e debian/tests/localed-locale: Set up locale and keyboard default files on a minimal unconfigured testbed 2015-02-23 07:33:22 +01:00
Martin Pitt
75f8479087 Add "boot-smoke" autopkgtest: Test 20 successful reboots in a row
Also check that there are no connection timeouts or stalled jobs.

This reproduces the regression in LP: #1423811
2015-02-22 18:33:58 +01:00
Martin Pitt
f9ac762762 debian/tests/boot-and-services: Move to using /var/lib/machines/
/var/lib/containers is deprecated.
2015-02-18 09:29:02 +01:00
Martin Pitt
37aaa7fd86 boot-and-services autopkgtest: Add CgroupsTest to check cgroup creation/cleanup behaviour
This reproduces #777601 and verifies the fix for it.
2015-02-13 10:53:14 +01:00
Martin Pitt
d227128f77 Add unit-config autopkgtest
This checks systemd unit/sysv init enabling and disabling via systemctl. This
also reproduces #777613.
2015-02-11 10:00:59 +01:00