[eso-midas] 02/02: Add CI test

Ole Streicher olebole at moszumanska.debian.org
Fri Apr 10 10:27:52 UTC 2015


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

olebole pushed a commit to branch debian
in repository eso-midas.

commit ac5cf302e685fa87ac53c344e24ba79ef6b3a274
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Fri Apr 10 12:27:52 2015 +0200

    Add CI test
---
 debian/tests/control    |  2 ++
 debian/tests/test-midas | 17 +++++++++++++++++
 2 files changed, 19 insertions(+)

diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..abfe1b6
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Test: test-midas
+Depends: eso-midas
diff --git a/debian/tests/test-midas b/debian/tests/test-midas
new file mode 100755
index 0000000..9addca3
--- /dev/null
+++ b/debian/tests/test-midas
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+# File list is taken from prim/proc/vericopy.prg
+cp test/prim/*.mt test/prim/*.fit test/prim/*.fits test/prim/*.tfits \
+   test/prim/*.ffits test/prim/*.dat test/prim/*.fmt test/prim/*.asc \
+   test/prim/all_*.prg test/prim/verif*.prg test/prim/*compare.prg \
+   test/prim/works.prg test/prim/creamask.prg test/prim/veriall.prg \
+   test/fits/tst*.mt test/fits/*.prg "${ADTTMP}"
+
+cd "$ADTTMP"
+inmidas -m "${ADTTMP}/midwork" -j "@@ veriall -nodisplay 100 2; bye"
+
+if [ -f midwork/veriall_* ] ; then
+    exit 0
+else
+    exit 1
+fi

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



More information about the debian-science-commits mailing list