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
Martin Pitt
97e951d6ad
debian/tests/networkd: Skip test_coldplug_dhcp_ip6 when running against upstream
...
This test is brittle there. To be investigated.
2016-02-19 08:25:11 +01:00
Martin Pitt
29bc0c4060
debian/tests/boot-and-services: Skip journal test for test_bash_crash when running against upstream
...
This currently fails most of the time. To be investigated.
2016-02-18 19:18:57 +01:00
Martin Pitt
ca5b98fb13
debian/tests/systemd-fsckd: Use grub.d/50-cloudimg-settings.cfg as a template for generating our custom one
...
... instead of 90-autopkgtest.cfg. The latter does not exist on non-x86
architectures and is not relevant for this test.
This should fix the non-rebooting ppc64el instances in Ubuntu CI.
2016-02-18 17:54:30 +01:00
Martin Pitt
388a7e7658
debian/tests/boot-and-services: Explicitly sync the journal and reduce timeout again
...
This refines 8637e11 . Thanks Evgeny Vereshchagin for the suggestion!
2016-02-18 16:05:38 +01:00
Martin Pitt
8637e1162b
debian/tests/boot-and-services: Increase timeouts of test_bash_crash from 5 to 50 seconds
2016-02-18 15:32:58 +01:00
Martin Pitt
4f1bf9f6b4
Speed up autopkgtests
...
debian/tests/control: Rearrange tests and avoid removing test dependencies to
minimize testbed resets. This considerably speeds up running the autopkgtests.
Wrap test dependencies.
2016-02-10 12:37:23 +01:00
Martin Pitt
d3729a6d7b
debian/tests/control: Reorder tests
...
Add a comment which ones should not be run for an upstream build: In
particular, systemd-fsckd relies on a downstream patch, and
cmdline-upstart-boot is not relevant for testing upstream.
2016-02-10 09:55:06 +01:00
Martin Pitt
52e789f06e
Drop debian/tests/ifupdown-hotplug
...
The units moved into ifupdown, so the test should go there too.
See <https://bugs.debian.org/814312 >.
2016-02-10 09:19:33 +01:00
Martin Pitt
a863860881
debian/tests/storage: Remove duplicated code
2016-02-09 10:49:03 +01:00
Martin Pitt
b231b2a125
debian/tests/systemd-fsckd: Tame overly strict test for failed plymouth unit
...
This is a race condition with plymouthd auto-stopping.
LP: #1543144
2016-02-08 22:45:11 +01:00
Martin Pitt
032c1526f8
Drop Fix-up-tmpfiles.d-permissions-properly.patch
...
- /run/lock is already created differently by
Make-run-lock-tmpfs-an-API-fs.patch, and contradicts to that.
- /run/lock/lockdev/ isn't being used anywhere and will be dropped
upstream soon; apply that patch separately as
tmpfiles-drop-run-lock-lockdev.patch.
- Move dropping of "group:wheel" (which has never existed in Debian) into
debian/rules, to also catch occurrences in other parts of the file which
the static patch would overlook. This should ideally be fixed upstream
(https://github.com/systemd/systemd/issues/2492 )
Remove the hack in debian/tests/boot-and-services as this is now unnecessary.
2016-02-01 13:36:09 +01:00
Martin Pitt
8943853783
debian/tests/boot-and-services: Adjust for testing upstream builds
...
Skip tests which are known to fail/not applicable with testing upstream builds.
In that mode, fix the groups in tmpfiles.d files which don't exist on Debian
(to be fixed upstream).
For this we currently need some seddery in tmpfiles.d/, until they get fixed
upstream.
2016-01-31 22:10:29 +01:00
Martin Pitt
051dc85c84
debian/tests/boot-and-services: Check for reaching graphical.target instead of default.target
...
The latter is a session systemd state only, but we want to check the system
state.
2016-01-31 22:10:29 +01:00
Martin Pitt
dc96070acc
debian/tests/localed-x11-keymap: Adjust for testing upstream builds
...
Test /etc/X11/xorg.conf.d/00-keyboard.conf if $TEST_UPSTREAM is set.
2016-01-31 22:10:29 +01:00
Martin Pitt
2a8b53fef8
debian/tests/localed-locale: Adjust for testing upstream builds
...
Check /etc/locale.conf if $TEST_UPSTREAM is set
2016-01-31 22:10:29 +01:00
Martin Pitt
8618891905
debian/tests/timedated: Adjust for testing upstream builds
...
Verify /etc/localtime symlink. Skip verifying the /etc/timezone file (which is
Debian specific) if $TEST_UPSTREAM is set.
2016-01-31 22:10:29 +01:00
Martin Pitt
9b6e890efc
Add "storage" autopkgtest
...
Initially this covers some basic use cases with LUKS cryptsetup devices.
2015-11-30 07:48:49 +01:00
Martin Pitt
6bd3257e55
debian/tests/boot-and-services: Adjust checked log message for container shutdown
...
Don't check for "Requesting system poweroff" log message in nspawn test,
current upstream master does not write that any more. Instead check for
"Stopped Container c1".
2015-11-28 15:33:24 +01:00
Martin Pitt
46e1020e73
debian/tests/networkd: Fix failure if D-Bus is not installed in the testbed
2015-11-27 11:34:35 +01:00
Martin Pitt
b4e6ceef66
debian/tests/networkd: Fix noisy failure if systemd-run networkd-test-router.service fails
2015-11-27 11:29:31 +01:00
Martin Pitt
60366d409d
boot-and-services and networkd tests: Simplify timeout loops
2015-11-27 11:15:13 +01:00
Martin Pitt
2bfa2091e2
debian/tests/networkd: For IPv6 tests, also wait for IPv4 address to arrive
...
s-n-wait-online already exits after getting an IPv6 address, but we verify
both.
2015-11-27 11:12:40 +01:00
Martin Pitt
db2e7f9c2a
debian/tests/networkd: Fix resolv.conf check for many nameservers
...
If /etc/resolv.conf already has three nameservers, accept that too (as then the
additional test one can't be added any more).
2015-11-23 10:39:14 +01:00
Martin Pitt
c1b580de19
debian/tests/boot-and-services: Fix test_bash_crash()
...
Wait until bash crash stack trace is in the journal before asserting on it.
Also relax RE to work on non-x86 architectures. On e. g. ppc64el we merely get
Stack trace of thread 1091:
#0 0x00003fff9ad4f3b8 kill (libc.so.6)
#1 0x0000000010068370 kill_pid (bash)
2015-11-23 09:32:30 +01:00
Martin Pitt
d4874a5ca6
debian/tests/networkd: On failure, only show journal for current test
2015-11-23 08:15:45 +01:00
Martin Pitt
cc625078aa
debian/tests/networkd: Add networkd router-side tests
...
Add router setup using an (isolated) networkd process for configuring the veths
and DHCP server.
2015-11-23 08:15:45 +01:00
Martin Pitt
08c259f9e3
debian/tests/networkd: Factor out dnsmasq specific test "router" setup
...
So that we can test against other implementations. Also skip dnsmasq tests if
dnsmasq is not installed.
2015-11-23 08:15:45 +01:00
Martin Pitt
e372b9ede4
debian/tests/networkd: Adjust DHCP=ipv4 expectations
...
Even with DHCP=ipv4 networkd 228 still waits for a possible IPv6 RA, thus we
need to wait longer. Add a separate test case for DHCP=ipv4 and explicitly
disabling RA and ensure tha tthat is fast.
Drop the corresponding special cases for the "hotplug" scenarios, it's enough
to test these once.
2015-11-18 12:55:51 +01:00
Martin Pitt
20dc1992c8
debian/tests/networkd: Re-raise default timeout to 10s
...
Tests often fail with 5s.
2015-11-18 10:19:24 +01:00
Martin Pitt
b786761deb
debian/tests/networkd: Skip if networkd is already running
...
This is safer when running on real systems.
Add copyright header.
2015-11-18 10:04:57 +01:00
Martin Pitt
99d050b574
debian/tests/networkd: Show contents of test .network file on failure
2015-11-18 10:02:46 +01:00
Martin Pitt
0a815a2602
debian/tests/networkd: Fix bytes vs. string TypeError in the IPv6 polling
...
LP: #1516009
2015-11-18 09:27:57 +01:00
Martin Pitt
bf4d626111
debian/tests/networkd: Fix journalctl invocation
...
Only show current boot and disable pager.
2015-11-17 18:16:09 +01:00
Martin Pitt
bc4c895166
debian/tests/networkd: Show networkctl and journal output on failure
2015-11-17 17:21:19 +01:00
Martin Pitt
595313031d
debian/tests/networkd: Fix UnicodeDecodeError under 'C' locale
2015-11-17 16:34:10 +01:00
Martin Pitt
0e62a6ee02
debian/tests/networkd: Shorten default online timeout to 5s, add new IPv4 test cases
...
Add tests for "DHCP=all, IPv4 only, disabling RA" (which should always be
fast), "DHCP=all, IPv4 only" (which will require a longer timeout due to
waiting 12s for a potential IPv6 RA reply), and "DHCP=ipv4" (which should
always be fast).
2015-11-17 16:27:09 +01:00
Martin Pitt
9fce4e831d
debian/tests/control: Restrict boot-smoke test to isolation-machine
...
It does not currently work well in LXC.
2015-11-17 07:19:29 +01:00
Martin Pitt
244df30edd
debian/tests/boot-and-services: Ignore failures of console-setup.service
...
Work around <https://launchpad.net/bugs/1516591 >.
2015-11-16 12:52:18 +01:00
Martin Pitt
fcc879c885
debian/tests/logind: Split tests into functions
2015-11-16 12:29:15 +01:00
Martin Pitt
d9f1372712
debian/tests/logind: Skip suspend test if the kernel does not support suspend
2015-11-16 12:24:13 +01:00
Martin Pitt
fd87579b72
debian/tests/networkd: Check for systemd-networkd-wait-online in /usr as well
...
For usage in other distros and eventual upstream integration.
2015-11-16 11:06:57 +01:00
Martin Pitt
e466243193
debian/tests/boot-and-services: Fix crash journal wait loop
...
Wait until a bash crash appears in the journal, not just any crash.
2015-11-14 12:48:20 +01:00
Martin Pitt
349caad6b4
debian/tests/boot-and-services: Add test case for systemd-coredump
2015-11-13 10:01:30 +01:00
Martin Pitt
191d4e8ddb
systemd-networkd-resolvconf-update.service: Increase StartLimitBurst
...
This might be legitimately called several times in quick succession.
If that part of the "networkd" autopkgtest fails, show the journal log for that
service for easier debugging.
2015-11-13 08:43:45 +01:00
Martin Pitt
6125791074
debian/tests/logind: Ignore non-zero exit code of shutdown -c
...
This sometimes happens, fails the test, and isn't terribly important. Ignore
the exit code for now.
2015-10-15 13:32:38 +02:00
Martin Pitt
e9fade0af7
debian/tests/boot-smoke: Apply check for failed unmounts only to user systemd processes, i. e. not to pid 1
...
pid 1 sometimes fails to unmount with something like
systemd[1]: Failed unmounting /run/user/108.
2015-10-14 09:43:21 +02:00
Martin Pitt
27eb34d0fa
debian/tests/logind: Add tests for scheduled shutdown with and without wall message
2015-10-13 11:03:50 +02:00
Martin Pitt
2e4ab375bf
debian/tests/boot-smoke: Check for failed unmounts
...
This reproduces #801361 (but not in a minimal VM, just in a desktop one).
2015-10-09 11:51:10 +02:00
Martin Pitt
b1c7fd6cce
Add systemd-networkd-resolvconf-update.{path,service} units
...
These send DNS server updates from networkd to resolvconf, if installed and
enabled. As we removed if-up.d/ integration, resolvconf is not otherwise being
updated.
Adjust the test suite as the previous commit stopped waiting for if-up.d/ to
have run, so now we need to wait for resolvconf to finish.
2015-09-30 12:15:40 +02:00
Martin Pitt
9075313917
Revert networkd calling if-{up,post-down}.d/ scripts
...
About half of the existing hooks are not relevant or even actively detrimental
when running with networkd. For the relevant ones, a lot of them should be
fixed in the projects themselves (using IP_FREEBIND etc.).
This has also caused some random hangs when restarting networkd or on shutdown,
by triggering #774153 . While this needs to be fixed anyway, it makes this bug
much more apparent.
Closes : #798625
2015-09-30 09:33:24 +02:00
Martin Pitt
49e61b1f1c
debian/tests/logind: Be more verbose on failures
2015-09-22 09:04:48 +02:00
Martin Pitt
d67efc7cea
debian/tests/networkd: Check that /etc/resolv.conf gets the DHCP's nameserver
...
Only do the check if it is a symlink, i. e. dynamically managed by
systemd-resolved or resolvconf.
2015-09-09 14:40:00 +02:00
Martin Pitt
bab3f8d39e
net.agent: Only call networkd-if-up.d@.service when networkd is actually enabled or running
...
This avoids starting these units in vain if networkd is not being used. Note
that we can't just use "is-active", as these rules might already get triggered
at boot when networkd is not running yet.
2015-09-08 08:52:27 +02:00
Martin Pitt
27f7cc9f9f
Make networkd call if-up.d/ scripts when it brings up interfaces
...
With this, networkd becomes compatible with ifupdown and NetworkManager for
packages shipping hooks.
- Add debian/extra/units/networkd-if-up.d@.service: Wait for a particular
interface to be up, and call if-up.d/ for it if it is managed by
networkd. Correspondingly, call if-post-down.d/ scripts when stopping.
- debian/extra/udev-helpers/net.agent: Start/stop
networkd-if-up.d@.service when interfaces appear/go away.
- debian/tests/networkd: Verify that if-up.d/ and if-post-down.d/ scripts
get run for a networkd managed interface.
Note that if-pre-up.d/ and if-down.d/ scripts are *not* being called + (like
NetworkManager), as they are unnecessary (if-pre-up.d) and unreliable
(if-down.d).
See Ubuntu blueprint for details:
https://blueprints.launchpad.net/ubuntu/+spec/foundations-w-networkd-vs-ifupdown
2015-09-03 16:18:05 +02:00
Martin Pitt
4801c2a5ba
debian/tests/networkd: Add hotplug tests
2015-09-03 12:02:43 +02:00
Martin Pitt
a33bb77882
boot-and-services autopkgtest: Add systemd-container test dependency
...
Required for the nspawn tests.
2015-08-25 09:37:05 +02:00
Martin Pitt
33d0fb4c42
Drop "display-managers" autopkgtest
...
This is obsolete with dropped default-display-manager-generator.
2015-08-25 09:36:19 +02:00
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
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