diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..ab3a618 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,7 @@ +# recipients: jstephen, spoore +--- !Policy +product_versions: + - rhel-9 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} 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