Commit 3f3b71a9 authored by Martin Pitt's avatar Martin Pitt
Browse files

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.
parent 71232687
......@@ -7,6 +7,13 @@ systemd (208-7) UNRELEASED; urgency=medium
[ Jon Severinsson ]
* Cherry-pick upstream fix for journal file permissions.
[ Martin Pitt ]
* 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.
-- Michael Biebl <biebl@debian.org> Thu, 17 Jul 2014 00:48:14 +0200
systemd (208-6) unstable; urgency=medium
......
#!/bin/sh
# autopkgtest check: Test various libsystemd* APIs
# (C) 2013 Canonical Ltd.
# autopkgtest check: Test build against libsystemd-login-dev
# (C) 2014 Canonical Ltd.
# Author: Martin Pitt <martin.pitt@ubuntu.com>
set -e
......@@ -19,21 +19,15 @@ int main(int argc, char **argv)
int res;
res = sd_login_monitor_new(NULL, &mon);
if (res < 0) {
fprintf(stderr, "sd_login_monitor_new failed with value %i\n", res);
return 1;
}
assert(sd_login_monitor_get_fd(mon) > 0);
sd_login_monitor_unref(mon);
if (res >= 0)
sd_login_monitor_unref(mon);
return 0;
}
EOF
gcc -Wall -Werror -o loginmonitor loginmonitor.c `pkg-config --cflags --libs libsystemd-login`
echo "loginmonitor build: OK"
echo "build: OK"
[ -x loginmonitor ]
./loginmonitor
echo "loginmonitor run: OK"
echo "run: OK"
......@@ -2,6 +2,5 @@ Tests: timedated hostnamed localed-locale localed-x11-keymap logind
Depends: systemd, libpam-systemd, acl
Restrictions: needs-root isolation-machine
Tests: api
Depends: systemd, libpam-systemd, libsystemd-login-dev, build-essential, pkg-config
Restrictions: isolation-machine
Tests: build-login
Depends: libsystemd-login-dev, build-essential, pkg-config
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment