[ignition-transport] 01/01: Support for autopkgtest

Jose Luis Rivero jrivero-guest at moszumanska.debian.org
Thu May 14 00:41:50 UTC 2015


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

jrivero-guest pushed a commit to branch master
in repository ignition-transport.

commit b3ebeba7df698d15b9b77f3ffd4059280dacb903
Author: Jose Luis Rivero <jrivero at osrfoundation.org>
Date:   Thu May 14 00:41:39 2015 +0000

    Support for autopkgtest
---
 debian/tests/build   | 27 +++++++++++++++++++++++++++
 debian/tests/control |  2 ++
 2 files changed, 29 insertions(+)

diff --git a/debian/tests/build b/debian/tests/build
new file mode 100755
index 0000000..1b15899
--- /dev/null
+++ b/debian/tests/build
@@ -0,0 +1,27 @@
+#!/bin/sh
+# autopkgtest check: Build and run a program against ign-math, to verify that the
+# headers and pkg-config file are installed correctly
+# (C) 2012 Jose Luis Rivero
+# Author: Jose Luis Rivero <jrivero at osrfoundation.org>
+
+set -e
+
+WORKDIR=$(mktemp -d)
+trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
+cd $WORKDIR
+cat <<EOF > igntest.c
+#include <ignition/transport.hh>
+
+int main()
+{
+    // Create a transport node.
+    ignition::transport::Node node;
+    return 0;
+}
+EOF
+
+g++ -o igntest igntest.c `pkg-config --cflags --libs ignition-transport`
+echo "build: OK"
+[ -x igntest ]
+./igntest
+echo "run: OK"
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..8092686
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: build
+Depends: libignition-transport-dev, build-essential

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



More information about the debian-science-commits mailing list