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

Proposed by Vibhav Pant
Status: Merged
Merged at revision: 27
Proposed branch: lp:~vibhavp/ubuntu/raring/libcaca/add-autopkgtest
Merge into: lp:ubuntu/raring/libcaca
Diff against target: 77 lines (+46/-1)
4 files modified
debian/changelog (+6/-0)
debian/control (+2/-1)
debian/tests/build (+36/-0)
debian/tests/control (+2/-0)
To merge this branch: bzr merge lp:~vibhavp/ubuntu/raring/libcaca/add-autopkgtest
Reviewer Review Type Date Requested Status
Martin Pitt Approve
Review via email: mp+147505@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Martin Pitt (pitti) wrote :

Thanks! Merging with bumping copyright year.

review: Approve

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-04-06 23:14:18 +0000
3+++ debian/changelog 2013-02-09 10:55:23 +0000
4@@ -1,3 +1,9 @@
5+libcaca (0.99.beta18-1ubuntu1) raring; urgency=low
6+
7+ * Add simple autopkgtest to the package.
8+
9+ -- Vibhav Pant <vibhavp@ubuntu.com> Sat, 09 Feb 2013 16:16:08 +0530
10+
11 libcaca (0.99.beta18-1) unstable; urgency=low
12
13 * New upstream release.
14
15=== modified file 'debian/control'
16--- debian/control 2012-04-06 23:14:18 +0000
17+++ debian/control 2013-02-09 10:55:23 +0000
18@@ -1,7 +1,8 @@
19 Source: libcaca
20 Section: libs
21 Priority: optional
22-Maintainer: Sam Hocevar <sho@debian.org>
23+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
24+XSBC-Original-Maintainer: Sam Hocevar <sho@debian.org>
25 Build-Depends: debhelper (>= 8.1.3~), pkg-config, libncursesw5-dev, libslang2-dev, libx11-dev, libimlib2-dev, freeglut3-dev, texlive-fonts-recommended, doxygen-latex, ruby1.8-dev
26 Standards-Version: 3.9.3
27 Vcs-Svn: svn://svn.debian.org/sam-hocevar/pkg-misc/unstable/libcaca
28
29=== added directory 'debian/tests'
30=== added file 'debian/tests/build'
31--- debian/tests/build 1970-01-01 00:00:00 +0000
32+++ debian/tests/build 2013-02-09 10:55:23 +0000
33@@ -0,0 +1,36 @@
34+#!/bin/sh
35+# autopkgtest check: Build and run a program against libcaca, to verify that
36+# the headers and pkg-config file are installed correctly
37+# (C) 2012 Canonical Ltd.
38+# Author: Vibhav Pant <vibhavp@ubuntu.com>
39+
40+set -e
41+
42+WORKDIR=$(mktemp -d)
43+trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
44+cd $WORKDIR
45+cat <<EOF > caca_test.c
46+#include <caca.h>
47+#include <stdio.h>
48+#include <assert.h>
49+
50+int main(void)
51+{
52+ caca_canvas_t *c;
53+ printf("Testing libcaca version %s \n", caca_get_version());
54+
55+ c = caca_create_canvas(20,30);
56+ assert(c != NULL);
57+
58+ assert(caca_free_canvas(c) != -1);
59+
60+ return 0;
61+}
62+EOF
63+
64+gcc -o caca_test caca_test.c `pkg-config --cflags --libs caca` -Wall -Werror
65+echo "build: OK"
66+[ -x caca_test ]
67+export TERM=linux
68+./caca_test
69+echo "run: OK"
70
71=== added file 'debian/tests/control'
72--- debian/tests/control 1970-01-01 00:00:00 +0000
73+++ debian/tests/control 2013-02-09 10:55:23 +0000
74@@ -0,0 +1,2 @@
75+Tests: build
76+Depends: libcaca-dev, build-essential, pkg-config
77\ No newline at end of file

Subscribers

People subscribed via source and target branches

to all changes: