From 646b11ae2926ed6122c2c571f4851053c1000eeb Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 15 Dec 2019 12:57:32 +0100 Subject: [PATCH] Add tests Signed-off-by: Igor Gnatenko --- rust-futures-channel.spec | 20 ++++++++++---------- tests/.fmf/version | 1 + tests/provision.fmf | 5 +++++ tests/tests.yml | 13 +++++++++++++ 4 files changed, 29 insertions(+), 10 deletions(-) create mode 100644 tests/.fmf/version create mode 100644 tests/provision.fmf create mode 100644 tests/tests.yml diff --git a/rust-futures-channel.spec b/rust-futures-channel.spec index 129b557..89d7052 100644 --- a/rust-futures-channel.spec +++ b/rust-futures-channel.spec @@ -1,5 +1,5 @@ -# Generated by rust2rpm 11 -# Cyclic dependency on futures +# Generated by rust2rpm 12 +# * Tests can be run only in-tree %bcond_with check %global debug_package %{nil} @@ -38,7 +38,7 @@ which use "%{crate}" crate. %files devel %license LICENSE-APACHE LICENSE-MIT -%{cargo_registry}/%{crate}-%{version}/ +%{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel Summary: %{summary} @@ -50,7 +50,7 @@ This package contains library source intended for building other packages which use "default" feature of "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+alloc-devel Summary: %{summary} @@ -62,7 +62,7 @@ This package contains library source intended for building other packages which use "alloc" feature of "%{crate}" crate. %files -n %{name}+alloc-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+cfg-target-has-atomic-devel Summary: %{summary} @@ -74,7 +74,7 @@ This package contains library source intended for building other packages which use "cfg-target-has-atomic" feature of "%{crate}" crate. %files -n %{name}+cfg-target-has-atomic-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+futures-sink-devel Summary: %{summary} @@ -86,7 +86,7 @@ This package contains library source intended for building other packages which use "futures-sink" feature of "%{crate}" crate. %files -n %{name}+futures-sink-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+sink-devel Summary: %{summary} @@ -98,7 +98,7 @@ This package contains library source intended for building other packages which use "sink" feature of "%{crate}" crate. %files -n %{name}+sink-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} @@ -110,7 +110,7 @@ This package contains library source intended for building other packages which use "std" feature of "%{crate}" crate. %files -n %{name}+std-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+unstable-devel Summary: %{summary} @@ -122,7 +122,7 @@ This package contains library source intended for building other packages which use "unstable" feature of "%{crate}" crate. %files -n %{name}+unstable-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 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..b1a4192 --- /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-futures-channel