From 453a41f6988f72c1662ec6bb5eae45b5d11b0bdd Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 21 Mar 2019 15:48:48 +0000 Subject: [PATCH] Add gating tests resolves: rhbz#1682780 (cherry picked from commit b2bff83949c386298fabc4e1766ea96b91e947c4) --- gating.yaml | 6 ++++++ tests/basic-test.sh | 7 +++++++ tests/tests.yml | 12 ++++++++++++ 3 files changed, 25 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..6985029 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,6 @@ +--- !Policy +product_versions: + - rhel-8 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/tests/basic-test.sh b/tests/basic-test.sh new file mode 100755 index 0000000..da15443 --- /dev/null +++ b/tests/basic-test.sh @@ -0,0 +1,7 @@ +#!/bin/bash - +set -e +set -x + +# I'd like to use the test:/// driver but it doesn't support the right +# APIs. +virt-top --stream -d 1 -n 3 --debug /dev/stdout diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..2383598 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,12 @@ +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + required_packages: + - libvirt-daemon + - virt-top + tests: + - simple: + dir: . + run: ./basic-test.sh