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 <jjongsma@redhat.com>
This commit is contained in:
Jonathon Jongsma 2022-01-13 14:21:51 -06:00
parent 247d91f682
commit 19753c6401
4 changed files with 23 additions and 1 deletions

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule { test_case_name: osci.brew-build.tier0.functional }

View File

@ -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 <jjongsma@redhat.com> - 1.1.0-3
- add gating.yml and rpminspect.yml and rebuild
Related: rhbz#1999686
* Wed Dec 01 2021 Eduardo Lima (Etrunko) <etrunko@redhat.com> - 1.1.0-2
- Create additonal directories required by installation.
Related: rhbz#1999686

3
rpminspect.yaml Normal file
View File

@ -0,0 +1,3 @@
---
inspections:
annocheck: off

9
tests/tests.yml Normal file
View File

@ -0,0 +1,9 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
tests:
- simple:
dir: .
run: "mdevctl --help"