Commit Graph

350 Commits

Author SHA1 Message Date
Luca Boccassi
cde07844e6 d/t/control: install squashfs-tools for upstream test
Required by TEST-50-DISSECT since upstream PR:
https://github.com/systemd/systemd/pull/16046
2020-11-12 21:22:59 +01:00
Dan Streetman
89b1131248 d/t/upstream: convert 'blacklist' term to 'deny-list'
Support transition for upstream-ci from
https://github.com/systemd/systemd/pull/16262
2020-11-12 21:22:59 +01:00
Dan Streetman
e530c346bd Add libzstd-dev and zstd as build and test deps
For upstream PR:
https://github.com/systemd/systemd/pull/15422
2020-07-23 11:54:27 +00:00
Martin Pitt
d388b5d3e5 debian/tests/localed-locale: Fix for environments without en_US.UTF-8
Unconditionally back up/restore locale configuration files and generate
en_US.UTF-8. Previously the test failed in environments which have some
locale other than en_US.UTF-8 in /etc/default/locale.

Also fix the assertion of /etc/locale.conf not being present after
localectl. This only applies to Debian/Ubuntu tests, not upstream ones
(see Use-Debian-specific-config-files.patch)
2020-07-14 17:41:59 +02:00
Dan Streetman
898358a430 d/t/storage: check for ext2 or ext4 fs when using crypttab 'tmp' option
https://github.com/systemd/systemd/pull/15853
2020-07-05 19:21:55 +02:00
Dan Streetman
1300eeb4be d/t/upstream: use --directory or --file param for journalctl
properly tell journalctl if the journal to parse is a dir or file
2020-07-05 19:21:46 +02:00
Dan Streetman
35bde17b60 d/t/upstream: capture new merged 'system.journal' from tests
This was changed with the upstream PR:
https://github.com/systemd/systemd/pull/15281
2020-07-05 19:21:35 +02:00
Michael Biebl
f28333a0f1 d/t/boot-and-services: use canonical name for NetworkManager service 2020-07-05 10:48:05 +02:00
Balint Reczey
3f13216aae debian/tests/boot-and-services: Handle missing fstab
LP: #1877078
2020-05-26 16:30:12 +02:00
Dan Streetman
b8e583b980 d/t/logind: use grep -s when checking /sys/power/state
Some kernels in Ubuntu (e.g. linux-kvm) do not enable CONFIG_PM, which
results in stderr output when the logind test tries to grep the power
state file, causing the test to fail.  The test already handles skipping
the test if suspend isn't supported, so just use -s to suppress grep
from printing to stderr if the file doesn't exist.
2020-03-25 15:00:06 -04:00
Michael Biebl
25fdd3fa06 debiant/tests/udev: replace deprecated ADTTMP with AUTOPKGTEST_TMP 2019-11-08 23:50:42 +01:00
Dan Streetman
1d407ce943 d/t/upstream: change BLACKLIST env var into per-test file that upstream can control
Currently, the 'upstream' test runs all upstream-provided tests at tests/TEST-*,
except for any that are in a hardcoded list contained in this test.

Any change to the hardcoded blacklist involves patching the debian repo, which is
not an ideal way for upstream systemd to manage a hopefully temporary blacklist of
problematic tests.

There was discussion around making the blacklist entirely provided by an upstream
env var, configured in the upstream webhooks that control the Ubuntu CI tests,
but that results in 2 problems; 1) Debian would no longer be able to easily
control its own blacklist, and 2) upstream would only have an all-or-none control
over the blacklist, meaning that it could only enable or disable any specific
test for all PRs; it could not enable a test for only a specific PR that was
attempting to fix the flaky test (for example).

This approach moves blacklist control into the systemd tests themselves, by changing
the 'upstream' test to look for a file in the test directory, and skipping the test
if such file is found.  This way, Debian (and Ubuntu and other Debian derivatives)
can continue to manage their own blacklist, but also upstream can control
the blacklist for individual tests on a per-PR basis.

For example, if upstream has the file 'tests/TEST-01-BASIC/blacklist-ubuntu-ci'
in its repo, Ubuntu CI will skip this test for all PRs opened.  Then, a PR can
be opened that both fixes the test, as well as removes this file.  The Ubuntu CI
will then run the test, but only for the PR that attempts to fix it.  Once that
PR is merged, all future tests will then run the fixed test.

The specific naming of the per-test blacklist file, for tests run from the
upstream repo, is either "blacklist-ubuntu-ci" to completely blacklist the test
on all archs, or "blacklist-ubuntu-ci-$DPKGARCH" to blacklist the test only
for a specific arch, for example "blacklist-ubuntu-ci-amd64".  For tests run
from Debian (or Ubuntu), which are run without the TEST_UPSTREAM param set,
the blacklist filename is 'blacklist-upstream-ci[-$DPKGARCH]'.

Note that the $DPKGARCH is specified as the value returned by
'dpkg --print-architecture', not the value returned from 'uname -m' (e.g.
to blacklist a test for intel 64-bit, 'amd64' should be used, not 'x86_64').
This naming matches the title of the ubuntu tests, such as 'bionic-amd64',
'bionic-arm64', etc.
2019-10-17 06:00:36 -04:00
Dan Streetman
c9865ca6b5 d/t/control: install seabios for upstream test
Some archs (at least arm64) qemu implementation require the vga bios.
2019-08-30 23:18:55 +00:00
Dan Streetman
de9338cf56 d/t/control: upstream test requires qemu-system-ppc on ppc64el 2019-08-30 23:18:55 +00:00
Michael Biebl
af25bbb8f6 d/t/boot-smoke: check for NetworkManager instead of D-Bus activated polkitd
polkit.service is started on-demand via D-Bus activation. This means it
is not a good indicator if a boot was successful. Instead check if
NetworkManager is running as it is started via multi-user.target.

Closes: #934992
2019-08-21 00:11:44 +02:00
Dan Streetman
3e5879804c d/t/boot-smoke: remove check for running jobs
The check for is-system-running handles verifying that systemd completes
all its jobs during startup, making this test redundant.  Also, since the
testbed can (and does) start more jobs after is-system-running, this test
can provide a false negative if any of those jobs continue running after
this check's timeout.
2019-08-12 11:24:55 -04:00
Dan Streetman
8e9bbcfe38 d/t/boot-smoke: call fail if pidof polkitd fails 2019-08-12 11:24:55 -04:00
Dan Streetman
d0ada35331 d/t/boot-smoke: wait for is-system-running
There is currently no delay to wait for is-system-running to reach running
or degraded, so it's very possible for there to be running jobs.  This adds
a delay until is-system-running is 'running' or 'degraded', and gathers
extra artifacts if the system is 'degraded'.

Additional details are in this Ubuntu bug:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1825997

Note that bug description states:
"This patch is not required for debian, because debian's boot-smoke does
not include the wait for systemctl is-system-running", however this patch
adds that wait, because without it, the check for running jobs can easily
fail, if the system isn't fully running yet.
2019-08-12 11:24:55 -04:00
Dan Streetman
f6d63ec4e1 d/t/boot-smoke: gather still running jobs in fail() 2019-08-12 11:24:53 -04:00
Dan Streetman
dc215aee10 d/t/boot-smoke: in fail() set +e so errors are ignored while gathering data 2019-08-12 11:24:50 -04:00
Dan Streetman
90298d3e23 d/t/boot-smoke: pass failure reason to fail() to print instead of separate echo 2019-08-12 10:42:28 -04:00
Dan Streetman
ffbe3afd1a d/t/storage: fail if socket info not in ask_password contents 2019-07-25 11:54:45 -04:00
Dan Streetman
b25028f63e d/t/storage: convert password agent into normal Thread
There is no need to fork() a password agent; if it's a normal Thread
then it can generate testcase failures and can be easily stopped
and join()ed.
2019-07-25 11:54:45 -04:00
Dan Streetman
9ff84f7786 d/t/storage: use short timeout waiting for scsi_debug block dev to appear 2019-07-25 11:54:45 -04:00
Dan Streetman
54fce9cf49 d/t/storage: manage scsi_debug using add_hosts
This allows each test to run independently using their own untouched
scsi device, without the need to rmmod/modprobe the module.

Closes: #929728
2019-07-25 11:54:40 -04:00
Dan Streetman
e44222a95c d/t/storage: don't search for 'scsi_debug' in ask_password
A previous commit changed the plaintext_name to a unique per-test name,
so there is no need to match the ask_password content on 'scsi_debug' now,
since just matching the plaintext_name should be unique.
2019-07-24 14:15:09 -04:00
Dan Streetman
753da881de d/t/storage: wait for service to start, only stop if active
This removes the systemctl start, as the service should already be
running (or starting, or failed).  Instead, just wait for the service
to actually reach 'active' or 'failed' state.  Then, only stop the
service if its state is 'active'.

Previous attempts to fix hung or flaky test runs included adding a start
before the stop, but the start-the-stop calls can lead to cancelled jobs
instead of a properly stopped service, which is again flaky.
2019-07-24 14:15:09 -04:00
Dan Streetman
f4f6a47596 d/t/storage: increase wait for plaintext_dev from 5 to 30 seconds
Also change the wait time from magic number into variable, and fix
typo in failure message.
2019-07-24 14:15:09 -04:00
Dan Streetman
02df3e5aa4 d/t/storage: change plaintext_name to include testname
Setting the plaintext name to include the testname makes debugging failures
easier.

Also for convenience, create service_name field in setup method, for use
in tests and/or teardown method.
2019-07-24 14:15:09 -04:00
Dan Streetman
7e35c1e64c d/t/control: upstream test requires dmeventd
Specifically, test/TEST-02-CRYPTSETUP/test.sh calls install_dmevent
which requires dmeventd to be installed.
2019-07-17 20:46:10 -04:00
Dan Streetman
bf96c9cb34 d/t/upstream: always cleanup after (and before) each test
run the 'clean' target before setup/run, to match the upstream
'all' target's behavior; also the clean (again) target must be
run separately, as the failure of setup or run will stop make,
and cleanup won't be done if called in the same make line.
2019-07-17 20:46:10 -04:00
Dan Streetman
012e932cca d/t/control: mark udev test skippable
The udev test will return 77 (from udev-test.pl) if it can't
setup the test environment; mark it skipped in that case.
2019-07-17 20:46:10 -04:00
Dan Streetman
116ae74377 d/t/control: root-unittests can break networking, add breaks-testbed 2019-07-17 20:46:10 -04:00
Dan Streetman
37fa56d3c0 d/t/timedated: replace systemctl is-active with systemctl show
is-active return code isn't the correct way to verify a service is
fully stopped; instead use show --property=ActiveState to verify it
is 'inactive'

This also could use the text output of is-active, but (per manpage)
the show command is "intended to be used whenever computer-parsable
output is required."

systemctl is-active returns non-zero even while the service is
'deactivating', but not actually stopped, which allows the testcase
to fail intermittently on slow machines, if the service hasn't
actually stopped before reaching the check to verify the service
stopped.

For example:
$ systemctl is-active systemd-timesyncd
active
$ timedatectl set-ntp false ; systemctl is-active systemd-timesyncd ; echo $?
deactivating
3

So the test code which does:
$ while systemctl is-active --quiet systemd-timesyncd; do sleep 1; done
will never actually perform that sleep.
2019-07-17 20:45:06 -04:00
Dan Streetman
7806ce8dde d/t/upstream: add TEST-30, TEST-34 to blacklist
Unfortunately, these tests are failing on i386 builds, very
intermittently; this causes headaches for upstream systemd
maintainers and submitters, when the Ubuntu CI fails, because
the failure isn't related to the PRs the tests are running for,
and determining that from the Ubuntu CI log file and other artifacts
is very time-consuming.

This just blacklists the tests for now, until we can figure out why
they are failing and fix them.

TEST-30 is discussed:
https://github.com/systemd/systemd/issues/12268

TEST-34 is discussed:
https://github.com/systemd/systemd/issues/12932
2019-07-08 20:55:06 -04:00
Dan Streetman
a223575e53 d/t/boot-and-services: check for any kernel message, not just first kernel message
The test currently looks for the first(ish) kernel log message, which may
not be present.  If it's not, the test case fails.

This isn't the fault of systemd/journald, the problem is the kernel filled
up its klog buffer before we started journald to read them.  This can be
caused by a too-small kernel klog buffer, or could be caused by a large
number of kernel boot-time messages.  More details are in this Ubuntu bug:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1830479

While catching all the kernel log messages since boot is important, this
test case is testing systemd, not the kernel, and should not fail if
the kernel's log buffer is filling during boot.

This problem has caused upstream systemd to disable Ubuntu CI on arm64
for many months:
https://github.com/systemd/systemd/issues/11104

Closes: #929730
2019-06-27 14:42:20 -04:00
Dan Streetman
acabce1ac0 d/t/boot-and-services: fix test_failing()
BugLink: https://bugs.launchpad.net/bugs/1831296

The test case was checking for a failing result of 'code=killed', but
the recent change now causes the failure to be 'code=dumped'.  The
test should pass if the result is either.
2019-06-21 16:36:10 -04:00
Martin Pitt
b96b67cac4 boot-and-service autopkgtest: Ensure graphical.target gets booted
Follow-up to commit fbdd60c51. LXC's debian template sets
multi-user.target by default, so gdm never gets started.

Gbp-Dch: Ignore
2019-04-03 23:50:19 +02:00
Martin Pitt
fbdd60c51a Enable boot-and-service autopkgtest in containers
- Skip tests which can't work in containers.
- Add missing rsyslog test dependency.
- e2scrub_reap.service fails in containers, ignore (filed as #926138)
- Relax pgrep pattern for gdm, as there's no wayland session in
  containers.
2019-03-31 22:56:33 +02:00
Martin Pitt
c923cd4a7e Enable udev autopkgtest in containers
This test doesn't actually need udev.service (which is disabled in
containers) and works fine in LXC.
2019-03-31 21:48:42 +02:00
Martin Pitt
558fae47bf Revert "debian/tests/boot-smoke: Create "render" system group"
This reverts commit 2ab793c735.

Commit 8ca0c4921b creates the group in the package now.

Gbp-Dch: Ignore
2019-03-14 21:50:00 +01:00
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
Martin Pitt
c09b438cf0 root-unittest: Drop obsolete FIXME
We actually do want to run "udev" as a separate test, as that needs
machine isolation while all the others only require container isolation.
2017-03-05 14:30:47 +01:00
Martin Pitt
a2cc9d4459 udev autopkgtest: Drop obsolete sys.tar.xz fallback
This was only necessary for supporting 232 as well.
2017-03-05 14:30:47 +01:00
Michael Biebl
b691eb8cd6 Fix location of installed tests 2017-03-03 17:51:42 +01:00
Martin Pitt
639184fc39 root-unittests autopkgtest: Skip test-udev
It has its own autopkgtest and needs some special preparation. At some
point that should be merged into root-unittests, but let's quickfix this
to unbreak upstream CI.
2017-03-03 16:58:29 +01:00
Martin Pitt
9da6d428c0 debian/tests/udev: Adjust path for "make install-tests" layout
Also, "make install-tests" apparently forgets to install test-udev, so
do that manually for now.

Gbp-Dch: Ignore
2017-03-02 16:03:40 +01:00
Martin Pitt
5914346127 Use "make install-tests" for shipped unit tests
This installs the necessary test data along with the programs and thus
we can greatly reduce the blacklist in debian/tests/root-unittests and
also simplify debian/rules.
2017-03-02 12:07:01 +01:00
Martin Pitt
95391f1ae4 logind autopkgtest: Adjust to work in containers
Skip the suspend and ACL test when running in containers, and relax the
isolation restriction.
2017-02-21 21:47:38 +01:00
Martin Pitt
9604489bfe boot-smoke autopkgtest: Run in containers, too
There is no particular reason why this wouldn't work in containers, and
it works fine in LXC.
2017-02-21 21:40:08 +01:00
Martin Pitt
862554e544 boot-and-services autopkgtest: Skip CgroupsTest on unified hierarchy
The test needs some serious reworking for the unified hierarchy (and
should be replaced with an upstream test too), so just skip it for now.
2017-02-20 11:15:45 +01:00