From 325e0045bc526a256b8b72b7d309b2cb79a49f9d Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 23 Jun 2021 10:56:24 +0100 Subject: [PATCH] Add gating tests (for RHEL) --- gating.yaml | 7 +++++++ tests/basic-test.sh | 6 ++++++ tests/tests.yml | 11 +++++++++++ 3 files changed, 24 insertions(+) create mode 100644 gating.yaml create mode 100755 tests/basic-test.sh create mode 100644 tests/tests.yml diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..1bef654 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,7 @@ +--- !Policy +product_versions: + - rhel-* +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} + - !PassingTestCaseRule {test_case_name: manual.sst_virtualization.vhostmd.manual-test} diff --git a/tests/basic-test.sh b/tests/basic-test.sh new file mode 100755 index 0000000..962990e --- /dev/null +++ b/tests/basic-test.sh @@ -0,0 +1,6 @@ +#!/bin/bash - +set -e +set -x + +# Setting up vhostmd is basically impossible, so: +LANG=C vm-dump-metrics |& grep "Unable to read metrics disk" diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..a93bdf6 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,11 @@ +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + required_packages: + - vm-dump-metrics-devel + tests: + - simple: + dir: . + run: ./basic-test.sh