apply get_header_field enhancements from kobo and update unit test
This commit is contained in:
parent
f5066c5c6c
commit
a4131e354c
8 changed files with 98 additions and 7 deletions
BIN
tests/data/rpms/test-nopatch-1-1.fc24.nosrc.rpm
Normal file
BIN
tests/data/rpms/test-nopatch-1-1.fc24.nosrc.rpm
Normal file
Binary file not shown.
BIN
tests/data/rpms/test-nosrc-1-1.fc24.nosrc.rpm
Normal file
BIN
tests/data/rpms/test-nosrc-1-1.fc24.nosrc.rpm
Normal file
Binary file not shown.
BIN
tests/data/rpms/test-src-1-1.fc24.src.rpm
Normal file
BIN
tests/data/rpms/test-src-1-1.fc24.src.rpm
Normal file
Binary file not shown.
13
tests/data/specs/test-nopatch._spec
Normal file
13
tests/data/specs/test-nopatch._spec
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
Name: test-nopatch
|
||||
Version: 1
|
||||
Release: 1%{?dist}
|
||||
Summary: Testing source arch header fields
|
||||
|
||||
License: none
|
||||
Patch0: secret.patch
|
||||
Nopatch: 0
|
||||
|
||||
%description
|
||||
...
|
||||
|
||||
%files
|
||||
13
tests/data/specs/test-nosrc._spec
Normal file
13
tests/data/specs/test-nosrc._spec
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
Name: test-nosrc
|
||||
Version: 1
|
||||
Release: 1%{?dist}
|
||||
Summary: Testing source arch header fields
|
||||
|
||||
License: none
|
||||
Source0: secret.key
|
||||
Nosource: 0
|
||||
|
||||
%description
|
||||
...
|
||||
|
||||
%files
|
||||
11
tests/data/specs/test-src._spec
Normal file
11
tests/data/specs/test-src._spec
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
Name: test-src
|
||||
Version: 1
|
||||
Release: 1%{?dist}
|
||||
Summary: Testing source arch header fields
|
||||
|
||||
License: none
|
||||
|
||||
%description
|
||||
...
|
||||
|
||||
%files
|
||||
Loading…
Add table
Add a link
Reference in a new issue