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

NAME

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

SYNOPSIS

10       Displaying package environment details is a core feature.
11

SCENARIOS

13   rdopkg pkgenv basic usage
14Given a distgit at Version 1.0.0 and Release 0.1,
15
16Given a patches branch with 2 patches,
17
18When I run rdopkg pkgenv,
19
20Then command output contains Patches style:\s+branch,
21
22Then command output contains Patches base:\s+N/A,
23
24Then command output contains Patches base ref:\s+1.0.0 : existing
25           git tag,
26
27Then command output contains Version:\s+1.0.0,
28
29Then command output contains VR:\s+1:1.0.0-0.1,
30
31Then command output contains Release style:\s+generic,
32
33Then command output contains Rls bump index:\s+last-numeric,
34
35Then command output contains Local patches branch:\s+master-patches
36           : \w+,
37
38Then no new commit was created
39
40   rdopkg pkgenv without version tag and patches branch
41Given a distgit at Version 0.1 and Release 2,
42
43When I run rdopkg pkgenv,
44
45Then command output contains VR:\s+1:0.1-2,
46
47Then command output contains Patches base:\s+N/A,
48
49Then command output contains Patches base ref:\s+0.1 : invalid git
50           reference,
51
52Then command output contains Local patches branch:\s+master-patches
53           : not found
54
55   rdopkg pkgenv with valid patches_base
56Given a distgit at Version 23 and Release 69,
57
58Given a patches branch with 2 patches,
59
60When I set .spec file patches_base to existing commit +42,
61
62When I run rdopkg pkgenv,
63
64Then command output contains Version:\s+23,
65
66Then command output contains VR:\s+1:23-69,
67
68Then command output contains Patches base:\s+\w+\+42,
69
70Then command output contains Patches base ref:\s+\w+ : existing git
71           commit,
72
73Then command output contains Local patches branch:\s+master-patches
74           : \w+
75
76   rdopkg pkgenv with invalid patches_base
77Given a distgit at Version 0 and Release 0,
78
79Given a patches branch with 2 patches,
80
81When I set .spec file patches_base=OVER+9000,
82
83When I run rdopkg pkgenv,
84
85Then command output contains Version:\s+0,
86
87Then command output contains VR:\s+1:0-0,
88
89Then command output contains Patches base:\s+OVER\+9000,
90
91Then command output contains Patches base ref:\s+OVER : invalid git
92           reference
93
94
95
96                                  10/04/2023                  RDOPKG PKGENV(7)
Impressum