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

Subscribers

People subscribed via source and target branches

to all changes: