From dfd02f7fb4e3156a5db6f9ab9070a5c58dff8489 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 23 Jun 2021 10:55:23 +0100 Subject: [PATCH] Add gating tests (for RHEL) --- gating.yaml | 7 +++++++ tests/augtool_test.sh | 35 +++++++++++++++++++++++++++++++++++ tests/devel.sh | 18 ++++++++++++++++++ tests/tests.yml | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 93 insertions(+) create mode 100644 gating.yaml create mode 100755 tests/augtool_test.sh create mode 100755 tests/devel.sh create mode 100644 tests/tests.yml diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..617c71e --- /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: xen-ci.brew-build.tier1.functional} diff --git a/tests/augtool_test.sh b/tests/augtool_test.sh new file mode 100755 index 0000000..31afd88 --- /dev/null +++ b/tests/augtool_test.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +set -eux + +augtool -L > augtool_test.out 2> augtool_test.err < /dev/null + +popd +rm -rf "$tmpdir" diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..461ccb9 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,33 @@ +--- +- hosts: localhost + roles: + - role: standard-test-source + tags: + - always + - role: standard-test-basic + tags: + - atomic + - classic + - container + required_packages: + - augeas + - augeas-devel + - libxml2-devel + - gcc + - pkg-config + - chrony # test its configs + - fuse # test its configs + - iscsi-initiator-utils # test its configs + - lvm2 # test its configs + - mdadm # test its configs + - openssh-server # test its configs + - rsync # test its configs + - rsyslog # test its configs + - sudo # test its configs + tests: + - augtool_test: + dir: . + run: ./augtool_test.sh + - devel: + dir: . + run: ./devel.sh