[freeimage] 16/18: Add autopkgtest support.
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Wed Nov 11 19:19:39 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/experimental
in repository freeimage.
commit 31c28af8f171e15f1e9d42a3c9a4904c43d6e42e
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Fri Nov 6 12:03:10 2015 +0000
Add autopkgtest support.
---
debian/control | 1 +
debian/tests/control | 3 +++
debian/tests/test-freeimage | 13 +++++++++++++
debian/tests/test-freeimageplus | 13 +++++++++++++
4 files changed, 30 insertions(+)
diff --git a/debian/control b/debian/control
index 3a175bc..6c4e60a 100644
--- a/debian/control
+++ b/debian/control
@@ -22,6 +22,7 @@ Standards-Version: 3.9.6
Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/freeimage.git
Vcs-Git: git://anonscm.debian.org/debian-science/packages/freeimage.git
Homepage: http://freeimage.sourceforge.net/
+Testsuite: autopkgtest
Package: libfreeimage-dev
Architecture: any
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..4600dd8
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: test-freeimage test-freeimageplus
+Depends: @, build-essential
+Restrictions: allow-stderr
diff --git a/debian/tests/test-freeimage b/debian/tests/test-freeimage
new file mode 100644
index 0000000..f03d07f
--- /dev/null
+++ b/debian/tests/test-freeimage
@@ -0,0 +1,13 @@
+#!/bin/sh
+# Build and execute the upstream's testsuite for FreeImage against the
+# installed binaries.
+
+set -e
+
+# Fetch the upstream testsuite.
+cp -a TestAPI "$ADTTMP"
+
+# Build using the installed FreeImagePlus package.
+cd "$ADTTMP/TestAPI" && \
+g++ *.cpp -lfreeimage -o test-freeimage && \
+./test-freeimage
diff --git a/debian/tests/test-freeimageplus b/debian/tests/test-freeimageplus
new file mode 100644
index 0000000..be8e041
--- /dev/null
+++ b/debian/tests/test-freeimageplus
@@ -0,0 +1,13 @@
+#!/bin/sh
+# Build and execute the upstream's testsuite for FreeImagePlus against the
+# installed binaries.
+
+set -e
+
+# Fetch the upstream testsuite.
+cp -a Wrapper/FreeImagePlus/test "$ADTTMP"
+
+# Build using the installed FreeImagePlus package.
+cd "$ADTTMP/test" && \
+g++ *.cpp -lfreeimageplus -lfreeimage -o test-freeimageplus && \
+./test-freeimageplus
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/freeimage.git
More information about the debian-science-commits
mailing list