Merge lp:~vibhavp/ubuntu/raring/libnotify/add-autopkgtest into lp:ubuntu/raring/libnotify

Proposed by Vibhav Pant
Status: Merged
Merge reported by: Martin Pitt
Merged at revision: not available
Proposed branch: lp:~vibhavp/ubuntu/raring/libnotify/add-autopkgtest
Merge into: lp:ubuntu/raring/libnotify
Diff against target: 103 lines (+54/-2)
5 files modified
debian/changelog (+6/-0)
debian/control (+3/-1)
debian/control.in (+2/-1)
debian/tests/build (+41/-0)
debian/tests/control (+2/-0)
To merge this branch: bzr merge lp:~vibhavp/ubuntu/raring/libnotify/add-autopkgtest
Reviewer Review Type Date Requested Status
Martin Pitt Approve
Review via email: mp+149209@code.launchpad.net
To post a comment you must log in.
13. By Vibhav Pant

remove | from test dependencies

14. By Vibhav Pant

Correct typo

Revision history for this message
Martin Pitt (pitti) wrote :

This works now, thanks! I'll apply it directly to Debian.

review: Approve
Revision history for this message
Martin Pitt (pitti) wrote :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2012-10-05 00:10:20 +0000
3+++ debian/changelog 2013-02-19 08:11:20 +0000
4@@ -1,3 +1,9 @@
5+libnotify (0.7.5-1ubuntu1) raring; urgency=low
6+
7+ * Add simple autopkgtest to package.
8+
9+ -- Vibhav Pant <vibhavp@ubuntu.com> Tue, 19 Feb 2013 12:48:04 +0530
10+
11 libnotify (0.7.5-1build1) quantal; urgency=low
12
13 * Rebuild for new armel compiler default of ARMv5t.
14
15=== modified file 'debian/control'
16--- debian/control 2012-03-27 22:24:42 +0000
17+++ debian/control 2013-02-19 08:11:20 +0000
18@@ -5,7 +5,8 @@
19
20 Source: libnotify
21 Priority: optional
22-Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
23+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
24+XSBC-Original-Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
25 Build-Depends: gnome-pkg-tools (>= 0.7),
26 cdbs (>= 0.4.93~),
27 debhelper (>= 8.1.3~),
28@@ -17,6 +18,7 @@
29 libgirepository1.0-dev (>= 0.9.12),
30 gir1.2-glib-2.0,
31 gtk-doc-tools (>= 1.14)
32+XS-Testsuite: autopkgtest
33 Uploaders: Emilio Pozuelo Monfort <pochu@debian.org>, Laurent Bigonville <bigon@debian.org>, Michael Biebl <biebl@debian.org>
34 Standards-Version: 3.9.2
35 Section: libs
36
37=== modified file 'debian/control.in'
38--- debian/control.in 2012-03-27 22:24:42 +0000
39+++ debian/control.in 2013-02-19 08:11:20 +0000
40@@ -1,6 +1,7 @@
41 Source: libnotify
42 Priority: optional
43-Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
44+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
45+XSBC-Original-Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
46 Build-Depends: gnome-pkg-tools (>= 0.7),
47 cdbs (>= 0.4.93~),
48 debhelper (>= 8.1.3~),
49
50=== added directory 'debian/tests'
51=== added file 'debian/tests/build'
52--- debian/tests/build 1970-01-01 00:00:00 +0000
53+++ debian/tests/build 2013-02-19 08:11:20 +0000
54@@ -0,0 +1,41 @@
55+#!/bin/sh
56+# autopkgtest check: Build and run a program against libnotify, to verify that
57+# the headers and pkg-config file are installed correctly
58+# (C) 2013 Vibhav Pant
59+# Author: Vibhav Pant <vibhavp@ubuntu.com>
60+
61+set -e
62+
63+WORKDIR=$(mktemp -d)
64+trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
65+cd $WORKDIR
66+cat <<EOF > libnotify_test.c
67+#include <libnotify/notify.h>
68+#include <assert.h>
69+
70+int main(void)
71+{
72+ NotifyNotification *notify;
73+ GError *error = NULL;
74+
75+ assert(notify_init("autopkgtest") == TRUE);
76+ assert(notify_is_initted() == TRUE);
77+
78+ notify = notify_notification_new("autopkgtest",
79+ "Testing libnotify",
80+ NULL);
81+ notify_notification_set_urgency(notify, NOTIFY_URGENCY_NORMAL);
82+
83+ notify_notification_set_timeout(notify, 500);
84+ notify_notification_show(notify, &error);
85+ notify_uninit();
86+ return 0;
87+}
88+EOF
89+
90+gcc -o libnotify_test libnotify_test.c \
91+`pkg-config --cflags --libs libnotify` -Wall -Werror
92+echo "build: OK"
93+[ -x libnotify_test ]
94+dbus-launch xvfb-run ./libnotify_test
95+echo "run: OK"
96
97=== added file 'debian/tests/control'
98--- debian/tests/control 1970-01-01 00:00:00 +0000
99+++ debian/tests/control 2013-02-19 08:11:20 +0000
100@@ -0,0 +1,2 @@
101+Tests: build
102+Depends: dbus-x11, notification-daemon, xvfb, libnotify-dev, pkg-config
103\ No newline at end of file

Subscribers

People subscribed via source and target branches

to all changes: