From 2311adf4af57368ee12358aea1fd658f6b804201 Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Fri, 21 Apr 2023 16:09:06 -0400 Subject: [PATCH] Add gating tests Resolves: #2188490 --- gating.yaml | 6 ++++++ tests/gts-smoketest/PURPOSE | 3 +++ tests/gts-smoketest/runtest.sh | 10 ++++++++++ tests/tests.yml | 10 ++++++++++ 4 files changed, 29 insertions(+) create mode 100644 gating.yaml create mode 100644 tests/gts-smoketest/PURPOSE create mode 100755 tests/gts-smoketest/runtest.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/gts-smoketest/PURPOSE b/tests/gts-smoketest/PURPOSE new file mode 100644 index 0000000..bdf2003 --- /dev/null +++ b/tests/gts-smoketest/PURPOSE @@ -0,0 +1,3 @@ +Test Name: gts-smoketest +Author: +Short Description: Check the metapackage installability diff --git a/tests/gts-smoketest/runtest.sh b/tests/gts-smoketest/runtest.sh new file mode 100755 index 0000000..926435f --- /dev/null +++ b/tests/gts-smoketest/runtest.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e +set -x + +# This is a metapackage. It's main purpose is to pull other packages +# into play via the rpm deps. +rpm -q gcc-toolset-12 +echo +echo RESULT: PASS diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..9dc0e12 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,10 @@ +--- +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + tests: + - gts-smoketest + required_packages: + - scl-utils