=== modified file 'debian/changelog' --- debian/changelog 2012-06-14 13:10:17 +0000 +++ debian/changelog 2012-10-31 16:20:08 +0000 @@ -1,3 +1,9 @@ +pango1.0 (1.30.1-0ubuntu4) quantal; urgency=low + + * Added a compile/link/run autopkg test. + + -- Rafał Cieślak Wed, 31 Oct 2012 17:19:09 +0100 + pango1.0 (1.30.1-0ubuntu3) quantal; urgency=low * debian/patches/00git_memory_leak.patch: === modified file 'debian/control' --- debian/control 2012-06-08 14:23:36 +0000 +++ debian/control 2012-10-31 16:17:37 +0000 @@ -105,6 +105,7 @@ Recommends: debhelper Replaces: gir-repository-dev, gobject-introspection-repository +XS-Testsuite: autopkgtest Description: Development files for the Pango Pango is a library for layout and rendering of text, with an emphasis on internationalization. Pango can be used anywhere that text layout is === added directory 'debian/tests' === added file 'debian/tests/build' --- debian/tests/build 1970-01-01 00:00:00 +0000 +++ debian/tests/build 2012-10-31 16:16:08 +0000 @@ -0,0 +1,28 @@ +#!/bin/sh +# autopkgtest check: Builds a small application against libcairo2-dev, 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[]) +{ + PangoFontDescription* pfd = pango_font_description_new(); + if(!pfd) return 1; + pango_font_description_set_size(pfd,12); + return 0; +} +EOF + +gcc -o build_test build_test.c `pkg-config --cflags --libs pango` +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-10-31 16:16:25 +0000 @@ -0,0 +1,2 @@ +Tests: build +Depends: build-essential, libpango1.0-dev, pkg-config