forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd1029bb
committed
Remove dynamic translation of regression test scripts, step 1.
pg_regress has long had provisions for dynamically substituting pathnames into regression test scripts and result files, but use of thatfeature has always been a serious pain in the neck, mainly becauseupdating the result files requires tedious manual editing. Let'sget rid of that in favor of passing down the paths in environmentvariables.In addition to being easier to maintain, this way is capable ofdealing with path names that require escaping at runtime, for examplepaths containing single-quote marks. (There are other stumblingblocks in the way of actually building in a path that looks likethat, but removing this one seems like a good thing to do.) The keycoding rule that makes that possible is to concatenate pieces of adynamically-variable string using psql's \set command, and then usethe :'variable' notation to quote and escape the string for the nextlevel of interpretation.In hopes of making this change more transparent to "git blame",I've split it into two steps. This commit adds the necessarypg_regress.c support and changes all the *.source files in-placeso that they no longer require any dynamic translation. The nextcommit will just "git mv" them into the regular sql/ and expected/directories.Discussion:https://postgr.es/m/1655733.1639871614@sss.pgh.pa.us1 parent33d3eea commitd1029bb
File tree
24 files changed
+477
-263
lines changed- contrib
- dblink
- input
- output
- file_fdw
- input
- output
- src
- pl/plpgsql/src
- input
- output
- test/regress
- input
- output
24 files changed
+477
-263
lines changedLines changed: 12 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
3 | 10 |
| |
4 | 11 |
| |
5 |
| - | |
| 12 | + | |
6 | 13 |
| |
7 | 14 |
| |
8 | 15 |
| |
9 | 16 |
| |
10 |
| - | |
| 17 | + | |
11 | 18 |
| |
12 | 19 |
| |
| 20 | + | |
| 21 | + | |
13 | 22 |
| |
14 |
| - | |
| 23 | + |
Lines changed: 10 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
2 | 7 |
| |
3 | 8 |
| |
4 |
| - | |
| 9 | + | |
5 | 10 |
| |
6 | 11 |
| |
7 | 12 |
| |
8 |
| - | |
| 13 | + | |
9 | 14 |
| |
| 15 | + | |
| 16 | + | |
10 | 17 |
| |
11 |
| - | |
| 18 | + |
Lines changed: 41 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 |
| |
6 | 9 |
| |
7 | 10 |
| |
| |||
14 | 17 |
| |
15 | 18 |
| |
16 | 19 |
| |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
17 | 36 |
| |
18 | 37 |
| |
19 | 38 |
| |
| |||
61 | 80 |
| |
62 | 81 |
| |
63 | 82 |
| |
| 83 | + | |
64 | 84 |
| |
65 | 85 |
| |
66 | 86 |
| |
67 | 87 |
| |
68 |
| - | |
| 88 | + | |
69 | 89 |
| |
| 90 | + | |
| 91 | + | |
70 | 92 |
| |
71 | 93 |
| |
72 | 94 |
| |
73 | 95 |
| |
74 |
| - | |
| 96 | + | |
75 | 97 |
| |
| 98 | + | |
| 99 | + | |
76 | 100 |
| |
77 | 101 |
| |
78 | 102 |
| |
79 | 103 |
| |
80 |
| - | |
| 104 | + | |
81 | 105 |
| |
82 | 106 |
| |
83 | 107 |
| |
| 108 | + | |
84 | 109 |
| |
85 | 110 |
| |
86 | 111 |
| |
87 | 112 |
| |
88 | 113 |
| |
89 | 114 |
| |
90 |
| - | |
| 115 | + | |
91 | 116 |
| |
92 | 117 |
| |
93 | 118 |
| |
| |||
119 | 144 |
| |
120 | 145 |
| |
121 | 146 |
| |
122 |
| - | |
| 147 | + | |
123 | 148 |
| |
124 | 149 |
| |
125 | 150 |
| |
| |||
143 | 168 |
| |
144 | 169 |
| |
145 | 170 |
| |
146 |
| - | |
| 171 | + | |
147 | 172 |
| |
148 | 173 |
| |
149 | 174 |
| |
150 | 175 |
| |
151 |
| - | |
| 176 | + | |
152 | 177 |
| |
153 | 178 |
| |
154 | 179 |
| |
| |||
170 | 195 |
| |
171 | 196 |
| |
172 | 197 |
| |
| 198 | + | |
173 | 199 |
| |
174 |
| - | |
| 200 | + | |
175 | 201 |
| |
176 | 202 |
| |
177 | 203 |
| |
178 | 204 |
| |
179 |
| - | |
180 |
| - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
181 | 209 |
| |
182 | 210 |
| |
183 | 211 |
| |
| |||
190 | 218 |
| |
191 | 219 |
| |
192 | 220 |
| |
| 221 | + | |
193 | 222 |
| |
194 |
| - | |
| 223 | + | |
195 | 224 |
| |
196 | 225 |
| |
197 | 226 |
| |
| |||
204 | 233 |
| |
205 | 234 |
| |
206 | 235 |
| |
207 |
| - | |
| 236 | + | |
208 | 237 |
| |
209 | 238 |
| |
210 | 239 |
| |
|
Lines changed: 40 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
| 4 | + | |
| 5 | + | |
4 | 6 |
| |
5 | 7 |
| |
6 | 8 |
| |
| |||
10 | 12 |
| |
11 | 13 |
| |
12 | 14 |
| |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
13 | 30 |
| |
14 | 31 |
| |
15 | 32 |
| |
| |||
77 | 94 |
| |
78 | 95 |
| |
79 | 96 |
| |
| 97 | + | |
80 | 98 |
| |
81 | 99 |
| |
82 | 100 |
| |
83 | 101 |
| |
84 |
| - | |
| 102 | + | |
85 | 103 |
| |
| 104 | + | |
86 | 105 |
| |
87 | 106 |
| |
88 | 107 |
| |
89 | 108 |
| |
90 |
| - | |
| 109 | + | |
91 | 110 |
| |
| 111 | + | |
92 | 112 |
| |
93 | 113 |
| |
94 | 114 |
| |
95 | 115 |
| |
96 |
| - | |
| 116 | + | |
97 | 117 |
| |
98 | 118 |
| |
| 119 | + | |
99 | 120 |
| |
100 | 121 |
| |
101 | 122 |
| |
102 | 123 |
| |
103 | 124 |
| |
104 | 125 |
| |
105 |
| - | |
| 126 | + | |
106 | 127 |
| |
107 | 128 |
| |
108 | 129 |
| |
| |||
176 | 197 |
| |
177 | 198 |
| |
178 | 199 |
| |
179 |
| - | |
| 200 | + | |
180 | 201 |
| |
181 | 202 |
| |
182 |
| - | |
| 203 | + | |
183 | 204 |
| |
184 | 205 |
| |
185 | 206 |
| |
| |||
226 | 247 |
| |
227 | 248 |
| |
228 | 249 |
| |
229 |
| - | |
| 250 | + | |
230 | 251 |
| |
231 | 252 |
| |
232 | 253 |
| |
233 |
| - | |
| 254 | + | |
234 | 255 |
| |
235 | 256 |
| |
236 | 257 |
| |
| |||
240 | 261 |
| |
241 | 262 |
| |
242 | 263 |
| |
243 |
| - | |
| 264 | + | |
244 | 265 |
| |
245 | 266 |
| |
246 | 267 |
| |
| |||
295 | 316 |
| |
296 | 317 |
| |
297 | 318 |
| |
| 319 | + | |
298 | 320 |
| |
299 |
| - | |
| 321 | + | |
300 | 322 |
| |
301 | 323 |
| |
302 | 324 |
| |
| |||
317 | 339 |
| |
318 | 340 |
| |
319 | 341 |
| |
320 |
| - | |
| 342 | + | |
| 343 | + | |
321 | 344 |
| |
322 | 345 |
| |
323 |
| - | |
| 346 | + | |
| 347 | + | |
324 | 348 |
| |
325 | 349 |
| |
326 | 350 |
| |
| |||
376 | 400 |
| |
377 | 401 |
| |
378 | 402 |
| |
| 403 | + | |
379 | 404 |
| |
380 |
| - | |
| 405 | + | |
381 | 406 |
| |
382 | 407 |
| |
383 | 408 |
| |
| |||
412 | 437 |
| |
413 | 438 |
| |
414 | 439 |
| |
415 |
| - | |
| 440 | + | |
416 | 441 |
| |
417 | 442 |
| |
418 | 443 |
| |
419 |
| - | |
| 444 | + | |
420 | 445 |
| |
421 | 446 |
| |
422 | 447 |
| |
|
0 commit comments
Comments
(0)