[cpl-plugin-kmos] 01/02: [Yves Jung] Fix missing CDN_M keywords in input for test. Closes: #743080

Ole Streicher olebole-guest at moszumanska.debian.org
Wed Apr 2 09:02:59 UTC 2014


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

olebole-guest pushed a commit to branch debian
in repository cpl-plugin-kmos.

commit 9e984e00a2d30bb84b07455c3adcb4812657084b
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Wed Apr 2 10:57:08 2014 +0200

    [Yves Jung] Fix missing CDN_M keywords in input for test. Closes: #743080
---
 debian/changelog                               |  6 +++++
 debian/patches/fix_kmo_priv-combine-test.patch | 32 ++++++++++++++++++++++++++
 debian/patches/series                          |  1 +
 3 files changed, 39 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index b95e589..2510f70 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+cpl-plugin-kmos (1.3.0+dfsg-2) unstable; urgency=medium
+
+  * [Yves Jung] Fix missing CDN_M keywords in input for test. Closes: #743080
+
+ -- Ole Streicher <debian at liska.ath.cx>  Wed, 02 Apr 2014 10:46:02 +0200
+
 cpl-plugin-kmos (1.3.0+dfsg-1) unstable; urgency=low
 
   * New upstream version
diff --git a/debian/patches/fix_kmo_priv-combine-test.patch b/debian/patches/fix_kmo_priv-combine-test.patch
new file mode 100644
index 0000000..6251129
--- /dev/null
+++ b/debian/patches/fix_kmo_priv-combine-test.patch
@@ -0,0 +1,32 @@
+Author: Yves Jung
+Description: Fix missing CDN_M keywords in input for test.
+Bug: https://bugs.debian.org/743080
+--- a/kmos/tests/kmo_priv_combine-test.c
++++ b/kmos/tests/kmo_priv_combine-test.c
+@@ -97,12 +97,20 @@
+     cpl_propertylist_append_string(header_data, "ESO PRO FRNAME", "ga");
+     cpl_propertylist_append_int(header_data, "ESO PRO IFUNR", 1);
+ 
+-    kmo_align_subpix(&xshift, &yshift,
+-                           &data, NULL,
+-                           &header_data, NULL,
+-                           0, "BCS", BCS_NATURAL, tol, fid,
+-                           &xmin, &xmax,
+-                           &ymin, &ymax, "gaga");
++    /* CDN_M Matrix needs to be specified - PIPE-5106 PIPE-5115 */
++    /* If not specified, cpl_wcs() fails  */
++    cpl_propertylist_append_double(header_data, CD1_1, -5.55555e-5);
++    cpl_propertylist_append_double(header_data, CD1_2, 0);
++    cpl_propertylist_append_double(header_data, CD1_3, 0);
++    cpl_propertylist_append_double(header_data, CD2_1, 0);
++    cpl_propertylist_append_double(header_data, CD2_2, -5.55555e-5);
++    cpl_propertylist_append_double(header_data, CD2_3, 0);
++    cpl_propertylist_append_double(header_data, CD3_1, 0);
++    cpl_propertylist_append_double(header_data, CD3_2, 0);
++    cpl_propertylist_append_double(header_data, CD3_3, 0.0002075);
++
++    kmo_align_subpix(&xshift, &yshift, &data, NULL, &header_data, NULL, 0, 
++            "BCS", BCS_NATURAL, tol, fid, &xmin, &xmax, &ymin, &ymax, "gaga");
+     cpl_test_error(CPL_ERROR_NONE);
+     cpl_test_eq(xmin, 0);
+     cpl_test_eq(ymin, 0);
diff --git a/debian/patches/series b/debian/patches/series
index a5d423f..ae45b43 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@ spellfix.patch
 fix_test_fail.patch
 force-serial-tests.patch
 kmclipm_disable_test.patch
+fix_kmo_priv-combine-test.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/cpl-plugin-kmos.git



More information about the debian-science-commits mailing list