=== modified file 'debian/changelog' --- debian/changelog 2012-09-12 15:32:10 +0000 +++ debian/changelog 2012-11-14 13:33:23 +0000 @@ -1,3 +1,9 @@ +gconf (3.2.5-0ubuntu5) precise; urgency=low + + * Added a simple compile/link/run test for libgconf2-dev. (LP: #1078719) + + -- Rafał Cieślak Wed, 14 Nov 2012 14:32:37 +0100 + gconf (3.2.5-0ubuntu4) quantal; urgency=low * debian/patches/0001-Support-s-to-as-migrations-v2.patch: === modified file 'debian/control' --- debian/control 2012-09-11 10:12:41 +0000 +++ debian/control 2012-11-14 13:14:14 +0000 @@ -175,6 +175,7 @@ gconf2 (= ${binary:Version}) Recommends: libgconf2-doc Replaces: gir-repository-dev (<< 0.6.5-7) +XS-Testsuite: autopkgtest Description: GNOME configuration database system (development) GConf is a configuration database system for storing application preferences. It supports default or mandatory settings set by the === modified file 'debian/control.in' --- debian/control.in 2012-03-23 14:43:19 +0000 +++ debian/control.in 2012-11-14 13:14:25 +0000 @@ -171,6 +171,7 @@ gconf2 (= ${binary:Version}) Recommends: libgconf2-doc Replaces: gir-repository-dev (<< 0.6.5-7) +XS-Testsuite: autopkgtest Description: GNOME configuration database system (development) GConf is a configuration database system for storing application preferences. It supports default or mandatory settings set by the === added directory 'debian/tests' === added file 'debian/tests/build' --- debian/tests/build 1970-01-01 00:00:00 +0000 +++ debian/tests/build 2012-11-14 13:11:55 +0000 @@ -0,0 +1,25 @@ +#!/bin/sh +# autopkgtest check: Builds a small application against libgconf2, checking +# if it compiles, links and runs successfully. +# Author: Rafał Cieślak + +set -e + +WORKDIR=$(mktemp -d) +trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM +cd $WORKDIR +cat < build_test.c +#include +int main(int argc, char** argv) { + g_type_init(); + GConfClient* client = gconf_client_get_default(); + if (!client) return 1; + return 0; +} +EOF + +gcc -o build_test build_test.c `pkg-config --libs --cflags gconf-2.0` +echo "build: OK" +[ -x build_test ] +./build_test +echo "run: OK" === added file 'debian/tests/control' --- debian/tests/control 1970-01-01 00:00:00 +0000 +++ debian/tests/control 2012-11-14 12:45:19 +0000 @@ -0,0 +1,2 @@ +Tests: build +Depends: build-essential, pkg-config, libgconf2-dev