[Debian-astro-commits] [starlink-pal] 01/03: Add unit test

Ole Streicher olebole at moszumanska.debian.org
Thu Oct 15 08:20:38 UTC 2015


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

olebole pushed a commit to branch debian
in repository starlink-pal.

commit dc941ea4041d1fc506fdfa81d609b4ecd70d3356
Author: Ole Streicher <olebole at debian.org>
Date:   Thu Oct 15 10:12:03 2015 +0200

    Add unit test
---
 debian/changelog      | 5 +++--
 debian/tests/control  | 3 +++
 debian/tests/test-pal | 9 +++++++++
 3 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 0f076e6..6ff30d4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,10 +1,11 @@
-starlink-pal (0.5.0-2) UNRELEASED; urgency=low
+starlink-pal (0.5.0-2) unstable; urgency=low
 
   * Update maintainers e-mail address
   * Update standards version to 3.9.6. No changes needed.
   * Update homepage URL.
+  * Add unit test
 
- -- Ole Streicher <olebole at debian.org>  Thu, 25 Sep 2014 12:21:32 +0200
+ -- Ole Streicher <olebole at debian.org>  Thu, 15 Oct 2015 10:11:46 +0200
 
 starlink-pal (0.5.0-1) unstable; urgency=low
 
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..8d6142f
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: test-pal
+Depends: libstarlink-pal-dev
+
diff --git a/debian/tests/test-pal b/debian/tests/test-pal
new file mode 100755
index 0000000..0d3e366
--- /dev/null
+++ b/debian/tests/test-pal
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+test_dir="$ADTTMP"
+if [ -z "$test_dir" ] ; then
+    test_dir="$(mktemp -d)"
+fi
+
+gcc -g -O2 -o "${test_dir}/palTest" palTest.c -lstarlink_pal
+exec "${test_dir}/palTest"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/starlink-pal.git



More information about the Debian-astro-commits mailing list