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
Martin Pitt
a3d4a06ef7
Fix debian/tests/logind test under sysvinit/upstart
...
With dropped systemd-logind-launch we don't have a visible
/sys/fs/cgroup/systemd/ any more under cgmanager. So adjust the test to check
/proc/self/cgroup instead.
2015-02-10 10:29:55 +01:00
Martin Pitt
e2ff9742d3
boot-and-services autopkgtest: Ensure that there are no failed units
...
Ignore a failed systemd-modules-load.service, as that notoriously fails with
cruft in /etc/modules.
2015-02-01 22:43:40 +01:00
Martin Pitt
f5f8f321cd
Add autopkgtest for one-time boot with upstart when systemd-sysv is installed
...
This test only works under Ubuntu which has a split out upstart-bin package,
and will be skipped under Debian.
2015-01-13 11:16:52 +01:00
Martin Pitt
9f72005978
build-login autopkgtest: Build against libsystemd, not libsystemd-login any more
2014-12-17 09:51:33 +01:00
Martin Pitt
0d5a26bdc2
build-logind autopkgtest: Re-enforce that sd_login_monitor_new() succeeds
...
Restrict this test to isolation-container, as this will likely fail in schroots.
Reproduces LP #1400203
2014-12-17 09:23:25 +01:00
Martin Pitt
bcdf8f9e46
boot-and-services: Robustify Nspawn tests, and show systemd-nspawn output on failure
2014-12-16 08:01:16 +01:00
Martin Pitt
344ae794e5
boot-and-services AppArmor autopkgtest: Stop checking the dmesg log
...
It is racy as sometimes message bursts are suppressed.
2014-12-15 10:55:02 +01:00
Didier Roche
e20b1a1838
Reset display-manager symlink to match /e/X/d-d-m
...
Do it even if display-manager.service was removed and adapt
the autopkgtests for this.
LP: #1400680
2014-12-10 10:49:10 +02:00
Didier Roche
e3fe7c22e9
Add display managers autopkg tests
2014-12-10 09:21:40 +02:00
Martin Pitt
20bd9ec265
boot-and-services autopkgtest: Give test apparmor job some time to actually finish
2014-12-01 17:04:32 +01:00
Martin Pitt
99fa4f227e
boot-and-services autopkgtest: Test AppArmor confined units
...
Test case for LP #1396270
2014-11-28 10:52:32 +01:00
Martin Pitt
160d4953b2
Make systemd-nspawn@.service work out of the box
...
- Pre-create /var/lib/container with a secure mode (0700) via tmpfiles.d.
- Add new try-{guest,host} modes for --link-journal to silently skip
setting up the guest journal if the host has no persistant journal.
- Extend boot-and-services autopkgtest to cover systemd-nspawn@.service.
Patch cherry-picked from upstream git.
Closes : #770275
2014-11-25 12:02:21 +01:00
Martin Pitt
91b71fcbba
Add nspawn test to boot-and-services autopkgtest
2014-11-20 09:37:59 +01:00
Martin Pitt
457f782ee1
logind autopkgtest: Fix stderr output in waiting loop for scsi_debug
2014-11-19 14:29:36 +01:00
Martin Pitt
af3428ce4d
Add boot-and-services autopkgtest
...
Check booting with systemd-sysv and that the most crucial services behave as
expected.
2014-11-19 13:28:06 +01:00
Martin Pitt
1faef90590
Adjust debian/tests/timedated to current upstream version
...
"Timezone" got renamed to "Time zone".
2014-10-26 19:46:27 -04:00
Martin Pitt
f298e7495f
Adjust debian/tests/hostnamed to current upstream version
...
Architecture: was removed, check Kernel: instead.
2014-10-26 19:43:59 -04:00
Martin Pitt
eb5ba93831
Add simple autopkgtest for python3-systemd
2014-08-04 08:44:49 +02:00
Martin Pitt
3f3b71a903
Clean up libsystemd-login-dev autopkgtest
...
Rename "api" autopkgtest to "build-login", and stop requiring that
sd_login_monitor_new() succeeds. It doesn't in many environments like schroot
or after upgrades from < 204, and the main point of the test is to check that
libsystemd-login-dev has correct contents and dependencies. Drop
"isolation-machine" requirement.
2014-07-21 15:29:56 +02:00
Martin Pitt
3e589263a1
Add autopkgtests
...
This covers smoke-testing logind, hostnamed, timedated, localed, and a
compile/link/run test against libsystemd-login-dev.
2014-04-26 20:53:53 +02:00