File: Use-dummy-graphics-for-testing.patch

package info (click to toggle)
wcslib 7.4%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 9,752 kB
  • sloc: ansic: 32,656; lex: 9,281; fortran: 6,634; sh: 3,369; sed: 497; pascal: 188; makefile: 15
file content (246 lines) | stat: -rw-r--r-- 6,227 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
From: Ole Streicher <debian@liska.ath.cx>
Date: Sun, 15 Jan 2017 16:35:33 +0100
Subject: Use dummy graphics for testing.

The tests run unattended anyway, so there is no use of a visible graphics.
---
 C/test/tcel1.c         | 2 +-
 C/test/tcel2.c         | 2 +-
 C/test/tpih2.c         | 2 +-
 C/test/tprj2.c         | 2 +-
 C/test/tspc.c          | 2 +-
 C/test/ttab2.c         | 2 +-
 C/test/ttab3.c         | 2 +-
 C/test/twcsmix.c       | 2 +-
 Fortran/test/tcel1.f   | 2 +-
 Fortran/test/tpih2.f   | 2 +-
 Fortran/test/tprj2.f   | 2 +-
 Fortran/test/tspc.f    | 2 +-
 Fortran/test/ttab2.f   | 2 +-
 Fortran/test/ttab3.f   | 2 +-
 Fortran/test/twcsmix.f | 2 +-
 pgsbox/cpgtest.c       | 2 +-
 pgsbox/pgtest.f        | 2 +-
 17 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/C/test/tcel1.c b/C/test/tcel1.c
index 79848c2..92149cb 100644
--- a/C/test/tcel1.c
+++ b/C/test/tcel1.c
@@ -77,7 +77,7 @@ int main()
 
 
   // PGPLOT initialization.
-  strcpy(text, "/xwindow");
+  strcpy(text, "/null");
   cpgbeg(0, text, 1, 1);
 
   // Define pen colours.
diff --git a/C/test/tcel2.c b/C/test/tcel2.c
index b800f44..68f103f 100644
--- a/C/test/tcel2.c
+++ b/C/test/tcel2.c
@@ -103,7 +103,7 @@ int main()
 
 
   // PGPLOT initialization.
-  strcpy(text, "/xwindow");
+  strcpy(text, "/null");
   cpgbeg(0, text, 1, 1);
 
   // Define pen colours.
diff --git a/C/test/tpih2.c b/C/test/tpih2.c
index eb120a8..48b0608 100644
--- a/C/test/tpih2.c
+++ b/C/test/tpih2.c
@@ -144,7 +144,7 @@ int main()
   trc[0] = naxis[0] + 0.5f;
   trc[1] = naxis[1] + 0.5f;
 
-  strcpy(devtyp, "/XWINDOW");
+  strcpy(devtyp, "/NULL");
   cpgbeg(0, devtyp, 1, 1);
   cpgvstd();
 
diff --git a/C/test/tprj2.c b/C/test/tprj2.c
index af428dd..3c35d6f 100644
--- a/C/test/tprj2.c
+++ b/C/test/tprj2.c
@@ -57,7 +57,7 @@ int main()
 
 
   // PGPLOT initialization.
-  strcpy(text, "/xwindow");
+  strcpy(text, "/null");
   cpgbeg(0, text, 1, 1);
 
   // Define pen colours.
diff --git a/C/test/tspc.c b/C/test/tspc.c
index c885aca..053da69 100644
--- a/C/test/tspc.c
+++ b/C/test/tspc.c
@@ -66,7 +66,7 @@ int main()
 
 
   // PGPLOT initialization.
-  strcpy(text, "/xwindow");
+  strcpy(text, "/null");
   cpgbeg(0, text, 1, 1);
 
   naxisj = NSPEC;
diff --git a/C/test/ttab2.c b/C/test/ttab2.c
index 21425ab..96fcecb 100644
--- a/C/test/ttab2.c
+++ b/C/test/ttab2.c
@@ -74,7 +74,7 @@ int main()
 
 
   // PGPLOT initialization.
-  strcpy(text, "/xwindow");
+  strcpy(text, "/null");
   cpgbeg(0, text, 1, 1);
   cpgvstd();
   cpgsch(0.7f);
diff --git a/C/test/ttab3.c b/C/test/ttab3.c
index fbf6b4a..2c90aff 100644
--- a/C/test/ttab3.c
+++ b/C/test/ttab3.c
@@ -71,7 +71,7 @@ int main()
 
 
   // PGPLOT initialization.
-  strcpy(text, "/xwindow");
+  strcpy(text, "/null");
   cpgbeg(0, text, 1, 1);
   cpgvstd();
   cpgsch(0.7f);
diff --git a/C/test/twcsmix.c b/C/test/twcsmix.c
index 2f4d93e..27030c6 100644
--- a/C/test/twcsmix.c
+++ b/C/test/twcsmix.c
@@ -90,7 +90,7 @@ int main()
 
 
   // PGPLOT initialization.
-  strcpy(text, "/xwindow");
+  strcpy(text, "/null");
   cpgbeg(0, text, 1, 1);
 
   // Define pen colours.
diff --git a/Fortran/test/tcel1.f b/Fortran/test/tcel1.f
index 9e5d1eb..e94e63a 100644
--- a/Fortran/test/tcel1.f
+++ b/Fortran/test/tcel1.f
@@ -75,7 +75,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)
diff --git a/Fortran/test/tpih2.f b/Fortran/test/tpih2.f
index 4d86006..eca133b 100644
--- a/Fortran/test/tpih2.f
+++ b/Fortran/test/tpih2.f
@@ -129,7 +129,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()
 
diff --git a/Fortran/test/tprj2.f b/Fortran/test/tprj2.f
index 7a21d15..6b36dde 100644
--- a/Fortran/test/tprj2.f
+++ b/Fortran/test/tprj2.f
@@ -46,7 +46,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)
diff --git a/Fortran/test/tspc.f b/Fortran/test/tspc.f
index 4ba121f..7e9fd97 100644
--- a/Fortran/test/tspc.f
+++ b/Fortran/test/tspc.f
@@ -53,7 +53,7 @@
       NFAIL = 0
 
 *     PGPLOT initialization.
-      CALL PGBEG (0, '/xwindow', 1, 1)
+      CALL PGBEG (0, '/null', 1, 1)
 
       NAXISJ = NSPEC
       CRPIXJ = NAXISJ/2 + 1
diff --git a/Fortran/test/ttab2.f b/Fortran/test/ttab2.f
index 517c279..62a990a 100644
--- a/Fortran/test/ttab2.f
+++ b/Fortran/test/ttab2.f
@@ -70,7 +70,7 @@
 
 
 *     PGPLOT initialization.
-      CALL PGBEG (0, '/xwindow', 1, 1)
+      CALL PGBEG (0, '/null', 1, 1)
       CALL PGVSTD ()
       CALL PGSCH (0.7)
 
diff --git a/Fortran/test/ttab3.f b/Fortran/test/ttab3.f
index f41f743..55139c9 100644
--- a/Fortran/test/ttab3.f
+++ b/Fortran/test/ttab3.f
@@ -65,7 +65,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)
diff --git a/Fortran/test/twcsmix.f b/Fortran/test/twcsmix.f
index e0d22ed..2c3b613 100644
--- a/Fortran/test/twcsmix.f
+++ b/Fortran/test/twcsmix.f
@@ -87,7 +87,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)
diff --git a/pgsbox/cpgtest.c b/pgsbox/cpgtest.c
index 977216d..35fb603 100644
--- a/pgsbox/cpgtest.c
+++ b/pgsbox/cpgtest.c
@@ -64,7 +64,7 @@ int main()
   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;
diff --git a/pgsbox/pgtest.f b/pgsbox/pgtest.f
index 1cddffd..bad2e40 100644
--- a/pgsbox/pgtest.f
+++ b/pgsbox/pgtest.f
@@ -58,7 +58,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.