r36802 - in /desktop/experimental/gdk-pixbuf/debian: changelog control control.in tests/ tests/build tests/control

mpitt at users.alioth.debian.org mpitt at users.alioth.debian.org
Mon Feb 25 14:53:35 UTC 2013


Author: mpitt
Date: Mon Feb 25 14:53:34 2013
New Revision: 36802

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

Added:
    desktop/experimental/gdk-pixbuf/debian/tests/
    desktop/experimental/gdk-pixbuf/debian/tests/build
    desktop/experimental/gdk-pixbuf/debian/tests/control
Modified:
    desktop/experimental/gdk-pixbuf/debian/changelog
    desktop/experimental/gdk-pixbuf/debian/control
    desktop/experimental/gdk-pixbuf/debian/control.in

Modified: desktop/experimental/gdk-pixbuf/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/gdk-pixbuf/debian/changelog?rev=36802&op=diff
==============================================================================
--- desktop/experimental/gdk-pixbuf/debian/changelog [utf-8] (original)
+++ desktop/experimental/gdk-pixbuf/debian/changelog [utf-8] Mon Feb 25 14:53:34 2013
@@ -1,3 +1,10 @@
+gdk-pixbuf (2.27.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, 25 Feb 2013 15:52:38 +0100
+
 gdk-pixbuf (2.27.1-1) experimental; urgency=low
 
   * New upstream release.

Modified: desktop/experimental/gdk-pixbuf/debian/control
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/gdk-pixbuf/debian/control?rev=36802&op=diff
==============================================================================
--- desktop/experimental/gdk-pixbuf/debian/control [utf-8] (original)
+++ desktop/experimental/gdk-pixbuf/debian/control [utf-8] Mon Feb 25 14:53:34 2013
@@ -2,7 +2,6 @@
 # 
 # Modifications should be made to debian/control.in instead.
 # This file is regenerated automatically in the clean target.
-
 Source: gdk-pixbuf
 Section: libs
 Priority: optional
@@ -27,6 +26,7 @@
 Homepage: http://www.gtk.org/
 Vcs-Svn: svn://svn.debian.org/svn/pkg-gnome/desktop/unstable/gdk-pixbuf/
 Vcs-Browser: http://svn.debian.org/viewsvn/pkg-gnome/desktop/unstable/gdk-pixbuf/
+XS-Testsuite: autopkgtest
 
 Package: libgdk-pixbuf2.0-0
 Architecture: any

Modified: desktop/experimental/gdk-pixbuf/debian/control.in
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/gdk-pixbuf/debian/control.in?rev=36802&op=diff
==============================================================================
--- desktop/experimental/gdk-pixbuf/debian/control.in [utf-8] (original)
+++ desktop/experimental/gdk-pixbuf/debian/control.in [utf-8] Mon Feb 25 14:53:34 2013
@@ -22,6 +22,7 @@
 Homepage: http://www.gtk.org/
 Vcs-Svn: svn://svn.debian.org/svn/pkg-gnome/desktop/unstable/gdk-pixbuf/
 Vcs-Browser: http://svn.debian.org/viewsvn/pkg-gnome/desktop/unstable/gdk-pixbuf/
+XS-Testsuite: autopkgtest
 
 Package: libgdk-pixbuf2.0-0
 Architecture: any

Added: desktop/experimental/gdk-pixbuf/debian/tests/build
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/gdk-pixbuf/debian/tests/build?rev=36802&op=file
==============================================================================
--- desktop/experimental/gdk-pixbuf/debian/tests/build (added)
+++ desktop/experimental/gdk-pixbuf/debian/tests/build [utf-8] Mon Feb 25 14:53:34 2013
@@ -1,0 +1,29 @@
+#!/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;
+#if !defined(GLIB_VERSION_2_36)
+	g_type_init();
+#endif
+	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 -Wall -Werror `pkg-config --cflags --libs gdk-pixbuf-2.0`
+echo "build: OK"
+[ -x build_test ]
+./build_test
+echo "run: OK"

Added: desktop/experimental/gdk-pixbuf/debian/tests/control
URL: http://svn.debian.org/wsvn/pkg-gnome/desktop/experimental/gdk-pixbuf/debian/tests/control?rev=36802&op=file
==============================================================================
--- desktop/experimental/gdk-pixbuf/debian/tests/control (added)
+++ desktop/experimental/gdk-pixbuf/debian/tests/control [utf-8] Mon Feb 25 14:53:34 2013
@@ -1,0 +1,2 @@
+Tests: build
+Depends: libgdk-pixbuf2.0-dev, build-essential, pkg-config




More information about the pkg-gnome-commits mailing list