From cb625225fa792d570aa89de8e1a5582d33cb71c9 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: May 07 2019 05:35:29 +0000 Subject: Run tests in infrastructure Signed-off-by: Igor Gnatenko --- diff --git a/home-0.3.3-fix-metadata.diff b/home-0.3.3-fix-metadata.diff deleted file mode 100644 index 3758cf2..0000000 --- a/home-0.3.3-fix-metadata.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- home-0.3.3/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ home-0.3.3/Cargo.toml 2018-05-12T08:50:15.923844+02:00 -@@ -20,7 +20,3 @@ - repository = "https://github.com/brson/home" - [target."cfg(windows)".dependencies.scopeguard] - version = "0.3" -- --[target."cfg(windows)".dependencies.winapi] --version = "0.3" --features = ["errhandlingapi", "handleapi", "processthreadsapi", "std", "winerror", "winnt", "userenv"] diff --git a/home-fix-metadata.diff b/home-fix-metadata.diff new file mode 100644 index 0000000..0a8a5b2 --- /dev/null +++ b/home-fix-metadata.diff @@ -0,0 +1,12 @@ +--- home-0.3.4/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ home-0.3.4/Cargo.toml 2019-05-07T05:35:00.064849+00:00 +@@ -18,9 +18,3 @@ + documentation = "https://docs.rs/home" + license = "MIT/Apache-2.0" + repository = "https://github.com/brson/home" +-[target."cfg(windows)".dependencies.scopeguard] +-version = "0.3" +- +-[target."cfg(windows)".dependencies.winapi] +-version = "0.3" +-features = ["errhandlingapi", "handleapi", "processthreadsapi", "std", "winerror", "winnt", "userenv"] diff --git a/rust-home.spec b/rust-home.spec index d75009a..4b72748 100644 --- a/rust-home.spec +++ b/rust-home.spec @@ -1,27 +1,26 @@ -# Generated by rust2rpm -%bcond_without check +# Generated by rust2rpm-9-1.fc31 +%bcond_with check %global debug_package %{nil} %global crate home Name: rust-%{crate} Version: 0.3.4 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Shared definitions of home directories # Upstream license specification: MIT/Apache-2.0 # https://github.com/brson/home/issues/2 License: MIT or ASL 2.0 URL: https://crates.io/crates/home -Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +Source: %{crates_source} # Initial patched metadata # * No windows -Patch0: home-0.3.3-fix-metadata.diff +Patch0: home-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -BuildRequires: (crate(scopeguard/default) >= 0.3.0 with crate(scopeguard/default) < 0.4.0) %global _description \ Shared definitions of home directories. @@ -54,7 +53,7 @@ which use "default" feature of "%{crate}" crate. %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep -%autosetup -n %{crate}-%{version} -p1 +%autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %build @@ -69,6 +68,9 @@ which use "default" feature of "%{crate}" crate. %endif %changelog +* Tue May 07 07:34:31 CEST 2019 Igor Gnatenko - 0.3.4-3 +- Run tests in infrastructure + * Sat Feb 02 2019 Fedora Release Engineering - 0.3.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/tests/.fmf/version b/tests/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/tests/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/tests/provision.fmf b/tests/provision.fmf new file mode 100644 index 0000000..503a97c --- /dev/null +++ b/tests/provision.fmf @@ -0,0 +1,5 @@ +--- +standard-inventory-qcow2: + qemu: + # `cargo test` usually eats more than 1G. + m: 4G diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..98ef480 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,13 @@ +--- +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + repositories: + - repo: "https://src.fedoraproject.org/tests/rust.git" + dest: rust + tests: + - rust/cargo-test + environment: + pkg: rust-home