diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/gating.yaml b/gating.yaml index f7a547b..c9bf1db 100644 --- a/gating.yaml +++ b/gating.yaml @@ -3,4 +3,4 @@ product_versions: - rhel-10 decision_context: osci_compose_gate rules: - - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} # this is the testcase identifier, which OSCI pipeline uses \ No newline at end of file + - !PassingTestCaseRule {test_case_name: osci.brew-build./tests/tmt/plans/smoke} # this is the testcase identifier, which OSCI pipeline uses diff --git a/tests/tests.yml b/tests/tests.yml index 7239cf6..a2fba05 100644 --- a/tests/tests.yml +++ b/tests/tests.yml @@ -1,3 +1,4 @@ +--- - hosts: localhost roles: - role: standard-test-basic @@ -19,3 +20,4 @@ - ignition-validate-rpm-installed: dir: ./ run: /usr/bin/rpm -q ignition-validate + diff --git a/tests/tmt/plans/main.fmf b/tests/tmt/plans/main.fmf new file mode 100644 index 0000000..e43604f --- /dev/null +++ b/tests/tmt/plans/main.fmf @@ -0,0 +1,16 @@ +--- +adjust: + enabled: false + when: distro == centos-stream or distro == fedora +prepare: + - name: Install ignition package + when: use_built_form_src is not defined or use_built_form_src == false + how: install + package: ignition + - name: Set IGNITION_BIN_DIR when installed package + when: use_built_form_src is not defined or use_built_form_src == false + how: shell + script: | + set -x -e -o pipefail + echo "IGNITION_BIN_DIR=/usr/lib/dracut/modules.d/30ignition" > /tmp/ignition_bin_dir + diff --git a/tests/tmt/plans/smoke.fmf b/tests/tmt/plans/smoke.fmf new file mode 100644 index 0000000..6489a18 --- /dev/null +++ b/tests/tmt/plans/smoke.fmf @@ -0,0 +1,12 @@ +--- +summary: Run gating tests +tag: + - smoke +discover: + - name: Internal gating tests + how: fmf + url: https://github.com/coreos/ignition.git + filter: 'tag: smoke' +execute: + how: tmt +