[wcslib] 06/07: Use dummy graphics for testing.
Ole Streicher
olebole-guest at moszumanska.debian.org
Sat Apr 5 10:49:08 UTC 2014
This is an automated email from the git hooks/post-receive script.
olebole-guest pushed a commit to branch debian-contrib
in repository wcslib.
commit 06bfbd49f5e5c76a8e0f42419e3a48c7d65f48f0
Author: Ole Streicher <debian at liska.ath.cx>
Date: Sat Apr 5 12:47:47 2014 +0200
Use dummy graphics for testing.
---
debian/patches/series | 1 +
debian/patches/set-null-graphics-on-tests.patch | 190 ++++++++++++++++++++++++
2 files changed, 191 insertions(+)
diff --git a/debian/patches/series b/debian/patches/series
index d548fb6..1c09aed 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
increase_tspx_test_tol.patch
disable_Ftspx_test.patch
fortify.patch
+set-null-graphics-on-tests.patch
diff --git a/debian/patches/set-null-graphics-on-tests.patch b/debian/patches/set-null-graphics-on-tests.patch
new file mode 100644
index 0000000..7d8e9d3
--- /dev/null
+++ b/debian/patches/set-null-graphics-on-tests.patch
@@ -0,0 +1,190 @@
+Author: Ole Streicher <debian at liska.ath.cx>
+Description: Use dummy graphics for testing.
+ The tests run unattended anyway, so there is no use of a visible graphics.
+--- a/C/test/tcel1.c
++++ b/C/test/tcel1.c
+@@ -80,7 +80,7 @@
+
+
+ /* PGPLOT initialization. */
+- strcpy(text, "/xwindow");
++ strcpy(text, "/null");
+ cpgbeg(0, text, 1, 1);
+
+ /* Define pen colours. */
+--- a/C/test/tcel2.c
++++ b/C/test/tcel2.c
+@@ -106,7 +106,7 @@
+
+
+ /* PGPLOT initialization. */
+- strcpy(text, "/xwindow");
++ strcpy(text, "/null");
+ cpgbeg(0, text, 1, 1);
+
+ /* Define pen colours. */
+--- a/C/test/tprj2.c
++++ b/C/test/tprj2.c
+@@ -60,7 +60,7 @@
+
+
+ /* PGPLOT initialization. */
+- strcpy(text, "/xwindow");
++ strcpy(text, "/null");
+ cpgbeg(0, text, 1, 1);
+
+ /* Define pen colours. */
+--- a/C/test/tspc.c
++++ b/C/test/tspc.c
+@@ -69,7 +69,7 @@
+
+
+ /* PGPLOT initialization. */
+- strcpy(text, "/xwindow");
++ strcpy(text, "/null");
+ cpgbeg(0, text, 1, 1);
+
+ naxisj = NSPEC;
+--- a/C/test/ttab2.c
++++ b/C/test/ttab2.c
+@@ -77,7 +77,7 @@
+
+
+ /* PGPLOT initialization. */
+- strcpy(text, "/xwindow");
++ strcpy(text, "/null");
+ cpgbeg(0, text, 1, 1);
+ cpgvstd();
+ cpgsch(0.7f);
+--- a/C/test/ttab3.c
++++ b/C/test/ttab3.c
+@@ -74,7 +74,7 @@
+
+
+ /* PGPLOT initialization. */
+- strcpy(text, "/xwindow");
++ strcpy(text, "/null");
+ cpgbeg(0, text, 1, 1);
+ cpgvstd();
+ cpgsch(0.7f);
+--- a/C/test/twcsmix.c
++++ b/C/test/twcsmix.c
+@@ -93,7 +93,7 @@
+
+
+ /* PGPLOT initialization. */
+- strcpy(text, "/xwindow");
++ strcpy(text, "/null");
+ cpgbeg(0, text, 1, 1);
+
+ /* Define pen colours. */
+--- a/Fortran/test/tcel1.f
++++ b/Fortran/test/tcel1.f
+@@ -77,7 +77,7 @@
+
+
+ * PGPLOT initialization.
+- CALL PGBEG (0, '/xwindow', 1, 1)
++ CALL PGBEG (0, '/null', 1, 1)
+
+ * Define pen colours.
+ CALL PGSCR (0, 0.00, 0.00, 0.00)
+--- a/Fortran/test/tprj2.f
++++ b/Fortran/test/tprj2.f
+@@ -48,7 +48,7 @@
+ 20 CONTINUE
+
+ * PGPLOT initialization.
+- CALL PGBEG (0, '/xwindow', 1, 1)
++ CALL PGBEG (0, '/null', 1, 1)
+
+ * Define pen colours.
+ CALL PGSCR (0, 0.00, 0.00, 0.00)
+--- a/Fortran/test/tspc.f
++++ b/Fortran/test/tspc.f
+@@ -55,7 +55,7 @@
+ NFAIL = 0
+
+ * PGPLOT initialization.
+- CALL PGBEG (0, '/xwindow', 1, 1)
++ CALL PGBEG (0, '/null', 1, 1)
+
+ NAXISJ = NSPEC
+ CRPIXJ = NAXISJ/2 + 1
+--- a/Fortran/test/ttab2.f
++++ b/Fortran/test/ttab2.f
+@@ -72,7 +72,7 @@
+
+
+ * PGPLOT initialization.
+- CALL PGBEG (0, '/xwindow', 1, 1)
++ CALL PGBEG (0, '/null', 1, 1)
+ CALL PGVSTD ()
+ CALL PGSCH (0.7)
+
+--- a/Fortran/test/ttab3.f
++++ b/Fortran/test/ttab3.f
+@@ -67,7 +67,7 @@
+
+
+ * PGPLOT initialization.
+- CALL PGBEG (0, '/xwindow', 1, 1)
++ CALL PGBEG (0, '/null', 1, 1)
+ CALL PGVSTD ()
+ CALL PGSCH (0.7)
+ CALL PGWNAD (-135.0, 135.0, -95.0, 140.0)
+--- a/Fortran/test/twcsmix.f
++++ b/Fortran/test/twcsmix.f
+@@ -89,7 +89,7 @@
+ : '-----------------------------------------')
+
+ * PGPLOT initialization.
+- CALL PGBEG (0, '/xwindow', 1, 1)
++ CALL PGBEG (0, '/null', 1, 1)
+
+ * Define pen colours.
+ CALL PGSCR (0, 0.00, 0.00, 0.00)
+--- a/Fortran/test/tpih2.f
++++ b/Fortran/test/tpih2.f
+@@ -131,7 +131,7 @@
+ TRC(1) = NAXIS(1) + 0.5
+ TRC(2) = NAXIS(2) + 0.5
+
+- DEVTYP = '/XWINDOW'
++ DEVTYP = '/NULL'
+ CALL PGBEG(0, DEVTYP, 1, 1)
+ CALL PGVSTD()
+
+--- a/pgsbox/pgtest.f
++++ b/pgsbox/pgtest.f
+@@ -60,7 +60,7 @@
+ TRC(2) = NAXIS(2) + 0.5
+
+ * CALL PGBEG (0, '?', 1, 1)
+- call pgbeg (0, '/xw', 1, 1)
++ call pgbeg (0, '/null', 1, 1)
+
+ CALL PGQINF ('TYPE', DEVTYP, J)
+ IF (DEVTYP.EQ.'PS' .OR.
+--- a/C/test/tpih2.c
++++ b/C/test/tpih2.c
+@@ -147,7 +147,7 @@
+ trc[0] = naxis[0] + 0.5f;
+ trc[1] = naxis[1] + 0.5f;
+
+- strcpy(devtyp, "/XWINDOW");
++ strcpy(devtyp, "/NULL");
+ cpgbeg(0, devtyp, 1, 1);
+ cpgvstd();
+
+--- a/pgsbox/cpgtest.c
++++ b/pgsbox/cpgtest.c
+@@ -68,7 +68,7 @@
+ trc[0] = naxis[0] + 0.5f;
+ trc[1] = naxis[1] + 0.5f;
+
+- strcpy(devtyp, "/XWINDOW");
++ strcpy(devtyp, "/NULL");
+ cpgbeg(0, devtyp, 1, 1);
+
+ j = 16;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/wcslib.git
More information about the debian-science-commits
mailing list