torque: add basic sanity test for CI gating

Resolves: RHEL-70711

Signed-off-by: Kamal Heib <kheib@redhat.com>
This commit is contained in:
Kamal Heib 2024-12-26 07:00:36 -05:00
parent ae1ff1aef3
commit 50a075e08c
5 changed files with 52 additions and 1 deletions

11
gating.yaml Normal file
View File

@ -0,0 +1,11 @@
--- !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
# when running this in 1minutetip the PATH must be specified to execute
# in the local directory.
echo "Setting path to local directory"
PATH=$PATH:$(pwd)
# simple sanity test
sanity.sh
exit $?

14
tests/sanity.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
#
# This is a simple sanity test to satisfy the RHEL8.1 onboard gating
# requirement.
ret=0
trqauthd --help
let ret=$ret+$?
hostn -v localhost
let ret=$ret+$?
exit $ret

12
tests/tests.yml Normal file
View File

@ -0,0 +1,12 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
tests:
- simple:
dir: . # switch to subfolder. This parameter is REQUIRED, use `dir: .` for current folder
run: ./run_tests.sh # this is your test command, its exit code is the outcome of the test
required_packages:
- torque
- torque-client

View File

@ -74,7 +74,7 @@
Name: torque
Version: 6.1.3
Release: 13%{?dist}
Release: 14%{?dist}
Summary: Tera-scale Open-source Resource and QUEue manager
# Source0: http://www.adaptivecomputing.com/download/%%{name}/%%{name}-%%{version}.tar.gz
# git clone https://github.com/adaptivecomputing/torque.git
@ -921,6 +921,10 @@ fi
%endif
%changelog
* Thu Dec 26 2024 Kamal Heib <kheib@redhat.com> - 6.1.3-14
- torque: add basic sanity test for CI gating
Resolves: RHEL-70711
* Wed Dec 18 2024 Kamal Heib <kheib@redhat.com> - 6.1.3-13
- Fix rpminspect issue
Resolves: RHEL-70711