1RDOPKG PATCH(7)                                                RDOPKG PATCH(7)
2
3
4

NAME

6       rdopkg-feature-patch - autogenerated from feature spec `patch.feature`
7

SYNOPSIS

9       Updating patches from patches branch is a core feature
10

SCENARIOS

12   rdopkg patch
13       ·   Given a distgit at Version 1.20.0 and Release 3,
14
15       ·   Given a patches branch with 5 patches,
16
17       ·   When I run rdopkg patch -l,
18
19       ·   Then command return code is 0,
20
21       ·   Then .spec file tag Release is 4%{?dist},
22
23       ·   Then .spec file has 5 patches defined,
24
25       ·   Then .spec file doesn’t contain patches_base,
26
27       ·   Then .spec file contains new changelog entry with 5 lines,
28
29       ·   Then .spec file tag Release is 4%{?dist},
30
31       ·   Then new commit was created,
32
33       ·   Then git is clean,
34
35       ·   Then last commit message is:
36
37           """
38           foo-bar-1.20.0-4
39
40
41           Changelog:
42           - Original Patch 5
43           - Original Patch 4
44           - Original Patch 3
45           - Original Patch 2
46           - Original Patch 1
47           """
48
49   rdopkg patch --no-bump
50       ·   Given a distgit at Version 1.20.0 and Release 3,
51
52       ·   Given a patches branch with 3 patches,
53
54       ·   When I run rdopkg patch --no-bump -l,
55
56       ·   Then .spec file tag Release is 3%{?dist},
57
58       ·   Then command return code is 0,
59
60       ·   Then .spec file has 3 patches defined,
61
62       ·   Then .spec file doesn’t contain patches_base,
63
64       ·   Then .spec file doesn’t contain new changelog entries,
65
66       ·   Then .spec file tag Release is 3%{?dist},
67
68       ·   Then new commit was created,
69
70       ·   Then git is clean,
71
72       ·   Then last commit message is:
73
74           """
75           Updated patches from master-patches
76           """
77
78   rdopkg patch --release-bump-index
79       ·   Given a distgit at Version 1.20.0 and Release 1.2.3.lul,
80
81       ·   Given a patches branch with 1 patches,
82
83       ·   When I run rdopkg patch -l --release-bump-index MINOR,
84
85       ·   Then .spec file has 1 patches defined,
86
87       ·   Then .spec file contains new changelog entry with 1 lines,
88
89       ·   Then .spec file tag Release is 1.3.3.lul%{?dist},
90
91       ·   Then new commit was created
92
93   rdopkg patch without version git tag
94       ·   Given a distgit,
95
96       ·   Given a patches branch with 3 patches without version git tag,
97
98       ·   When I run rdopkg patch -l,
99
100       ·   Then command return code is 1,
101
102       ·   Then no new commit was created,
103
104       ·   Then git is clean,
105
106       ·   Then rdopkg state file is not present,
107
108       ·   Then command output contains 'Invalid base patches branch git
109           reference: '
110
111   rdopkg update-patches basic
112       ·   Given a distgit at Version 1.0 and Release 23,
113
114       ·   Given a patches branch with 3 patches,
115
116       ·   When I run rdopkg update-patches,
117
118       ·   Then command return code is 0,
119
120       ·   Then .spec file tag Release is 23%{?dist},
121
122       ·   Then .spec file has 3 patches defined,
123
124       ·   Then .spec file doesn’t contain new changelog entries,
125
126       ·   Then new commit was created,
127
128       ·   Then git is clean,
129
130       ·   Then rdopkg state file is not present,
131
132       ·   Then command output contains Updated patches from master-patches,
133
134       ·   Then command output contains Requested distgit update finished, see
135           last commit.,
136
137       ·   Then last commit message is:
138
139           """
140           Updated patches from master-patches
141           """
142
143   rdopkg update-patches noop
144       ·   Given a distgit,
145
146       ·   Given a patches branch with 0 patches,
147
148       ·   When I run rdopkg update-patches,
149
150       ·   Then command return code is 0,
151
152       ·   Then no new commit was created,
153
154       ·   Then git is clean,
155
156       ·   Then rdopkg state file is not present,
157
158       ·   Then command output contains No changes to patches found
159
160   rdopkg patch --amend
161       ·   Given a distgit with Change-Id Ideadbeef1234,
162
163       ·   Given a patches branch with 5 patches,
164
165       ·   When I run rdopkg patch -l --amend,
166
167       ·   Then command return code is 0,
168
169       ·   Then .spec file tag Release is 3%{?dist},
170
171       ·   Then .spec file has 5 patches defined,
172
173       ·   Then .spec file doesn’t contain patches_base,
174
175       ·   Then .spec file contains new changelog entry with 5 lines,
176
177       ·   Then new commit was created,
178
179       ·   Then git is clean,
180
181       ·   Then last commit message is:
182
183           """
184           foo-bar-1.2.3-3
185
186
187           Changelog:
188           - Original Patch 5
189           - Original Patch 4
190           - Original Patch 3
191           - Original Patch 2
192           - Original Patch 1
193
194
195           Change-Id: Ideadbeef1234
196           """
197
198
199
200                                  04/08/2019                   RDOPKG PATCH(7)
Impressum