[arrayfire] 07/12: Add autopkgtest testsuite.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sun Nov 22 23:46:03 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/sid
in repository arrayfire.

commit f360dc35fc3f7d99def8f2b81314528d73f9191c
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Sat Nov 21 19:22:28 2015 +0000

    Add autopkgtest testsuite.
---
 debian/control                   |  1 +
 debian/tests/control             |  2 ++
 debian/tests/test-build-examples | 19 +++++++++++++++++++
 3 files changed, 22 insertions(+)

diff --git a/debian/control b/debian/control
index 3f53778..40a8a6a 100644
--- a/debian/control
+++ b/debian/control
@@ -20,6 +20,7 @@ Standards-Version: 3.9.6
 Homepage: http://arrayfire.com/
 Vcs-Git: git://anonscm.debian.org/debian-science/packages/arrayfire.git
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/arrayfire.git
+Testsuite: autopkgtest
 
 Package: libarrayfire-cpu-dev
 Section: libdevel
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..4fa7fad
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: test-build-examples
+Depends: cmake, libarrayfire-cpu-dev, libarrayfire-doc
diff --git a/debian/tests/test-build-examples b/debian/tests/test-build-examples
new file mode 100755
index 0000000..0d873f4
--- /dev/null
+++ b/debian/tests/test-build-examples
@@ -0,0 +1,19 @@
+#!/bin/sh
+# Copyright 2015 Ghislain Antony Vaillant
+#
+# This file is part of the autopkgtest testsuite for ArrayFire.
+
+set -e
+
+# Presence of $ADTTMP implies that someone will handle cleanup for us, so we
+# can avoid duplicating the effort (signal handling, etc.) here.
+if [ -z "$ADTTMP" ]
+then
+	echo "Required envvar \"$ADTTMP\"is not set" >&2
+	exit 1
+fi
+
+cp -a /usr/share/doc/libarrayfire-doc/examples "$ADTTMP"
+cd "$ADTTMP"
+cmake ./examples
+make

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git



More information about the debian-science-commits mailing list