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

NAME

6       rdopkg-feature-actions - autogenerated from feature spec
7       `actions.feature`
8

SYNOPSIS

10       rdopkg is able to run single and multistep actions (commands)
11

SCENARIOS

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