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