Accepting request 873040 from home:vulyanov:branches:Virtualization

- Add building of virt-tests

OBS-URL: https://build.opensuse.org/request/show/873040
OBS-URL: https://build.opensuse.org/package/show/Virtualization/kubevirt?expand=0&rev=29
This commit is contained in:
Dirk Mueller 2021-02-17 11:55:54 +00:00 committed by Git OBS Bridge
parent 0dcc66b11f
commit 58241ab6b1
2 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Feb 15 13:40:14 UTC 2021 - Vasily Ulyanov <vasily.ulyanov@suse.com>
- Add building of virt-tests
-------------------------------------------------------------------
Wed Jan 20 00:44:01 UTC 2021 - jfehlig@suse.com

View File

@ -96,6 +96,13 @@ Group: System/Packages
This contains the built YAML manifests used to install kubevirt into a
kubernetes installation with kubectl apply.
%package tests
Summary: Kubevirt functional tests
Group: System/Packages
%description tests
The package provides Kubevirt end-to-end tests.
%prep
%autosetup -p1
@ -148,6 +155,7 @@ KUBEVIRT_SOURCE_DATE_EPOCH="$(date -r LICENSE +%s)" \
KUBEVIRT_GIT_COMMIT='v%{version}' \
KUBEVIRT_GIT_VERSION='v%{version}' \
KUBEVIRT_GIT_TREE_STATE="clean" \
build_tests="true" \
./hack/build-go.sh install \
cmd/virtctl \
cmd/virt-api \
@ -173,6 +181,7 @@ install -p -m 0755 _out/cmd/virt-handler/virt-handler %{buildroot}%{_bindir}/
install -p -m 0755 _out/cmd/virt-launcher/virt-launcher %{buildroot}%{_bindir}/
install -p -m 0755 _out/cmd/virt-operator/virt-operator %{buildroot}%{_bindir}/
install -p -m 0755 _out/cmd/csv-generator/csv-generator %{buildroot}%{_bindir}/
install -p -m 0755 _out/tests/tests.test %{buildroot}%{_bindir}/virt-tests
mkdir -p %{buildroot}%{_datadir}/kube-virt
cp -r _out/manifests %{buildroot}%{_datadir}/kube-virt/
@ -181,6 +190,7 @@ cp -r _out/manifests %{buildroot}%{_datadir}/kube-virt/
# that uses the CaaSP privileged PSP. It can be used with CaaSP-based
# Kubernetes clusters.
install -m 644 %{S:1} %{buildroot}/%{_datadir}/kube-virt/manifests/release/
install -m 0644 tests/default-config.json %{buildroot}%{_datadir}/kube-virt
%files virtctl
%license LICENSE
@ -225,4 +235,11 @@ install -m 644 %{S:1} %{buildroot}/%{_datadir}/kube-virt/manifests/release/
%dir %{_datadir}/kube-virt
%{_datadir}/kube-virt/manifests
%files tests
%license LICENSE
%doc README.md
%dir %{_datadir}/kube-virt
%{_bindir}/virt-tests
%{_datadir}/kube-virt/default-config.json
%changelog