[med-svn] [ismrmrd] 06/11: Simplify the packaging testsuite.
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Sat Nov 26 11:58:19 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository ismrmrd.
commit 684d350e56459d1aa6db845735ae0ddc07068e0f
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Sat Nov 26 11:13:24 2016 +0000
Simplify the packaging testsuite.
---
debian/tests/control | 11 ++++++-----
debian/tests/examples | 25 -------------------------
2 files changed, 6 insertions(+), 30 deletions(-)
diff --git a/debian/tests/control b/debian/tests/control
index 9e6731f..4171a46 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,5 +1,6 @@
-Tests: examples
-Depends: build-essential,
- cmake,
- libismrmrd-dev,
- libismrmrd-doc
+Test-Command: cd $AUTOPKGTEST_TMP
+ ; cmake /usr/share/doc/libismrmrd-doc/examples/c/
+ ; make -j$(nproc)
+ ; ./ismrmrd_c_example
+Depends: @, cmake, g++ | c++-compiler
+Restrictions: allow-stderr
diff --git a/debian/tests/examples b/debian/tests/examples
deleted file mode 100755
index 2d5c478..0000000
--- a/debian/tests/examples
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-# Copyright 2016 Ghislain Antony Vaillant
-
-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
-
-# Copy example source code.
-cp -a /usr/share/doc/libismrmrd-doc/examples/c/* "$ADTTMP"
-cd "$ADTTMP"
-
-# Configure and build.
-mkdir build && cd build
-ISMRMRD_HOME=/usr cmake ./..
-echo "configure: OK"
-make -j$(nproc)
-echo "build: OK"
-./ismrmrd_c_example 2>&1
-echo "run: OK"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/ismrmrd.git
More information about the debian-med-commit
mailing list