[Debian-astro-commits] [iraf] 06/06: Add CI tests

Ole Streicher olebole at moszumanska.debian.org
Thu Nov 30 14:09:19 UTC 2017


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

olebole pushed a commit to branch master
in repository iraf.

commit dedd3bb32ebfd47ba5e6e7d576c4dcc222d24fa0
Author: Ole Streicher <olebole at debian.org>
Date:   Thu Nov 30 14:52:24 2017 +0100

    Add CI tests
---
 debian/patches/Adjust-tests-for-FHS-paths.patch | 95 +++++++++++++++++++++++++
 debian/patches/series                           |  1 +
 debian/tests/control                            |  2 +
 3 files changed, 98 insertions(+)

diff --git a/debian/patches/Adjust-tests-for-FHS-paths.patch b/debian/patches/Adjust-tests-for-FHS-paths.patch
new file mode 100644
index 0000000..d15e1e8
--- /dev/null
+++ b/debian/patches/Adjust-tests-for-FHS-paths.patch
@@ -0,0 +1,95 @@
+From: Ole Streicher <olebole at debian.org>
+Date: Thu, 30 Nov 2017 14:43:05 +0100
+Subject: Adjust tests for FHS paths
+
+---
+ test/numerical-recipes.md | 11 +++++++----
+ test/run_tests            | 10 ++++++++--
+ 2 files changed, 15 insertions(+), 6 deletions(-)
+
+diff --git a/test/numerical-recipes.md b/test/numerical-recipes.md
+index 495962a..f2801b8 100644
+--- a/test/numerical-recipes.md
++++ b/test/numerical-recipes.md
+@@ -49,7 +49,7 @@ end
+ Compile it, declare and run as an IRAF task. The following numbers are
+ the result of the original NR code.
+ 
+-Test options: `decimals=2`
++Test options: `decimals=2 skip`
+ ```
+ cl> copy noao$artdata/numrecipes.x .
+ cl> copy noao$artdata/gammln.c .
+@@ -108,7 +108,7 @@ end
+ Compile it, declare and run as an IRAF task. The following numbers are
+ the result of the original NR code.
+ 
+-Test options: `decimals=1`
++Test options: `decimals=1 skip`
+ ```
+ cl> softools
+ cl> xc -x -I$iraf/include test-poidev.x numrecipes.x gammln.c
+@@ -150,7 +150,7 @@ end
+ Compile it, declare and run as an IRAF task. The following numbers are
+ the result of the original NR code.
+ 
+-Test options: `decimals=4`
++Test options: `decimals=4 skip`
+ ```
+ cl> softools
+ cl> xc -x -I$iraf/include test-gammln.x gammln.c
+@@ -261,6 +261,7 @@ end
+ Compile it, declare and run as an IRAF task. The following numbers are
+ the result of the original NR code.
+ 
++Test options: `skip`
+ ```
+ cl> copy noao$astutil/asttools/asttimes.x .
+ cl> softools
+@@ -444,6 +445,7 @@ begin
+ end
+ ```
+ 
++Test options: `skip`
+ ```
+ cl> copy pkg$utilities/nttools/stxtools/lu* .
+ cl> softools
+@@ -543,6 +545,7 @@ begin
+ end
+ ```
+ 
++Test options: `skip`
+ ```
+ cl> copy noao$rv/numrep.x .
+ cl> softools
+@@ -614,7 +617,7 @@ begin
+ end
+ ```
+ 
+-Test options: `decimals=3`
++Test options: `decimals=3 skip`
+ ```
+ cl> softools
+ cl> xc -x test_twofft.x numrep.x -lfftpack
+diff --git a/test/run_tests b/test/run_tests
+index 72c58cb..22cde34 100755
+--- a/test/run_tests
++++ b/test/run_tests
+@@ -16,9 +16,15 @@ if [ -z "$IRAFARCH" ] ; then
+     export IRAFARCH=$(${iraf}unix/hlib/irafarch.sh)
+ fi
+ 
++export XC_CFLAGS="${CPPFLAGS} ${CFLAGS} -I${iraf}include"
++export iraf=/usr/share/iraf/
++export src=$(cd $(dirname $0)/..; pwd)/
++export host="${iraf}unix/"
++export hlib="${iraf}unix/hlib/"
+ export arch=.${IRAFARCH}
+-export IRAFBIN=${iraf}bin${arch}/
+-export PATH=$HOME/.iraf/bin:${PATH}
++export IRAFBIN=/usr/lib/iraf/
++export hbin="${IRAFBIN}unix/"
++PATH=${IRAFBIN}bin:$PATH
+ 
+ TEST_FILES=""
+ IRAF_SHELLS=""
diff --git a/debian/patches/series b/debian/patches/series
index 0aa8065..df7356f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -6,3 +6,4 @@ Make-the-installation-FHS-conform.patch
 Separate-NOAO-and-dev-packages.patch
 Propagate-CFLAGS-and-debug-flag-to-xc.patch
 Add-reportbug-CL-command.patch
+Adjust-tests-for-FHS-paths.patch
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..90819cd
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Test-Command: ./tests/run_tests tests/*.md
+Depends: @

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



More information about the Debian-astro-commits mailing list