[libmpikmeans] 27/29: Define an autopkgtest that runs the examples from the documentation

Christian Kastner chrisk-guest at moszumanska.debian.org
Mon Aug 25 21:20:02 UTC 2014


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

chrisk-guest pushed a commit to branch master
in repository libmpikmeans.

commit 5d1e8f82ec1039460a4b39fbcfff7e9fb1ee4216
Author: Christian Kastner <debian at kvr.at>
Date:   Mon Aug 25 11:38:22 2014 -0700

    Define an autopkgtest that runs the examples from the documentation
---
 debian/tests/control     |  2 ++
 debian/tests/executables | 11 +++++++++++
 2 files changed, 13 insertions(+)

diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..d0532b5
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: executables
+Depends: mpikmeans-tools
diff --git a/debian/tests/executables b/debian/tests/executables
new file mode 100644
index 0000000..25b0b1a
--- /dev/null
+++ b/debian/tests/executables
@@ -0,0 +1,11 @@
+#!/bin/sh
+# Run the examples from the man pages. Assumes $ADTTMP is set, see
+# /usr/share/doc/autopkgtest/README.package-tests.gz
+set -e
+
+# Copy the example data to $ADTTMP, and run the examples.
+cp example.txt "$ADTTMP"
+cd "$ADTTMP"
+
+mpi_kmeans --k 2 --data example.txt --output clusters.txt
+mpi_assign --data example.txt --cluster clusters.txt --assignment assignment.txt

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



More information about the debian-science-commits mailing list