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