diff --git a/tests/.fmf/version b/tests/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/tests/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/tests/full_tests.yml b/tests/full_tests.yml new file mode 100644 index 0000000..2851d54 --- /dev/null +++ b/tests/full_tests.yml @@ -0,0 +1,11 @@ +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + tests: + - tlogtests: + dir: scripts + run: ./run_tests.sh + required_packages: + - git diff --git a/tests/provision.fmf b/tests/provision.fmf new file mode 100644 index 0000000..0116eb6 --- /dev/null +++ b/tests/provision.fmf @@ -0,0 +1,5 @@ +--- +standard-inventory-qcow2: + qemu: + m: 4G + smp: cpus=4,sockets=4,maxcpus=16 diff --git a/tests/scripts/run_tests.sh b/tests/scripts/run_tests.sh new file mode 100755 index 0000000..609bd87 --- /dev/null +++ b/tests/scripts/run_tests.sh @@ -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 diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..52b1293 --- /dev/null +++ b/tests/tests.yml @@ -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 diff --git a/tlog.spec b/tlog.spec index f748c12..b514bdb 100644 --- a/tlog.spec +++ b/tlog.spec @@ -1,6 +1,6 @@ Name: tlog Version: 13 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Terminal I/O logger License: GPLv2+