Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 20afcfa0 authored by Thomas Moulard's avatar Thomas Moulard
Browse files

Add autopkgtest support.

parent b4ba1082
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,9 @@ visp (2.7.0-5) unstable; urgency=low ...@@ -4,6 +4,9 @@ visp (2.7.0-5) unstable; urgency=low
* Disable libv4l-dev dependecy on hurd-i386. * Disable libv4l-dev dependecy on hurd-i386.
* Build documentation in override_dh_auto_build-indep. * Build documentation in override_dh_auto_build-indep.
* Run tests but ignore failures for now. * Run tests but ignore failures for now.
* Enable test suite, make package depend on visp-images-data.
* Add autopkgtest support.
* Add autopkgtest "build" test: compile a minimal test.
-- Thomas Moulard <thomas.moulard@gmail.com> Thu, 13 Jun 2013 11:47:20 +0900 -- Thomas Moulard <thomas.moulard@gmail.com> Thu, 13 Jun 2013 11:47:20 +0900
......
...@@ -27,11 +27,13 @@ Build-Depends: debhelper (>= 9), ...@@ -27,11 +27,13 @@ Build-Depends: debhelper (>= 9),
libv4l-dev [!hurd-any], libv4l-dev [!hurd-any],
libusb-dev, libusb-dev,
libfreenect-dev, libfreenect-dev,
libois-dev [linux-any] libois-dev [linux-any],
visp-images-data
Standards-Version: 3.9.4 Standards-Version: 3.9.4
Vcs-Browser: http://git.debian.org/?p=debian-science/packages/visp.git Vcs-Browser: http://git.debian.org/?p=debian-science/packages/visp.git
Vcs-Git: git://git.debian.org/debian-science/packages/visp.git Vcs-Git: git://git.debian.org/debian-science/packages/visp.git
Homepage: http://www.irisa.fr/lagadic/visp/visp.html Homepage: http://www.irisa.fr/lagadic/visp/visp.html
XS-Testsuite: autopkgtest
Package: libvisp-dev Package: libvisp-dev
Architecture: any Architecture: any
......
...@@ -78,4 +78,4 @@ override_dh_strip: ...@@ -78,4 +78,4 @@ override_dh_strip:
dh_strip -a --dbg-package=libvisp2-dbg dh_strip -a --dbg-package=libvisp2-dbg
override_dh_auto_test: override_dh_auto_test:
dh_auto_test || true export VISP_INPUT_PATH=/usr/share/visp-images && dh_auto_test
#!/bin/sh
# autopkgtest check: Build and run a program against visp, to verify that the
# headers and pkg-config file are installed correctly
# (C) 2013 Thomas Moulard
# Author: Thomas Moulard <thomas.moulard@gmail.com>
set -e
WORKDIR=$(mktemp -d)
trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
cd $WORKDIR
cat <<EOF > glibtest.cpp
#include <visp/vpColor.h>
int main()
{
vpColor red = vpColor::red;
return 0;
}
EOF
gcc -o visptest visptest.cpp `pkg-config --cflags --libs visp`
echo "build: OK"
[ -x visptest ]
./visptest
echo "run: OK"
Tests: build
Depends: libvisp-dev, build-essential
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment