Add gating and simple test

Signed-off-by: Jaroslav Kysela <jkysela@redhat.com>
This commit is contained in:
Jaroslav Kysela 2024-08-01 18:19:28 +02:00
parent 0d8e474c81
commit 94ef32a556
3 changed files with 27 additions and 0 deletions

6
gating.yaml Normal file
View File

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

10
tests/run_tests.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
set -ex
# a quick test
hdsploader -h
if [ $? -ne 0 ]; then
echo "The return code from hdsploader is invalid ($?)!"
exit 99
fi

11
tests/tests.yml Normal file
View File

@ -0,0 +1,11 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
required_packages:
- alsa-utils
tests:
- simple:
dir: .
run: ./run_tests.sh