From 6f6dd67f2481fb0432c767c12f1b5511c706d416 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 12 Nov 2019 07:53:40 +0100 Subject: [PATCH] Add tests & Remove unneeded tz files Signed-off-by: Igor Gnatenko --- rust-chrono-tz.spec | 9 ++++++++- tests/.fmf/version | 1 + tests/provision.fmf | 5 +++++ tests/tests.yml | 13 +++++++++++++ 4 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 tests/.fmf/version create mode 100644 tests/provision.fmf create mode 100644 tests/tests.yml diff --git a/rust-chrono-tz.spec b/rust-chrono-tz.spec index dbe90c1..7a3c25b 100644 --- a/rust-chrono-tz.spec +++ b/rust-chrono-tz.spec @@ -6,7 +6,7 @@ Name: rust-%{crate} Version: 0.5.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: TimeZone implementations for rust-chrono from the IANA database # Upstream license specification: MIT/Apache-2.0 @@ -66,6 +66,10 @@ which use "serde" feature of "%{crate}" crate. %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 +mkdir .tmp +mv $(grep -Po '"\Ktz/[^"]+' build.rs) .tmp +rm -rf tz +mv .tmp tz %cargo_prep %generate_buildrequires @@ -83,5 +87,8 @@ which use "serde" feature of "%{crate}" crate. %endif %changelog +* Tue Nov 12 07:43:37 CET 2019 Igor Gnatenko - 0.5.1-2 +- Remove all unneeded files from tz + * Tue Nov 05 23:23:40 EET 2019 Artem Polishchuk - 0.5.1-1 - Initial package 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..b484871 --- /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-chrono-tz