forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6bd356c
committed
Add TAP tests for pg_dump
This TAP test suite will create a new cluster, populate it based onthe 'create_sql' values in the '%tests' hash, run all of the runsdefined in the '%pgdump_runs' hash, and then for each test in the'%tests' hash, compare each run's output the the regular expressiondefined for the test under the 'like' and 'unlike' functions, asappropriate.While this test suite covers a fair bit of ground (67% of pg_dump.cand quite a bit of the other files in src/bin/pg_dump), there isstill quite a bit which remains to be added to provide better codecoverage. Still, this is quite a bit better than we had, and hasfound a few bugs already (note that the CREATE TRANSFORM test iscommented out, as it is currently failing).Idea for using the TAP system from Tom, though all of the code is mine.1 parente1b120a commit6bd356c
File tree
13 files changed
+3497
-1
lines changed- src
- bin/pg_dump
- t
- test/modules
- test_pg_dump
- expected
- sql
- t
13 files changed
+3497
-1
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
| 45 | + | |
| 46 | + | |
| 47 | + | |
45 | 48 |
| |
46 | 49 |
| |
47 | 50 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1564 | 1564 |
| |
1565 | 1565 |
| |
1566 | 1566 |
| |
1567 |
| - | |
| 1567 | + | |
1568 | 1568 |
| |
1569 | 1569 |
| |
1570 | 1570 |
| |
|
Lines changed: 42 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 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 | + |
0 commit comments
Comments
(0)