From 0531eea736b7d6046a1070ca996d271cbba6edf9 Mon Sep 17 00:00:00 2001 From: Ed Santiago Date: Tue, 15 Oct 2019 13:25:53 -0600 Subject: [PATCH] New subpackage: skopeo-tests ...intended for use in fedora gating tests. Subpackage already exists in RHEL8. Signed-off-by: Ed Santiago --- skopeo.spec | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/skopeo.spec b/skopeo.spec index 1ac5450..b9ae922 100644 --- a/skopeo.spec +++ b/skopeo.spec @@ -261,6 +261,20 @@ Obsoletes: %{name}-containers <= 1:0.1.31-2 This package installs a default signature store configuration and a default policy under `/etc/containers/`. +%package tests +Summary: Tests for %{name} + +Requires: %{name} = %{epoch}:%{version}-%{release} +Requires: bats +Requires: gnupg +Requires: jq +Requires: podman + +%description tests +%{summary} + +This package contains system tests for %{name} + %prep %autosetup -Sgit -n %{name}-%{commit0} @@ -316,6 +330,10 @@ ln -s %{_sysconfdir}/pki/entitlement %{buildroot}%{_datadir}/rhel/secrets/etc-pk ln -s %{_sysconfdir}/rhsm %{buildroot}%{_datadir}/rhel/secrets/rhsm ln -s %{_sysconfdir}/yum.repos.d/redhat.repo %{buildroot}%{_datadir}/rhel/secrets/rhel7.repo +# system tests +install -d -p %{buildroot}/%{_datadir}/%{name}/test/system +cp -pav systemtest/* %{buildroot}/%{_datadir}/%{name}/test/system/ + # shareable directory for containers mkdir -p %{buildroot}/var/srv/containers mkdir -p %{buildroot}/srv/containers @@ -407,6 +425,10 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath} %dir %{_datadir}/bash-completion/completions %{_datadir}/bash-completion/completions/%{name} +%files tests +%license LICENSE +%{_datadir}/%{name}/test + %changelog * Thu Oct 03 2019 RH Container Bot - 1:0.1.40-0.13.dev.gitf72e39f - autobuilt f72e39f