From b7362b302f460714872d244df371e24f542b3be6 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Fri, 13 Dec 2019 18:41:19 +0100 Subject: [PATCH] Enable tests Signed-off-by: Igor Gnatenko --- rust-sysinfo.spec | 12 +++++++----- sysinfo-fix-metadata.diff | 6 +++--- tests/.fmf/version | 1 + tests/provision.fmf | 5 +++++ tests/tests.yml | 13 +++++++++++++ 5 files changed, 29 insertions(+), 8 deletions(-) create mode 100644 tests/.fmf/version create mode 100644 tests/provision.fmf create mode 100644 tests/tests.yml diff --git a/rust-sysinfo.spec b/rust-sysinfo.spec index ea83ef4..20534c4 100644 --- a/rust-sysinfo.spec +++ b/rust-sysinfo.spec @@ -1,12 +1,12 @@ -# Generated by rust2rpm 10 -%bcond_with check +# Generated by rust2rpm 11 +%bcond_without check %global debug_package %{nil} %global crate sysinfo Name: rust-%{crate} Version: 0.10.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Library to handle processes # Upstream license specification: MIT @@ -25,8 +25,7 @@ BuildArch: noarch BuildRequires: rust-packaging %global _description %{expand: -A system handler to get information and interact with processes written in -Rust.} +Library to handle processes.} %description %{_description} @@ -99,6 +98,9 @@ which use "debug" feature of "%{crate}" crate. %endif %changelog +* Fri Dec 13 18:40:36 CET 2019 Igor Gnatenko - 0.10.2-2 +- Enable tests + * Thu Dec 12 2019 Artem Polishchuk - 0.10.2-1 - Update to 0.10.2 diff --git a/sysinfo-fix-metadata.diff b/sysinfo-fix-metadata.diff index 1baa24b..3576206 100644 --- a/sysinfo-fix-metadata.diff +++ b/sysinfo-fix-metadata.diff @@ -1,12 +1,12 @@ --- sysinfo-0.10.2/Cargo.toml 1970-01-01T00:00:00+00:00 -+++ sysinfo-0.10.2/Cargo.toml 2019-12-12T14:01:32.636646+00:00 -@@ -39,12 +39,7 @@ ++++ sysinfo-0.10.2/Cargo.toml 2019-12-13T17:40:36.455517+00:00 +@@ -39,12 +39,6 @@ debug = ["libc/extra_traits"] [target."cfg(not(target_os = \"unknown\"))".dependencies.libc] version = "0.2" -[target."cfg(windows)".dependencies.ntapi] -version = "0.3" - +- -[target."cfg(windows)".dependencies.winapi] -version = "0.3" -features = ["fileapi", "handleapi", "ioapiset", "minwindef", "pdh", "psapi", "synchapi", "sysinfoapi", "winbase", "winerror", "winioctl", "winnt", "oleauto", "wbemcli", "rpcdce", "combaseapi", "objidl", "objbase"] 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..3e7283e --- /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-sysinfo