r36260 - in /desktop/unstable/gdk-pixbuf/debian: changelog control tests/ tests/build tests/control

mpitt at users.alioth.debian.org mpitt at users.alioth.debian.org
Mon Nov 12 12:30:12 UTC 2012


Author: mpitt
Date: Mon Nov 12 12:30:12 2012
New Revision: 36260

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=36260
Log:
Add debian/tests: Simple compile/link/run autopkgtest. Thanks Rafał
Cieślak! (LP: #1073528)

Added:
    desktop/unstable/gdk-pixbuf/debian/tests/
    desktop/unstable/gdk-pixbuf/debian/tests/build
    desktop/unstable/gdk-pixbuf/debian/tests/control
Modified:
    desktop/unstable/gdk-pixbuf/debian/changelog
    desktop/unstable/gdk-pixbuf/debian/control

Modified: desktop/unstable/gdk-pixbuf/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gdk-pixbuf/debian/changelog?rev=36260&op=diff
==============================================================================
--- desktop/unstable/gdk-pixbuf/debian/changelog [utf-8] (original)
+++ desktop/unstable/gdk-pixbuf/debian/changelog [utf-8] Mon Nov 12 12:30:12 2012
@@ -1,3 +1,10 @@
+gdk-pixbuf (2.26.1-2) UNRELEASED; urgency=low
+
+  * Add debian/tests: Simple compile/link/run autopkgtest. Thanks Rafał
+    Cieślak! (LP: #1073528)
+
+ -- Martin Pitt <mpitt at debian.org>  Mon, 12 Nov 2012 13:29:25 +0100
+
 gdk-pixbuf (2.26.1-1) unstable; urgency=low
 
   * New upstream bug fix release:

Modified: desktop/unstable/gdk-pixbuf/debian/control
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gdk-pixbuf/debian/control?rev=36260&op=diff
==============================================================================
--- desktop/unstable/gdk-pixbuf/debian/control [utf-8] (original)
+++ desktop/unstable/gdk-pixbuf/debian/control [utf-8] Mon Nov 12 12:30:12 2012
@@ -72,6 +72,7 @@
 Replaces: libgtk2.0-dev (<< 2.21.3),
           libgtk2.0-bin (<< 2.21.3),
           gir-repository-dev
+XS-Testsuite: autopkgtest
 Description: GDK Pixbuf library (development files)
  The GDK Pixbuf library provides:
   - Image loading and saving facilities.

Added: desktop/unstable/gdk-pixbuf/debian/tests/build
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gdk-pixbuf/debian/tests/build?rev=36260&op=file
==============================================================================
--- desktop/unstable/gdk-pixbuf/debian/tests/build (added)
+++ desktop/unstable/gdk-pixbuf/debian/tests/build [utf-8] Mon Nov 12 12:30:12 2012
@@ -1,0 +1,27 @@
+#!/bin/sh
+# autopkgtest check: Builds a small application against libgdk-pixbuf2.0, checking
+# if it compiles, links and runs successfully.
+# Author: Rafał Cieślak <rafalcieslak256 at ubuntu.com> 
+
+set -e
+
+WORKDIR=$(mktemp -d)
+trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
+cd $WORKDIR
+cat <<EOF > build_test.c
+
+#include <gdk-pixbuf/gdk-pixbuf.h>
+int main(){
+	GdkPixbuf *pixbuf = NULL;
+	g_type_init();
+	pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8, 50, 180);
+	if(!pixbuf) return 1;
+	return 0;
+}
+EOF
+
+gcc -o build_test build_test.c `pkg-config --cflags --libs gdk-pixbuf-2.0`
+echo "build: OK"
+[ -x build_test ]
+./build_test
+echo "run: OK"

Added: desktop/unstable/gdk-pixbuf/debian/tests/control
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/unstable/gdk-pixbuf/debian/tests/control?rev=36260&op=file
==============================================================================
--- desktop/unstable/gdk-pixbuf/debian/tests/control (added)
+++ desktop/unstable/gdk-pixbuf/debian/tests/control [utf-8] Mon Nov 12 12:30:12 2012
@@ -1,0 +1,2 @@
+Tests: build
+Depends: libgdk-pixbuf2.0-dev, build-essential, pkg-config




More information about the pkg-gnome-commits mailing list