[erfa] 03/03: Create CI test

Ole Streicher olebole at moszumanska.debian.org
Fri May 29 10:05:51 UTC 2015


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

olebole pushed a commit to branch debian
in repository erfa.

commit 526fd7791401be57a32d30da0781bd41db899c3f
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Fri May 29 11:52:29 2015 +0200

    Create CI test
---
 debian/changelog       |  1 +
 debian/tests/control   |  2 ++
 debian/tests/test_erfa | 12 ++++++++++++
 3 files changed, 15 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index a29ff04..fc9dc91 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ erfa (1.2.0-1) unstable; urgency=low
   * New upstream release
   * Update standards version to 3.9.6. No changes needed.
   * Create upstream/metadata with bibliographic information
+  * Create CI test
 
  -- Ole Streicher <olebole at debian.org>  Fri, 29 May 2015 11:41:45 +0200
 
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..b9aff9a
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: test_erfa
+Depends: @
diff --git a/debian/tests/test_erfa b/debian/tests/test_erfa
new file mode 100755
index 0000000..3eb7de5
--- /dev/null
+++ b/debian/tests/test_erfa
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+if [ -z ${ADTTMP} ] ; then
+    ADTTMP=$(mktemp -d)
+fi
+
+cp src/t_erfa_c.c ${ADTTMP}
+cd ${ADTTMP}
+gcc -Wall -o t_erfa t_erfa_c.c -lerfa
+./t_erfa -v

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



More information about the debian-science-commits mailing list