This is an automated email from the git hooks/post-receive script. fsateler pushed a commit to branch master in repository pulseaudio.
commit e6eafa76a6ce540f825e6c5b03d362b1059f3a9f Author: Felipe Sateler <[email protected]> Date: Sun Nov 1 21:23:20 2015 -0300 Copy autopkgtests from ubuntu --- debian/control | 1 + debian/tests/build | 30 ++++++++++++++++++++++++++++++ debian/tests/control | 2 ++ 3 files changed, 33 insertions(+) diff --git a/debian/control b/debian/control index d3539ac..7c431a8 100644 --- a/debian/control +++ b/debian/control @@ -46,6 +46,7 @@ Standards-Version: 3.9.6 Vcs-Git: git://anonscm.debian.org/git/pkg-pulseaudio/pulseaudio.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-pulseaudio/pulseaudio.git Homepage: http://www.pulseaudio.org +XS-Testsuite: autopkgtest Package: pulseaudio Architecture: any diff --git a/debian/tests/build b/debian/tests/build new file mode 100755 index 0000000..342ad34 --- /dev/null +++ b/debian/tests/build @@ -0,0 +1,30 @@ +#!/bin/sh +# autopkgtest check: Build and run a program against pulseaudio, to verify that the +# headers and pkg-config file are installed correctly +# (C) 2013 Canonical Ltd. +# Author: Martin Pitt <[email protected]> +# Author: David Henningsson <[email protected]> + +set -e + +WORKDIR=$(mktemp -d) +trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM +cd $WORKDIR +cat <<EOF > buildtest.c +#include <pulse/pulseaudio.h> +#include <assert.h> + +int main() +{ + pa_mainloop * ml = pa_mainloop_new(); + assert(ml); + pa_mainloop_free(ml); + return 0; +} +EOF + +gcc -o buildtest buildtest.c $(pkg-config --cflags --libs libpulse) +echo "build: OK" +[ -x buildtest ] +./buildtest +echo "run: OK" diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..8e3e6ce --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,2 @@ +Tests: build +Depends: libpulse-dev, build-essential -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-pulseaudio/pulseaudio.git _______________________________________________ pkg-pulseaudio-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-pulseaudio-devel

