From 19753c640182ee2f14657cf8151fbf66a9680931 Mon Sep 17 00:00:00 2001 From: Jonathon Jongsma Date: Thu, 13 Jan 2022 14:21:51 -0600 Subject: [PATCH] Add gating Add gating.yml to satisfy gating requirements. Since the unit tests run during build, there's a lot of confidence that things are working properly, so just add a very basic gating test that executes the binary and makes sure it works. Also add rpminspect.yml to disable the annocheck test for rpminspect. This test assumes that gcc is used and therefore is expected to fail for rust binaries. Related: rhbz#1999686 Signed-off-by: Jonathon Jongsma --- gating.yaml | 6 ++++++ mdevctl.spec | 6 +++++- rpminspect.yaml | 3 +++ tests/tests.yml | 9 +++++++++ 4 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 gating.yaml create mode 100644 rpminspect.yaml create mode 100644 tests/tests.yml diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..3f9bca2 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,6 @@ +--- !Policy +product_versions: + - rhel-9 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule { test_case_name: osci.brew-build.tier0.functional } diff --git a/mdevctl.spec b/mdevctl.spec index 50bc51b..6e622bf 100644 --- a/mdevctl.spec +++ b/mdevctl.spec @@ -1,6 +1,6 @@ Name: mdevctl Version: 1.1.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Mediated device management and persistence utility Group: System Environment/Kernel @@ -58,6 +58,10 @@ export MDEVCTL_LOG=debug RUST_BACKTRACE=full %{_datadir}/bash-completion/completions/lsmdev %changelog +* Thu Jan 13 2022 Jonathon Jongsma - 1.1.0-3 +- add gating.yml and rpminspect.yml and rebuild + Related: rhbz#1999686 + * Wed Dec 01 2021 Eduardo Lima (Etrunko) - 1.1.0-2 - Create additonal directories required by installation. Related: rhbz#1999686 diff --git a/rpminspect.yaml b/rpminspect.yaml new file mode 100644 index 0000000..3b651f1 --- /dev/null +++ b/rpminspect.yaml @@ -0,0 +1,3 @@ +--- +inspections: + annocheck: off diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..24e0d28 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,9 @@ +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + tests: + - simple: + dir: . + run: "mdevctl --help"