Commit d62d7896 authored by Sven Eckelmann's avatar Sven Eckelmann

Add simple autopkgtest to package

parent bfa828dc
libg3d (0.0.8-18) UNRELEASED; urgency=low
[ Sven Eckelmann ]
* Upgraded to policy 3.9.4, no changes required
* Remove obsolete DM-Upload-Allowed in debian/control
[ Vibhav Pant ]
* Add simple autopkgtest to package (Closes: #702424)
-- Sven Eckelmann <sven@narfation.org> Wed, 19 Sep 2012 08:55:23 +0200
libg3d (0.0.8-17) unstable; urgency=low
......
......@@ -23,6 +23,7 @@ Build-Depends:
Build-Conflicts:
autoconf2.13,
automake1.4,
XS-Testsuite: autopkgtest
Package: libg3d0
Architecture: any
......
#!/bin/sh
# autopkgtest check: Build and run a program against libg3d, to verify that the
# headers are installed correctly
# Source taken from http://leenissen.dk/fann/wp/help/getting-started/
# (C) 2013 Vibhav Pant
# Author: Vibhav Pant <martin.pitt@ubuntu.com>
set -e
WORKDIR=$(mktemp -d)
trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
cd $WORKDIR
cat <<EOF > g3d_test.c
#include <g3d/g3d.h>
#include <assert.h>
int main(void)
{
G3DContext *context;
context = g3d_context_new();
g3d_context_update_progress_bar(context, 40, TRUE);
g3d_context_free(context);
return 0;
}
EOF
gcc -o g3d_test g3d_test.c `pkg-config --cflags --libs libg3d` -Wall -Werror
echo "build: OK"
[ -x g3d_test ]
./g3d_test
echo "run: OK"
Tests: build
Depends: libg3d-dev, build-essential
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment