forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit46dea24
committed
Add TAP test for archive_cleanup_command and recovery_end_command
This adds tests checking for the execution of both commands. Therecovery test 002_archiving.pl is nicely adapted to that, as promotionis triggered already twice there, and even if any of those commands failthey don't affect recovery or promotion.A command success is checked using a file generated by an "echo"command, that should be able to work in all the buildfarm environments,even Msys (but we'll know soon about that). Command failure is testedwith an "echo" command that points to a path that does not exist,scanning the backend logs to make sure that the failure happens. Bothrely on the backend triggering the commands from the root of the datafolder, making its logic more robust.Thanks to Neha Sharma for the extra tests on Windows.Author: Amul Sul, Michael PaquierReviewed-by: Andres Freund, Euler TaveiraDiscussion:https://postgr.es/m/CAAJ_b95R_c4T5moq30qsybSU=eDzDHm=4SPiAWaiMWc2OW7=1Q@mail.gmail.com1 parentcc1853b commit46dea24
1 file changed
+46
-1
lines changedLines changed: 46 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
31 | 42 |
| |
32 | 43 |
| |
33 | 44 |
| |
| |||
36 | 47 |
| |
37 | 48 |
| |
38 | 49 |
| |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
39 | 54 |
| |
40 | 55 |
| |
41 | 56 |
| |
| |||
53 | 68 |
| |
54 | 69 |
| |
55 | 70 |
| |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
56 | 79 |
| |
57 | 80 |
| |
58 | 81 |
| |
| |||
62 | 85 |
| |
63 | 86 |
| |
64 | 87 |
| |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
65 | 92 |
| |
66 | 93 |
| |
67 | 94 |
| |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
68 | 103 |
| |
69 | 104 |
| |
| 105 | + | |
| 106 | + | |
| 107 | + | |
70 | 108 |
| |
71 | 109 |
| |
72 | 110 |
| |
| |||
75 | 113 |
| |
76 | 114 |
| |
77 | 115 |
| |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + |
0 commit comments
Comments
(0)