mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-07 21:58:41 +02:00
Add behave tests
This commit is contained in:
4
behave/fixtures/pac/multibuild-pkg-1._multibuild
Normal file
4
behave/fixtures/pac/multibuild-pkg-1._multibuild
Normal file
@@ -0,0 +1,4 @@
|
||||
<multibuild>
|
||||
<flavor>flavor1</flavor>
|
||||
<flavor>flavor2</flavor>
|
||||
</multibuild>
|
4
behave/fixtures/pac/multibuild-pkg-1.changes
Normal file
4
behave/fixtures/pac/multibuild-pkg-1.changes
Normal file
@@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 1 11:22:33 UTC 2022 - Geeko Packager <email@example.com>
|
||||
|
||||
- Release upstream version 1
|
98
behave/fixtures/pac/multibuild-pkg-1.spec
Normal file
98
behave/fixtures/pac/multibuild-pkg-1.spec
Normal file
@@ -0,0 +1,98 @@
|
||||
%define flavor @BUILD_FLAVOR@%{nil}
|
||||
|
||||
# create own debug packages, because the auto-generated would get removed due to being empty
|
||||
%undefine _debuginfo_subpackages
|
||||
|
||||
|
||||
Name: multibuild-pkg
|
||||
Version: 1
|
||||
Release: 0
|
||||
License: GPL-2.0
|
||||
Summary: Test package
|
||||
URL: https://example.com/test-package/
|
||||
|
||||
|
||||
%description
|
||||
desc
|
||||
|
||||
|
||||
%prep
|
||||
|
||||
|
||||
%build
|
||||
|
||||
|
||||
%install
|
||||
|
||||
|
||||
|
||||
|
||||
# no flavor
|
||||
%if "%{flavor}" == "%{nil}"
|
||||
%files
|
||||
|
||||
|
||||
%package debuginfo
|
||||
Summary: Test debuginfo package
|
||||
|
||||
%description debuginfo
|
||||
desc
|
||||
|
||||
%files debuginfo
|
||||
%ghost /usr/lib/debug/multibuild-pkg.debug
|
||||
|
||||
|
||||
%package debugsource
|
||||
Summary: Test debugsource package
|
||||
|
||||
%description debugsource
|
||||
desc
|
||||
|
||||
%files debugsource
|
||||
%ghost %{_prefix}/src/debug/%{name}-%{version}-%{release}.%{arch}/main.c
|
||||
%endif
|
||||
|
||||
|
||||
# flavor1
|
||||
%if "%{flavor}" == "flavor1"
|
||||
%package -n %{name}-%{flavor}
|
||||
Summary: Multibuild test package, flavor1
|
||||
|
||||
%description -n %{name}-%{flavor}
|
||||
desc
|
||||
|
||||
%files -n %{name}-%{flavor}
|
||||
|
||||
%package -n %{name}-%{flavor}-debuginfo
|
||||
Summary: Test debuginfo package
|
||||
|
||||
%description -n %{name}-%{flavor}-debuginfo
|
||||
desc
|
||||
|
||||
%files -n %{name}-%{flavor}-debuginfo
|
||||
%ghost %{_prefix}/lib/debug/multibuild-pkg.debug
|
||||
%endif
|
||||
|
||||
|
||||
# flavor2
|
||||
%if "%{flavor}" == "flavor2"
|
||||
%package -n %{name}-%{flavor}
|
||||
Summary: Multibuild test package, flavor2
|
||||
|
||||
%description -n %{name}-%{flavor}
|
||||
desc
|
||||
|
||||
%files -n %{name}-%{flavor}
|
||||
|
||||
%package -n %{name}-%{flavor}-debuginfo
|
||||
Summary: Test debuginfo package
|
||||
|
||||
%description -n %{name}-%{flavor}-debuginfo
|
||||
desc
|
||||
|
||||
%files -n %{name}-%{flavor}-debuginfo
|
||||
%ghost %{_prefix}/lib/debug/multibuild-pkg.debug
|
||||
%endif
|
||||
|
||||
|
||||
%changelog
|
4
behave/fixtures/pac/test-pkgA-1.changes
Normal file
4
behave/fixtures/pac/test-pkgA-1.changes
Normal file
@@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 3 11:22:33 UTC 2022 - Geeko Packager <email@example.com>
|
||||
|
||||
- Release upstream version 1
|
25
behave/fixtures/pac/test-pkgA-1.spec
Normal file
25
behave/fixtures/pac/test-pkgA-1.spec
Normal file
@@ -0,0 +1,25 @@
|
||||
Name: test-pkgA
|
||||
Version: 1
|
||||
Release: 0
|
||||
License: GPL-2.0
|
||||
Summary: Test package
|
||||
URL: https://example.com/test-package/
|
||||
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
|
||||
%description
|
||||
desc
|
||||
|
||||
|
||||
%prep
|
||||
|
||||
|
||||
%install
|
||||
|
||||
|
||||
%files
|
||||
|
||||
|
||||
%changelog
|
4
behave/fixtures/pac/test-pkgA-2.changes
Normal file
4
behave/fixtures/pac/test-pkgA-2.changes
Normal file
@@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 4 11:22:33 UTC 2022 - Geeko Packager <email@example.com>
|
||||
|
||||
- Release upstream version 2
|
25
behave/fixtures/pac/test-pkgA-2.spec
Normal file
25
behave/fixtures/pac/test-pkgA-2.spec
Normal file
@@ -0,0 +1,25 @@
|
||||
Name: test-pkgA
|
||||
Version: 2
|
||||
Release: 0
|
||||
License: GPL-2.0
|
||||
Summary: Test package
|
||||
URL: https://example.com/test-package/
|
||||
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
|
||||
%description
|
||||
desc
|
||||
|
||||
|
||||
%prep
|
||||
|
||||
|
||||
%install
|
||||
|
||||
|
||||
%files
|
||||
|
||||
|
||||
%changelog
|
4
behave/fixtures/pac/test-pkgA-3.changes
Normal file
4
behave/fixtures/pac/test-pkgA-3.changes
Normal file
@@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 5 11:22:33 UTC 2022 - Geeko Packager <email@example.com>
|
||||
|
||||
- Release upstream version 3
|
25
behave/fixtures/pac/test-pkgA-3.spec
Normal file
25
behave/fixtures/pac/test-pkgA-3.spec
Normal file
@@ -0,0 +1,25 @@
|
||||
Name: test-pkgA
|
||||
Version: 3
|
||||
Release: 0
|
||||
License: GPL-2.0
|
||||
Summary: Test package
|
||||
URL: https://example.com/test-package/
|
||||
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
|
||||
%description
|
||||
desc
|
||||
|
||||
|
||||
%prep
|
||||
|
||||
|
||||
%install
|
||||
|
||||
|
||||
%files
|
||||
|
||||
|
||||
%changelog
|
4
behave/fixtures/pac/test-pkgB-1.changes
Normal file
4
behave/fixtures/pac/test-pkgB-1.changes
Normal file
@@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 1 11:22:33 UTC 2022 - Geeko Packager <email@example.com>
|
||||
|
||||
- Release upstream version 1
|
25
behave/fixtures/pac/test-pkgB-1.spec
Normal file
25
behave/fixtures/pac/test-pkgB-1.spec
Normal file
@@ -0,0 +1,25 @@
|
||||
Name: test-pkgB
|
||||
Version: 1
|
||||
Release: 0
|
||||
License: GPL-2.0
|
||||
Summary: Test package
|
||||
URL: https://example.com/test-package/
|
||||
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
|
||||
%description
|
||||
desc
|
||||
|
||||
|
||||
%prep
|
||||
|
||||
|
||||
%install
|
||||
|
||||
|
||||
%files
|
||||
|
||||
|
||||
%changelog
|
4
behave/fixtures/pac/test-pkgB-2.changes
Normal file
4
behave/fixtures/pac/test-pkgB-2.changes
Normal file
@@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 2 11:22:33 UTC 2022 - Geeko Packager <email@example.com>
|
||||
|
||||
- Release upstream version 2
|
25
behave/fixtures/pac/test-pkgB-2.spec
Normal file
25
behave/fixtures/pac/test-pkgB-2.spec
Normal file
@@ -0,0 +1,25 @@
|
||||
Name: test-pkgB
|
||||
Version: 2
|
||||
Release: 0
|
||||
License: GPL-2.0
|
||||
Summary: Test package
|
||||
URL: https://example.com/test-package/
|
||||
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
|
||||
%description
|
||||
desc
|
||||
|
||||
|
||||
%prep
|
||||
|
||||
|
||||
%install
|
||||
|
||||
|
||||
%files
|
||||
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user