Refactor depsolving tests
This adds a new test for Requires(pre) and (post). The general structure of the test now makes it easy to use the same test scenarios for different backend. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
e00776a413
commit
ad23efd323
15 changed files with 309 additions and 79 deletions
42
tests/data/specs/dummy-perl.spec
Normal file
42
tests/data/specs/dummy-perl.spec
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
Name: dummy-perl
|
||||
Version: 1.0.0
|
||||
Release: 1
|
||||
License: LGPLv2
|
||||
Summary: A dummy perl package
|
||||
Requires(pre): dummy-perl-macros
|
||||
Requires(post): dummy-perl-utils
|
||||
|
||||
%description
|
||||
A dummy perl package. This packages demonstrates a Requires(pre) and
|
||||
Requires(post) dependencies.
|
||||
|
||||
%package macros
|
||||
Summary: A dummy perl-macros package
|
||||
|
||||
%description macros
|
||||
A dummy perl-macros package
|
||||
|
||||
%package utils
|
||||
Summary: A dummy perl-utils package
|
||||
|
||||
%description utils
|
||||
A dummy perl-utils package
|
||||
|
||||
|
||||
%build
|
||||
echo OK
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%files
|
||||
%files macros
|
||||
%files utils
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Jan 23 2017 Lubomír Sedlář <lsedlar@redhat.com> - 1.0.0-1
|
||||
- First release
|
||||
Loading…
Add table
Add a link
Reference in a new issue