forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1692080
committed
Refactor TAP test code for file comparisons into new routine in Utils.pm
This unifies the output used should any differences be found in thefiles provided, information that 027_stream_regress did not show onfailures. TAP tests of pg_combinebackup and pg_upgrade now rely on therefactored routine, reducing the dependency to the diff command. Thecallers of this routine can optionally specify a custom line-comparisonfunction.There are a couple of tests that still use directly a diff command:001_pg_bsd_indent, 017_shm and test_json_parser's 003. These rely ondifferent properties and are left out for now.Extracted from a larger patch by the same author.Author: Ashutosh BapatDiscussion:https://postgr.es/m/Z6RQS-tMzGYjlA-H@paquier.xyz1 parentecb8226 commit1692080
File tree
4 files changed
+53
-43
lines changed- src
- bin
- pg_combinebackup/t
- pg_upgrade/t
- test
- perl/PostgreSQL/Test
- recovery/t
4 files changed
+53
-43
lines changedLines changed: 2 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
192 | 192 |
| |
193 | 193 |
| |
194 | 194 |
| |
195 |
| - | |
| 195 | + | |
196 | 196 |
| |
| 197 | + | |
197 | 198 |
| |
198 | 199 |
| |
199 | 200 |
| |
200 | 201 |
| |
201 |
| - | |
202 |
| - | |
203 |
| - | |
204 |
| - | |
205 |
| - | |
206 |
| - | |
207 |
| - | |
208 |
| - | |
209 |
| - | |
210 |
| - | |
211 |
| - | |
212 |
| - | |
213 |
| - | |
214 |
| - | |
215 |
| - | |
216 |
| - | |
217 | 202 |
| |
218 | 203 |
|
Lines changed: 4 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
10 |
| - | |
11 |
| - | |
| 9 | + | |
| 10 | + | |
12 | 11 |
| |
13 | 12 |
| |
14 | 13 |
| |
| |||
515 | 514 |
| |
516 | 515 |
| |
517 | 516 |
| |
518 |
| - | |
519 |
| - | |
520 |
| - | |
521 |
| - | |
522 |
| - | |
523 |
| - | |
524 |
| - | |
525 |
| - | |
526 |
| - | |
527 |
| - | |
528 |
| - | |
529 |
| - | |
530 |
| - | |
531 |
| - | |
532 |
| - | |
| 517 | + | |
| 518 | + | |
533 | 519 |
| |
534 | 520 |
|
Lines changed: 41 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
| 53 | + | |
53 | 54 |
| |
54 | 55 |
| |
55 | 56 |
| |
| |||
70 | 71 |
| |
71 | 72 |
| |
72 | 73 |
| |
| 74 | + | |
73 | 75 |
| |
74 | 76 |
| |
75 | 77 |
| |
| |||
773 | 775 |
| |
774 | 776 |
| |
775 | 777 |
| |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
776 | 817 |
| |
777 | 818 |
| |
778 | 819 |
| |
|
Lines changed: 6 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
120 | 120 |
| |
121 | 121 |
| |
122 | 122 |
| |
123 |
| - | |
124 |
| - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
125 | 126 |
| |
126 | 127 |
| |
127 | 128 |
| |
| |||
150 | 151 |
| |
151 | 152 |
| |
152 | 153 |
| |
153 |
| - | |
154 |
| - | |
155 |
| - | |
156 |
| - | |
157 |
| - | |
158 |
| - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
159 | 157 |
| |
160 | 158 |
| |
161 | 159 |
| |
|
0 commit comments
Comments
(0)