Add packaging testsuite.

parent d94d52f4
......@@ -2,6 +2,7 @@ Source: ismrmrd
Maintainer: Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
Uploaders: Ghislain Antony Vaillant <ghisvail@gmail.com>
Section: science
Testsuite: autopkgtest
Priority: optional
Build-Depends: cmake,
debhelper (>= 9),
......
Tests: examples
Depends: build-essential,
cmake,
libismrmrd-dev,
libismrmrd-doc
#!/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"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment