From b60625fce8cccc841bb4f57295b7cc58f574f094 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 5 Mar 2019 20:16:29 +0100 Subject: [PATCH] Run tests in infrastructure Signed-off-by: Igor Gnatenko --- rust-time.spec | 11 +++++++---- tests/.fmf/version | 1 + tests/provision.fmf | 5 +++++ tests/tests.yml | 13 +++++++++++++ time-fix-metadata.diff | 4 ++-- 5 files changed, 28 insertions(+), 6 deletions(-) create mode 100644 tests/.fmf/version create mode 100644 tests/provision.fmf create mode 100644 tests/tests.yml diff --git a/rust-time.spec b/rust-time.spec index 7685ace..faa36b7 100644 --- a/rust-time.spec +++ b/rust-time.spec @@ -1,18 +1,18 @@ # Generated by rust2rpm -%bcond_without check +%bcond_with check %global debug_package %{nil} %global crate time Name: rust-%{crate} Version: 0.1.42 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Utilities for working with time-related functions in Rust # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/time -Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +Source: %{crates_source} # Initial patched metadata # * No windows/redox # * Exclude CI files, https://github.com/rust-lang-deprecated/time/pull/170 @@ -71,7 +71,7 @@ which use "rustc-serialize" 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 @@ -86,6 +86,9 @@ which use "rustc-serialize" feature of "%{crate}" crate. %endif %changelog +* Tue Mar 05 2019 Igor Gnatenko - 0.1.42-3 +- Run tests in infrastructure + * Sat Feb 02 2019 Fedora Release Engineering - 0.1.42-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..32d654d --- /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-time diff --git a/time-fix-metadata.diff b/time-fix-metadata.diff index 20b8a23..d92e3f0 100644 --- a/time-fix-metadata.diff +++ b/time-fix-metadata.diff @@ -1,5 +1,5 @@ ---- time-0.1.40/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ time-0.1.40/Cargo.toml 2018-10-31T12:07:30.284075+01:00 +--- time-0.1.42/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ time-0.1.42/Cargo.toml 2019-03-05T20:16:56.228134+01:00 @@ -19,6 +19,7 @@ documentation = "https://doc.rust-lang.org/time" license = "MIT/Apache-2.0"