1RDOPKG ACTIONS(7) RDOPKG ACTIONS(7)
2
3
4
6 rdopkg-feature-actions - autogenerated from feature spec
7 `actions.feature`
8
10 rdopkg is able to run single and multistep actions (commands)
11
13 state file doesn’t affect new actions
14 · Given a distgit at Version 1.1.1,
15
16 · When I run rdopkg new-version,
17
18 · When I change .spec file tag Version to 2.2.2,
19
20 · When I run rdopkg pkgenv,
21
22 · Then command output contains Version:\s+2.2.2
23
24 assume .spec does not containe patches_base by default
25 · Given a distgit at Version 1.1.1,
26
27 · Then .spec file doesn’t contain patches_base,
28
29 · Then .spec file doesn’t contain patches_ignore
30
31 add magic_comment patches_base when already_set
32 · Given a distgit at Version 1.1.1,
33
34 · Then .spec file doesn’t contain patches_base,
35
36 · When I run rdopkg set-magic-comment patches_base foo,
37
38 · Then .spec file contains patches_base=foo,
39
40 · When I run rdopkg set-magic-comment patches_base v1.1.1,
41
42 · Then .spec file contains patches_base=v1.1.1
43
44 add magic_comment patches_base empty when already set
45 · Given a distgit at Version 1.1.1,
46
47 · Then .spec file doesn’t contain patches_base,
48
49 · When I run rdopkg set-magic-comment patches_base foo,
50
51 · Then .spec file contains patches_base=foo,
52
53 · When I run rdopkg set-magic-comment patches_base '',
54
55 · Then .spec file contains patches_base=
56
57 add magic_comment patches_base and patches_ignore when not present
58 · Given a distgit at Version 1.1.1,
59
60 · When I run rdopkg set-magic-comment patches_base v1.1.1,
61
62 · Then .spec file contains patches_base=v1.1.1,
63
64 · When I run rdopkg set-magic-comment patches_ignore DROP-IN-RPM,
65
66 · Then .spec file contains patches_ignore
67
68 add magic_comment only patches_ignore
69 · Given a distgit at Version 1.1.1,
70
71 · Then .spec file doesn’t contain patches_base,
72
73 · Then .spec file doesn’t contain patches_ignore,
74
75 · When I run rdopkg set-magic-comment patches_ignore DROP-IN-RPM,
76
77 · Then .spec file contains patches_ignore
78
79 set magic_comment to empty string
80 · Given a distgit at Version 1.1.1,
81
82 · Then .spec file doesn’t contain patches_base,
83
84 · Then .spec file doesn’t contain patches_ignore,
85
86 · When I run rdopkg set-magic-comment patches_ignore '',
87
88 · Then .spec file doesn’t contain patches_ignore
89
90
91
92 08/21/2020 RDOPKG ACTIONS(7)