Add tests directory needed for gating

Resolves: #2186906
This commit is contained in:
Justin Stephenson 2023-04-19 15:30:57 -04:00
parent 2b7e80a721
commit ac23a85591
6 changed files with 49 additions and 1 deletions

1
tests/.fmf/version Normal file
View File

@ -0,0 +1 @@
1

11
tests/full_tests.yml Normal file
View File

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

5
tests/provision.fmf Normal file
View File

@ -0,0 +1,5 @@
---
standard-inventory-qcow2:
qemu:
m: 4G
smp: cpus=4,sockets=4,maxcpus=16

20
tests/scripts/run_tests.sh Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash -x
RETVAL=0
dnf -y install expect beakerlib make restraint-rhts
. /usr/share/beakerlib/beakerlib.sh
if rlIsRHEL '>=9'; then
dnf --enablerepo rhel-buildroot install python3-pytest -y
fi
git clone https://github.com/Scribery/tlog.git
pushd tlog/src/tlitest
./tlitest-setup
./tlitest-run --junit-xml=/tmp/artifacts/junit.xml $*
#./teltest-teardown
RETVAL=$(( RETVAL + $? ))
popd
exit $RETVAL

11
tests/tests.yml Normal file
View File

@ -0,0 +1,11 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
tests:
- tlogtests:
dir: scripts
run: ./run_tests.sh -m tier1
required_packages:
- git

View File

@ -1,6 +1,6 @@
Name: tlog
Version: 13
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Terminal I/O logger
License: GPLv2+