From 72ad847dbe7943df2f6644915e28d9f92b64d5d0 Mon Sep 17 00:00:00 2001 From: Jindrich Novy Date: Fri, 1 Oct 2021 12:43:30 +0200 Subject: [PATCH] skopeo-1.4.1-0.12.el9 - add skopeo tests from Fedora - Related: #2000051 Signed-off-by: Jindrich Novy --- skopeo.spec | 6 +++++- tests/test_skopeo.sh | 14 ++++++++++++++ tests/test_skopeo.yml | 16 ++++++++++++++++ tests/tests.yml | 1 + 4 files changed, 36 insertions(+), 1 deletion(-) create mode 100755 tests/test_skopeo.sh create mode 100644 tests/test_skopeo.yml create mode 100644 tests/tests.yml diff --git a/skopeo.spec b/skopeo.spec index c6c045d..1d1b9e9 100644 --- a/skopeo.spec +++ b/skopeo.spec @@ -20,7 +20,7 @@ go build -buildmode pie -compiler gc -tags="rpm_crashtraceback libtrust_openssl Epoch: 1 Name: skopeo Version: 1.4.1 -Release: 0.11%{?dist} +Release: 0.12%{?dist} Summary: Inspect container images and repositories on registries License: ASL 2.0 URL: https://%{import_path} @@ -121,6 +121,10 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath} %{_datadir}/%{name}/test %changelog +* Fri Oct 01 2021 Jindrich Novy - 1:1.4.1-0.12 +- add skopeo tests from Fedora +- Related: #2000051 + * Fri Oct 01 2021 Jindrich Novy - 1:1.4.1-0.11 - update to the latest content of https://github.com/containers/skopeo/tree/main (https://github.com/containers/skopeo/commit/53cf287) diff --git a/tests/test_skopeo.sh b/tests/test_skopeo.sh new file mode 100755 index 0000000..561b3fb --- /dev/null +++ b/tests/test_skopeo.sh @@ -0,0 +1,14 @@ +#!/bin/bash -e + +# Log program and kernel versions +echo "Important package versions:" +( + uname -r + rpm -qa | egrep 'skopeo|podman|conmon|crun|runc|iptable|slirp|systemd' | sort +) | sed -e 's/^/ /' + +# Log environment; or at least the useful bits +echo "Environment:" +env | grep -v LS_COLORS= | sort | sed -e 's/^/ /' + +SKOPEO_BINARY=/usr/bin/skopeo bats /usr/share/skopeo/test/system diff --git a/tests/test_skopeo.yml b/tests/test_skopeo.yml new file mode 100644 index 0000000..0c73d85 --- /dev/null +++ b/tests/test_skopeo.yml @@ -0,0 +1,16 @@ +--- +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + - container + required_packages: + - bats + - skopeo + - skopeo-tests + tests: + - root-test: + dir: ./ + run: ./test_skopeo.sh + timeout: 15m diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..aa28816 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1 @@ +- import_playbook: test_skopeo.yml