From 028182cb69a6ca04c6ac6462519077e12ea29feb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20Hor=C3=A1=C4=8Dek?= Date: Thu, 8 Aug 2024 16:26:21 +0200 Subject: [PATCH] Include tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolves: RHEL-45223 Signed-off-by: Štěpán Horáček --- gating.yaml | 7 +++++++ tests/runtest.sh | 4 ++++ tests/tests.yml | 24 ++++++++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 gating.yaml create mode 100755 tests/runtest.sh create mode 100644 tests/tests.yml diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..c9190f8 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,7 @@ +--- !Policy +product_versions: + - rhel-10 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} + diff --git a/tests/runtest.sh b/tests/runtest.sh new file mode 100755 index 0000000..89f4d82 --- /dev/null +++ b/tests/runtest.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +cd /var/str/source +pytest -v test diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..d6f1aeb --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,24 @@ +- hosts: localhost + roles: + - role: standard-test-source + tags: + - always + required_packages: + - git + - role: standard-test-basic + tags: + - classic + required_packages: + - tpm2-tss + - tpm2-tss-devel + - tpm2-tools + - swtpm + - python3 + - dbus-daemon + - pytest + tests: + - intel-tpm2: + dir: . + run: dbus-run-session ./runtest.sh + timeout: 60m +