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 MINOR
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 --release-bump-index 0 (disable release bump)
94       ·   Given a distgit at Version 1.20.0 and Release 1.2.3.lul,
95
96       ·   Given a patches branch with 1 patches,
97
98       ·   When I run rdopkg patch -l --release-bump-index 0,
99
100       ·   Then .spec file has 1 patches defined,
101
102       ·   Then .spec file contains new changelog entry with 1 lines,
103
104       ·   Then .spec file tag Release is 1.2.3.lul%{?dist},
105
106       ·   Then new commit was created
107
108   rdopkg patch without version git tag
109       ·   Given a distgit,
110
111       ·   Given a patches branch with 3 patches without version git tag,
112
113       ·   When I run rdopkg patch -l,
114
115       ·   Then command return code is 1,
116
117       ·   Then no new commit was created,
118
119       ·   Then git is clean,
120
121       ·   Then rdopkg state file is not present,
122
123       ·   Then command output contains 'Invalid base patches branch git
124           reference: '
125
126   rdopkg update-patches basic
127       ·   Given a distgit at Version 1.0 and Release 23,
128
129       ·   Given a patches branch with 3 patches,
130
131       ·   When I run rdopkg update-patches,
132
133       ·   Then command return code is 0,
134
135       ·   Then .spec file tag Release is 23%{?dist},
136
137       ·   Then .spec file has 3 patches defined,
138
139       ·   Then .spec file doesn’t contain new changelog entries,
140
141       ·   Then new commit was created,
142
143       ·   Then git is clean,
144
145       ·   Then rdopkg state file is not present,
146
147       ·   Then command output contains Updated patches from master-patches,
148
149       ·   Then command output contains Requested distgit update finished, see
150           last commit.,
151
152       ·   Then last commit message is:
153
154           """
155           Updated patches from master-patches
156           """
157
158   rdopkg update-patches noop
159       ·   Given a distgit,
160
161       ·   Given a patches branch with 0 patches,
162
163       ·   When I run rdopkg update-patches,
164
165       ·   Then command return code is 0,
166
167       ·   Then no new commit was created,
168
169       ·   Then git is clean,
170
171       ·   Then rdopkg state file is not present,
172
173       ·   Then command output contains No changes to patches found
174
175   rdopkg patch --amend
176       ·   Given a distgit with Change-Id Ideadbeef1234,
177
178       ·   Given a patches branch with 5 patches,
179
180       ·   When I run rdopkg patch -l --amend,
181
182       ·   Then command return code is 0,
183
184       ·   Then .spec file tag Release is 3%{?dist},
185
186       ·   Then .spec file has 5 patches defined,
187
188       ·   Then .spec file doesn’t contain patches_base,
189
190       ·   Then .spec file contains new changelog entry with 5 lines,
191
192       ·   Then new commit was created,
193
194       ·   Then git is clean,
195
196       ·   Then 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/14/2019                   RDOPKG PATCH(7)
Impressum